diff --git a/naturf/__init__.py b/naturf/__init__.py index 6c8e6b979c..2c02b6446d 100644 --- a/naturf/__init__.py +++ b/naturf/__init__.py @@ -1 +1,3 @@ -__version__ = "0.0.0" +import importlib.metadata + +__version__ = importlib.metadata.version(__package__ or __name__) diff --git a/pyproject.toml b/pyproject.toml index 73a9a495e7..97e5b487ac 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -29,19 +29,19 @@ classifiers = [ ] dependencies = [ - "numpy>=1.22.4", - "pandas>=1.4.2", + "fiona>=1.8.19", "geocube>=0.3.1", - "rasterio>=1.2.10", - "xarray>=2022.3.0", + "geopandas>=0.10.2", "joblib>=1.0.1", - "fiona>=1.8.19", + "numpy>=1.22.4", + "pandas>=1.4.2", "pyproj>=3.0.1", + "rasterio>=1.2.10", "rtree>=1.0.0", + "sf-hamilton[visualization]>=1.45", "shapely>=1.8.2, <2", "tqdm>=4.66.1", - "geopandas>=0.10.2", - "sf-hamilton[visualization]>=1.10", + "xarray>=2022.3.0", ] [project.urls] diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index 0d92121302..0000000000 --- a/requirements.txt +++ /dev/null @@ -1,38 +0,0 @@ -affine==2.4.0 -appdirs==1.4.4 -attrs==23.1.0 -cachetools==5.3.1 -certifi==2023.7.22 -click==8.1.7 -click-plugins==1.1.1 -cligj==0.7.2 -dagworks-sdk -Fiona==1.9.4.post1 -geocube==0.4.2 -geopandas==0.14.0 -graphviz==0.20.1 -joblib==1.3.2 -mypy-extensions==1.0.0 -# -e git+ssh://git@github.com/IMMM-SFA/naturf.git@f6ce95c245b9be3f7c7d4fdd44d54b779ec7eb17#egg=naturf -networkx==3.1 -numpy==1.26.0 -odc-geo==0.4.1 -packaging==23.1 -pandas==2.1.0 -pyparsing==3.1.1 -pyproj==3.6.0 -python-dateutil==2.8.2 -pytz==2023.3.post1 -rasterio==1.3.8 -rioxarray==0.15.0 -Rtree==1.0.1 -scipy==1.11.2 -sf-hamilton==1.* -Shapely==1.8.5.post1 -six==1.16.0 -snuggs==1.4.7 -tqdm -typing-inspect==0.9.0 -typing_extensions==4.8.0 -tzdata==2023.3 -xarray==2023.8.0 diff --git a/setup.py b/setup.py deleted file mode 100644 index 06f127f5fb..0000000000 --- a/setup.py +++ /dev/null @@ -1,43 +0,0 @@ -import re -from setuptools import setup, find_packages - - -def readme(): - """Return the contents of the project README file.""" - with open("README.md") as f: - return f.read() - - -version = re.search( - r"__version__ = ['\"]([^'\"]*)['\"]", open("naturf/__init__.py").read(), re.M -).group(1) - -setup( - name="naturf", - version=version, - packages=find_packages(), - url="https://github.com/IMMM-SFA/naturf", - license="MIT", - author="Levi Sweet-Breu, Melissa Allen-Dumas, Chris R. Vernon, Emily Rexer", - author_email="", - description="An open-source Python package to address the effect of the geometry of a neighborhood on the local meteorology. ", - long_description=readme(), - long_description_content_type="text/markdown", - python_requires=">=3.8.5", - include_package_data=True, - install_requires=[ - "numpy>=1.22.4", - "pandas>=1.4.2", - "geocube>=0.3.1", - "rasterio>=1.2.10", - "xarray>=2022.3.0", - "joblib>=1.0.1", - "fiona>=1.8.19", - "pyproj>=3.0.1", - "rtree>=1.0.0", - "shapely>=1.8.2,<2", - "geopandas>=0.10.2", - "sf-hamilton[visualization]>=1.45", - "tqdm", - ], -)