diff --git a/.github/workflows/test-with-coverage.yml b/.github/workflows/test-with-coverage.yml index cd1e7bf..128818c 100644 --- a/.github/workflows/test-with-coverage.yml +++ b/.github/workflows/test-with-coverage.yml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.7, 3.8, 3.9, '3.10', '3.11', '3.12'] + python-version: ['3.9', '3.10', '3.11', '3.12', '3.13'] steps: - uses: actions/checkout@v4 @@ -28,7 +28,7 @@ jobs: run: | pytest --cov=distancerasters - name: Coveralls 👖 - if: matrix.python-version == '3.12' + if: matrix.python-version == '3.13' env: COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} GITHUB_TOKEN: $COVERALLS_REPO_TOKEN diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ea8def7..073ef4f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.7, 3.8, 3.9, '3.10', '3.11', '3.12'] + python-version: ['3.9', '3.10', '3.11', '3.12', '3.13'] steps: - uses: actions/checkout@v4 diff --git a/pyproject.toml b/pyproject.toml index 374b58c..0bb74f9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,34 @@ [build-system] -requires = [ - "setuptools>=42", - "wheel" -] +requires = ["setuptools>=42", "wheel"] build-backend = "setuptools.build_meta" + +[project] +authors = [{ name = "Seth Goodman", email = "sgoodman@aiddata.wm.edu" }] +classifiers = ["Programming Language :: Python :: 3"] +keywords = ["raster", "distance", "spatial"] +license = { text = "BSD 3-Clause License" } +name = "distancerasters" +version = "0.3.3" +description = "Generate distance raster using arbitrary sets of spatial features" +readme = "README.md" +requires-python = ">= 3.9" +dependencies = [ + "numpy", + "rasterio", + "fiona", + "affine", + "scipy>=1.6.0", + "rasterstats", + "tqdm", +] + +[project.urls] +source = "https://github.com/sgoodm/python-distance-rasters" +issues = "https://github.com/sgoodm/python-distance-rasters/issues" + +[dependency-groups] +dev = [ + "coverage>=7.6.4", + "geopandas>=1.0.1", + "pytest>=8.3.3", +] diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 817c7d1..0000000 --- a/setup.cfg +++ /dev/null @@ -1,32 +0,0 @@ -[metadata] -name = distancerasters -version = 0.3.3 -description = Generate distance raster using arbitrary sets of spatial features -long_description = file:README.md -long_description_content_type = text/markdown -author = Seth Goodman -author_email = sgoodman@aiddata.wm.edu -url = https://github.com/sgoodm/python-distance-rasters -project_urls = - Bug Tracker = https://github.com/sgoodm/python-distance-rasters/issues -license = BSD 3-Clause License -keywords = raster, distance, spatial -classifiers = - Programming Language :: Python :: 3 - -[options] -package_dir = - = src -packages = find: -# python_requires = >=3.x -install_requires = - numpy - rasterio - fiona - affine - scipy>=1.6.0 - rasterstats - tqdm - -[options.packages.find] -where = src