diff --git a/.github/environment.yml b/.github/environment.yml deleted file mode 100644 index a064834..0000000 --- a/.github/environment.yml +++ /dev/null @@ -1,28 +0,0 @@ -name: cities-cif -channels: - - conda-forge -dependencies: - - python=3.10 - - earthengine-api=0.1.379 - - geocube=0.4.2 - - geopandas=0.14.4 - - rioxarray=0.15.0 - - odc-stac=0.3.8 - - pystac-client=0.7.5 - - pytest=7.4.3 - - xarray-spatial=0.3.7 - - xee=0.0.15 - - utm=0.7.0 - - osmnx=1.9.0 - - dask[complete]=2023.11.0 - - matplotlib=3.8.2 - - jupyterlab=4.0.10 - - s3fs=2024.5.0 - - geemap=0.32.0 - - pip=23.3.1 - - boto3=1.34.124 - - scikit-learn=1.5.1 - - scikit-image==0.24.0 - - exactextract=0.2.0.dev252 - - pip: - - overturemaps==0.6.0 diff --git a/.github/setup.py b/.github/setup.py new file mode 100644 index 0000000..7d9242c --- /dev/null +++ b/.github/setup.py @@ -0,0 +1,36 @@ +from setuptools import setup, find_packages + +setup( + name="city_metrix", + version="0.1.2", + description="Module to calculate various metrics on cities.", + packages=find_packages(), + include_package_data=True, + package_data={ + 'city_metrix.models.building_classifier': [ + 'building_classifier.pkl', + ], + }, + author="Justin Terry", + license="MIT", + install_requires=[ + "earthengine-api", + "geocube", + "odc-stac", + "geemap", + "pystac-client", + "xarray-spatial", + "xee", + "rioxarray", + "utm", + "osmnx", + "geopandas", + "s3fs", + "dask>=2023.11.0", + "boto3", + "exactextract<=0.2.0.dev252", + "overturemaps", + "scikit-learn>=1.5.1", + "scikit-image>=0.24.0" + ], +) diff --git a/.github/workflows/dev_ci_cd_conda.yml b/.github/workflows/dev_ci_cd_conda.yml index e3ed63b..e0a012e 100644 --- a/.github/workflows/dev_ci_cd_conda.yml +++ b/.github/workflows/dev_ci_cd_conda.yml @@ -27,7 +27,7 @@ jobs: - name: Install Packages run: | conda update -n base conda - conda install --yes --file .github/environment.yml + conda install --yes --file .github/setup.yml conda install gdal conda upgrade numpy - name: Run Tests