Skip to content

Commit ba1d5fe

Browse files
authored
Revert "Merge pull request #18 from ai2cm/pypi" (#19)
This reverts commit 4b54d65, reversing changes made to 6d56caa.
1 parent 4b54d65 commit ba1d5fe

File tree

10 files changed

+52
-278
lines changed

10 files changed

+52
-278
lines changed

Makefile

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
VERSION ?= $(shell git rev-parse --short HEAD)
22
IMAGE ?= fme
33
ENVIRONMENT_NAME ?= fme
4-
DEPLOY_TARGET ?= pypi
54

65
build_docker_image:
76
docker build -f docker/Dockerfile -t $(IMAGE):$(VERSION) .
@@ -17,16 +16,3 @@ create_environment:
1716

1817
test:
1918
pytest --durations 20 .
20-
21-
# For maintainer use only
22-
# requires fme[deploy] to be installed
23-
24-
build_pypi:
25-
rm -rf fme/dist
26-
cd fme && python -m build
27-
28-
deploy_pypi: build_pypi
29-
cd fme && twine upload --repository $(DEPLOY_TARGET) dist/*
30-
31-
deploy_test_pypi: DEPLOY_TARGET = testpypi
32-
deploy_test_pypi: deploy_pypi

fme/LICENSE

Lines changed: 0 additions & 201 deletions
This file was deleted.

fme/README.md

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,2 @@
1-
[![Docs](https://readthedocs.org/projects/ai2-climate-emulator/badge/?version=latest)](https://ai2-climate-emulator.readthedocs.io/en/latest/)
2-
3-
# FME: Weather/Climate Model Emulation
4-
This package contains code to train and evaluate weather/climate model emulators as seen in
5-
"ACE: A fast, skillful learned global atmospheric model for climate prediction" ([arxiv:2310.02074](https://arxiv.org/abs/2310.02074))
6-
and "Application of the Ai2 Climate Emulator to E3SMv2's global atmosphere model, with a focus on precipitation fidelity"
7-
([JGR-ML](https://agupubs.onlinelibrary.wiley.com/doi/full/10.1029/2024JH000136)).
8-
9-
10-
## Installation
11-
12-
The package can be installed via PyPI using:
13-
14-
```
15-
pip install fme
16-
```
17-
18-
## Quickstart
19-
20-
A quickstart guide may be found [here](https://ai2-climate-emulator.readthedocs.io/en/latest/quickstart.html).
21-
22-
## Documentation
23-
24-
See complete documentation [here](https://ai2-climate-emulator.readthedocs.io/en/latest/).
1+
This python package is intended for use in the training and evaluation of
2+
machine learning models that emulate weather and climate data.

fme/deploy-requirements.txt

Lines changed: 0 additions & 2 deletions
This file was deleted.

fme/fme/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "2024.9.0"
1+
__version__ = "0.2.0"
22

33
import torch_harmonics
44

fme/fme/core/version.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__version__ = "0.2.0"

fme/fme/test_version.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import fme
2+
3+
4+
def test_version():
5+
assert fme.__version__ == "0.2.0"

fme/pyproject.toml

Lines changed: 0 additions & 35 deletions
This file was deleted.

fme/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ tensorly-torch
99
xarray
1010
dacite
1111
torch
12-
torch-harmonics==0.6.2
12+
torch-harmonics@git+https://github.com/NVIDIA/torch-harmonics.git@8826246cacf6c37b600cdd63fde210815ba238fd
1313
zarr
1414
gcsfs
1515
s3fs

fme/setup.py

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
from setuptools import find_packages, setup
2+
3+
4+
def read_requirements(filename: str):
5+
with open(filename) as requirements_file:
6+
requirements = []
7+
for line in requirements_file:
8+
line = line.strip()
9+
if line.startswith("#") or len(line) == 0:
10+
continue
11+
requirements.append(line)
12+
return requirements
13+
14+
15+
setup(
16+
name="fme",
17+
version="0.2.0",
18+
description="",
19+
long_description=open("README.md").read(),
20+
long_description_content_type="text/markdown",
21+
classifiers=[
22+
"Intended Audience :: Science/Research",
23+
"Development Status :: 3 - Alpha",
24+
"License :: OSI Approved :: Apache Software License",
25+
"Programming Language :: Python :: 3",
26+
"Topic :: Scientific/Engineering :: Artificial Intelligence",
27+
],
28+
keywords="",
29+
url="https://github.com/ai2cm/ace",
30+
author="Allen Institute for Artificial Intelligence",
31+
author_email="[email protected]",
32+
license="Apache",
33+
packages=find_packages(
34+
exclude=["*.tests", "*.tests.*", "tests.*", "tests"],
35+
),
36+
install_requires=read_requirements("requirements.txt"),
37+
extras_require={
38+
"dev": read_requirements("dev-requirements.txt"),
39+
"docs": read_requirements("docs/requirements.txt"),
40+
},
41+
python_requires=">=3.8",
42+
)

0 commit comments

Comments
 (0)