Skip to content

Commit 5d034f5

Browse files
committed
move to pyproject.toml
1 parent 22b2716 commit 5d034f5

4 files changed

Lines changed: 62 additions & 53 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
cmocean/_version.py
12
cmocean/rgb/drafts/
23
dist
34
*.pyc

pyproject.toml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
[build-system]
2+
build-backend = "setuptools.build_meta"
3+
requires = [
4+
"setuptools>=42",
5+
"setuptools_scm",
6+
"wheel",
7+
]
8+
9+
[project]
10+
name = "cmocean"
11+
description = "Colormaps for Oceanography"
12+
readme = "README.md"
13+
license = {file = "LICENSE.txt"}
14+
maintainers = [
15+
{name = "Kristen Thyng", email = "kthyng@gmail.com"},
16+
]
17+
requires-python = ">=3.8"
18+
classifiers = [
19+
"Programming Language :: Python :: 3 :: Only",
20+
"Programming Language :: Python :: 3.8",
21+
"Programming Language :: Python :: 3.9",
22+
"Programming Language :: Python :: 3.10",
23+
"Programming Language :: Python :: 3.11",
24+
"Programming Language :: Python :: 3.12",
25+
]
26+
dynamic = [
27+
"dependencies",
28+
"version",
29+
]
30+
[project.optional-dependencies]
31+
tests = [
32+
"pytest",
33+
]
34+
plots = [
35+
"colorspacious",
36+
"viscm",
37+
]
38+
39+
[project.urls]
40+
documentation = "https://matplotlib.org/cmocean/"
41+
homepage = "https://github.com/matplotlib/cmocean"
42+
repository = "https://github.com/matplotlib/cmocean"
43+
44+
[tool.setuptools]
45+
packages = ["cmocean"]
46+
include-package-data = true
47+
48+
[tool.setuptools.dynamic]
49+
dependencies = {file = ["requirements.txt"]}
50+
51+
[tool.setuptools_scm]
52+
write_to = "cmocean/_version.py"
53+
write_to_template = "__version__ = '{version}'"
54+
tag_regex = "^(?P<prefix>v)?(?P<version>[^\\+]+)(?P<suffix>.*)?$"
55+
56+
[tool.pytest.ini_options]
57+
filterwarnings = [
58+
"error:::cmocean.*",
59+
"ignore::UserWarning",
60+
"ignore::RuntimeWarning",
61+
]

setup.cfg

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

setup.py

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

0 commit comments

Comments
 (0)