Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MNT: Use pyproject.toml for project metadata #172

Merged
merged 1 commit into from
Apr 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/build_docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ jobs:
conda config --set channel_priority strict
conda create -n docs python=3.10 odc-geo geopandas rasterio scipy rioxarray xarray pandoc
source activate docs
python -m pip install -e .[doc]
python -m pip install -r requirements/doc.txt
python -m pip install -e .
sphinx-build -b html docs/ docs/_build/

- name: Deploy 🚀
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ jobs:
conda config --set channel_priority strict
conda create -n test python=${{ matrix.python-version }} odc-geo geopandas rasterio scipy rioxarray xarray netcdf4 pandoc
source activate test
python -m pip install -e .[all]
python -m pip install -r requirements/dev.txt
python -m pip install -e .

- name: Check and Log Environment
shell: bash
Expand Down
3 changes: 2 additions & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ install:
#-------------------------------------------------------------------------------
# Install geocube
#-------------------------------------------------------------------------------
- pip install .[all]
- python -m pip install -r requirements/test.txt
- python -m pip install .

build: false

Expand Down
62 changes: 61 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,65 @@
# Minimum requirements for the build system to execute.
requires = ["setuptools", "wheel"]

[project]
name = "geocube"
version = "0.5.3.dev0"
description = "Tool to convert geopandas vector data into rasterized xarray data."
maintainers = [
{name = "geocube Contributors"},
]
keywords = [
"GDAL",
"rasterize",
"vector",
]
readme = "README.rst"
license = {text = "BSD-3-Clause"}
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Natural Language :: English",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Topic :: Scientific/Engineering :: GIS",
"Programming Language :: Python",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
]
requires-python = ">=3.10"
dependencies = [
"appdirs",
"click>=6.0",
"geopandas>=0.7",
"odc_geo",
"rasterio>=1.3",
"rioxarray>=0.4",
"scipy",
"xarray>=0.17",
"pyproj>=2",
"numpy>=1.20",
]

[project.urls]
homepage = "https://corteva.github.io/geocube/"
documentation = "https://corteva.github.io/geocube/"
repository = "https://github.com/corteva/geocube"
changelog = "https://corteva.github.io/geocube/stable/history.html"

[project.scripts]
geocube = "geocube.cli.geocube:geocube"

[tool.setuptools.packages.find]
include = ["geocube", "geocube.*"]

[options.package_data]
geocube = [
"py.typed",
]

[tool.black]
target_version = ['py310']
target_version = ["py310"]
5 changes: 5 additions & 0 deletions requirements/dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
-r doc.txt
-r test.txt
pylint
mypy
pre-commit
3 changes: 3 additions & 0 deletions requirements/doc.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
sphinx-click
nbsphinx
sphinx_rtd_theme
4 changes: 4 additions & 0 deletions requirements/test.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
pytest>=3.6
pytest-cov
packaging
netcdf4
77 changes: 0 additions & 77 deletions setup.cfg

This file was deleted.

Loading