-
Notifications
You must be signed in to change notification settings - Fork 224
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate project metadata from setup.py to pyproject.toml following PE…
…P621 (#1848) Delete setup.py and move all project metadata to pyproject.toml as per https://peps.python.org/pep-0621. * Migrate project metadata from setup.py to pyproject.toml following PEP621 * Add docstrings to setup.py * Use the new email address for pygmt team * Update the link for development mode * Set include-package-data to include baseline and data files * Remove setup.py completely. Requires setuptools>=64.0.0 * Fix the minimum required numpy version to 1.20 * Add package data * Update the command to check README syntax * Run tests in editable mode * Multi-line dependencies Co-authored-by: Wei Ji <[email protected]>
- Loading branch information
Showing
6 changed files
with
56 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,54 @@ | ||
[build-system] | ||
requires = ["setuptools>=45", "setuptools_scm[toml]>=6.2"] | ||
requires = ["setuptools>=64", "setuptools_scm[toml]>=6.2"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "pygmt" | ||
description = "A Python interface for the Generic Mapping Tools" | ||
readme = "README.rst" | ||
requires-python = ">=3.8" | ||
license = {text = "BSD License"} | ||
authors = [{name = "The PyGMT Developers", email = "[email protected]"}] | ||
maintainers = [{name = "The PyGMT Developers", email = "[email protected]"}] | ||
keywords = [] | ||
classifiers = [ | ||
"Development Status :: 4 - Beta", | ||
"Intended Audience :: Science/Research", | ||
"Intended Audience :: Developers", | ||
"Intended Audience :: Education", | ||
"Topic :: Scientific/Engineering", | ||
"Topic :: Software Development :: Libraries", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"License :: OSI Approved :: BSD License", | ||
] | ||
dependencies = [ | ||
"numpy>=1.20", | ||
"pandas", | ||
"xarray", | ||
"netCDF4", | ||
"packaging" | ||
] | ||
dynamic = ["version"] | ||
|
||
[project.urls] | ||
homepage = "https://www.pygmt.org" | ||
documentation = "https://www.pygmt.org" | ||
repository = "https://github.com/GenericMappingTools/pygmt" | ||
changelog = "https://www.pygmt.org/latest/changes.html" | ||
|
||
[tool.setuptools] | ||
platforms = ["Any"] | ||
include-package-data = true | ||
|
||
[tool.setuptools.packages.find] | ||
include = ["pygmt*"] | ||
exclude = ["doc"] | ||
|
||
[tool.setuptools.package-data] | ||
tests = ["data/*", "baseline/*"] | ||
|
||
[tool.setuptools_scm] | ||
local_scheme = "node-and-date" | ||
fallback_version = "999.999.999+unknown" | ||
|