Skip to content

Commit c9e25c7

Browse files
committed
prepping to convert to toml
1 parent 7558d93 commit c9e25c7

File tree

7 files changed

+68
-331
lines changed

7 files changed

+68
-331
lines changed

packages/basemap/pyproject.toml

Lines changed: 67 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,91 @@
11
[build-system]
22
requires = [
3-
'setuptools>=42',
4-
'wheel',
5-
'numpy==2.0.0; python_version >= "3.9"',
6-
'cython>=0.29.21,<3.1'
3+
"setuptools>=42",
4+
"wheel",
5+
"numpy==2.0.0; python_version >= '3.9'",
6+
"cython>=0.29.21,<3.1"
77
]
88
build-backend = "setuptools.build_meta"
99

1010
[project]
1111
name = "basemap"
12-
dynamic = ["version", "optional-dependencies"]
12+
dynamic = ["version", "dependencies", "optional-dependencies"]
1313
description = "Plot data on map projections with matplotlib"
1414
readme = "README.md"
1515
requires-python = ">=3.9"
1616
license = {text = "MIT"}
1717
authors = [
1818
{name = "Jeff Whitaker", email = "jeffrey.s.whitaker@noaa.gov"}
1919
]
20-
dependencies = [
21-
"numpy>=2.0",
22-
"matplotlib>=3.4.0",
23-
"pyproj>=3.0.0",
24-
"packaging >= 16.0, < 25.0",
25-
"pyshp >= 1.2, < 2.4",
26-
"basemap_data >= 1.3.2, < 1.4"
20+
maintainers = [
21+
{name = "Víctor Molina García", email = "molinav@users.noreply.github.com"}
2722
]
23+
keywords = ["GIS", "maps", "plots"]
24+
classifiers = [
25+
"Development Status :: 5 - Production/Stable",
26+
"Intended Audience :: Education",
27+
"Intended Audience :: Science/Research",
28+
"License :: OSI Approved :: MIT License",
29+
"Operating System :: OS Independent",
30+
"Programming Language :: Python :: 3",
31+
"Programming Language :: Python :: 3.9",
32+
"Programming Language :: Python :: 3.10",
33+
"Programming Language :: Python :: 3.11",
34+
"Programming Language :: Python :: 3.12",
35+
"Topic :: Scientific/Engineering :: Visualization",
36+
"Topic :: Software Development :: Libraries :: Python Modules"
37+
]
38+
39+
[project.urls]
40+
Homepage = "https://matplotlib.org/basemap"
41+
Documentation = "https://matplotlib.org/basemap/"
42+
Repository = "https://github.com/matplotlib/basemap"
43+
"Bug Tracker" = "https://github.com/matplotlib/basemap/issues"
2844

2945
[tool.setuptools]
3046
packages = ["mpl_toolkits.basemap"]
3147
package-dir = {"" = "src"}
32-
py-modules = []
48+
license-files = ["LICENSE", "LICENSE.geos"]
3349

3450
[tool.setuptools.package-data]
3551
"mpl_toolkits.basemap" = ["data/*"]
3652

3753
[tool.setuptools.exclude-package-data]
38-
"*" = ["*.pyc", "**/__pycache__/*", "**/.DS_Store/*"]
54+
"*" = ["*.pyc", "**/__pycache__/*"]
55+
56+
[tool.setuptools.dynamic]
57+
version = {attr = "mpl_toolkits.basemap.__version__"}
58+
dependencies = {file = "requirements.txt"}
59+
60+
[tool.setuptools.dynamic.optional-dependencies]
61+
doc = {file = ["requirements-doc.txt"]}
62+
lint = {file = ["requirements-lint.txt"]}
63+
test = {file = ["requirements-test.txt"]}
64+
owslib = {file = ["requirements-owslib.txt"]}
65+
pillow = {file = ["requirements-pillow.txt"]}
66+
67+
[tool.pytest.ini_options]
68+
filterwarnings = [
69+
"error",
70+
"ignore:Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated:DeprecationWarning:unittest2.compatibility:143",
71+
"ignore:datetime.datetime.utcfromtimestamp() is deprecated:DeprecationWarning:dateutil.tz.tz:37"
72+
]
73+
74+
[tool.coverage.paths]
75+
source = [
76+
"src",
77+
"/opt/pyenv/versions/**/site-packages"
78+
]
79+
80+
[tool.coverage.report]
81+
exclude_lines = [
82+
"pragma: no cover",
83+
"def __repr__",
84+
"def __str__",
85+
"raise NotImplementedError",
86+
"if __name__ == .__main__.:"]
87+
88+
89+
90+
[tool.flake8]
91+
ignore = ["E301", "E306", "E402", "E501", "E731", "F401", "F403", "W503", "W504"]

packages/basemap/setup.cfg

Lines changed: 0 additions & 42 deletions
This file was deleted.

packages/basemap/src/_geoslib.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ cdef extern from "geos_c.h":
112112
# Cython 3: Next cdef needs "noexcept" declaration unless
113113
# the compiler directive "legacy_implicit_noexcept" is used
114114
# ("noexcept" syntax supported since Cython 0.29.31).
115-
cdef void notice_h(const char *fmt, ...):
115+
cdef void notice_h(const char *fmt, ...) noexcept:
116116
pass
117117
#format = PyBytes_FromString(fmt)
118118
#message = PyBytes_FromString(msg)

packages/basemap_data/setup.cfg

Lines changed: 0 additions & 12 deletions
This file was deleted.

packages/basemap_data/setup.py

Lines changed: 0 additions & 137 deletions
This file was deleted.

packages/basemap_data_hires/setup.cfg

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)