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

Replace setup.cfg for pyproject.toml #443

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
38 changes: 38 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Configure flake8

[flake8]
max-line-length = 88
max-doc-length = 79
ignore =
# Too many leading '#' for block comment
E266,
# Line too long (82 > 79 characters)
E501,
# Do not use variables named 'I', 'O', or 'l'
E741,
# Line break before binary operator (conflicts with black)
W503,
exclude =
.git,
__pycache__,
.ipynb_checkpoints,
per-file-ignores =
# disable unused-imports errors on __init__.py
__init__.py: F401

# Configure flake8-rst-docstrings
# -------------------------------
# Add some roles used in our docstrings
rst-roles =
class,
func,
mod,
meth,
ref,
# Ignore "Unknown target name" raised on citations
extend-ignore = RST306

# Configure flake8-functions
# --------------------------
# Allow a max of 10 arguments per function
max-parameters-amount = 10
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
- name: Collect requirements
run: |
echo "Install Dependente to capture dependencies:"
conda install dependente==0.1.0 -c conda-forge
conda install dependente==0.3.0 -c conda-forge
echo ""
echo "Capturing run-time dependencies:"
dependente --source install,extras > requirements-full.txt
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ jobs:
- name: Collect requirements
run: |
echo "Install Dependente to capture dependencies:"
conda install dependente==0.1.0 -c conda-forge
conda install dependente==0.3.0 -c conda-forge
echo ""
echo "Capturing run-time dependencies:"
if [[ "${{ matrix.dependencies }}" == "oldest" ]]; then
Expand Down
56 changes: 53 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,57 @@
# Specify that we use setuptools and setuptools_scm (to generate the version
# string). Actual configuration is in setup.cfg.
[project]
name = "verde"
description = "Processing and gridding spatial data, machine-learning style"
dynamic = ["version"]
authors = [
{name="The Verde Developers", email="[email protected]"},
]
maintainers = [
{name = "Leonardo Uieda", email = "[email protected]"}
]
readme = "README.md"
license = {text = "BSD-3-Clause"}
keywords = ["spatial", "geoscience", "geophysics", "gridding", "interpolation"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"License :: OSI Approved :: BSD License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Topic :: Scientific/Engineering",
"Topic :: Software Development :: Libraries",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
]
requires-python = ">=3.9"
dependencies = [
"numpy>=1.23",
"scipy>=1.8",
"pandas>=1.4",
"xarray>=2022.03",
"scikit-learn>=1.0",
"pooch>=1.2",
"dask>=2022.01.0",
]

[project.optional-dependencies]
fast = ["numba>=0.55", "pykdtree>=1.3"]

[tool.setuptools.package-data]
verde.tests = ["data/*", "baseline/*"]
verde.datasets = ["registry.txt"]

[project.urls]
"Documentation" = "https://www.fatiando.org/verde"
"Release Notes" = "https://github.com/fatiando/verde/releases"
"Bug Tracker" = "https://github.com/fatiando/verde/issues"
"Source Code" = "https://github.com/fatiando/verde"

[build-system]
requires = ["setuptools>=45", "wheel", "setuptools_scm[toml]>=6.2"]
requires = ["setuptools>=61", "wheel", "setuptools_scm[toml]>=8.0.3"]
build-backend = "setuptools.build_meta"

[tool.setuptools_scm]
Expand Down
94 changes: 0 additions & 94 deletions setup.cfg

This file was deleted.

Loading