-
Notifications
You must be signed in to change notification settings - Fork 245
Migrate project metadata from setup.py to pyproject.toml following PEP621 #1848
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
Changes from 17 commits
0c67c61
7cff590
cc9d8e0
033d369
f6bf6f6
796acf9
f6a0514
1155adc
f1015f5
6aa4888
cfc20a7
f85015e
f257a36
7553f0b
8fbf603
9d9ce07
2764315
5f54cc5
6ba0fe0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,48 @@ | ||
| [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 = "pygmt.team@gmail.com"}] | ||
| maintainers = [{name = "The PyGMT Developers", email = "pygmt.team@gmail.com"}] | ||
| 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"] | ||
|
seisman marked this conversation as resolved.
Outdated
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thinking of whether to declare optional dependencies (https://packaging.python.org/en/latest/specifications/declaring-project-metadata/#dependencies-optional-dependencies). Maybe do in a separate PR. Motivation would be to enable something like
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Opened a PR #2069 for it. |
||
| 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" | ||
|
|
||
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.