Skip to content

Commit

Permalink
move to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
ocefpaf committed Jul 23, 2024
1 parent 22b2716 commit 5d034f5
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 53 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
cmocean/_version.py
cmocean/rgb/drafts/
dist
*.pyc
Expand Down
61 changes: 61 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
[build-system]
build-backend = "setuptools.build_meta"
requires = [
"setuptools>=42",
"setuptools_scm",
"wheel",
]

[project]
name = "cmocean"
description = "Colormaps for Oceanography"
readme = "README.md"
license = {file = "LICENSE.txt"}
maintainers = [
{name = "Kristen Thyng", email = "kthyng@gmail.com"},
]
requires-python = ">=3.8"
classifiers = [
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dynamic = [
"dependencies",
"version",
]
[project.optional-dependencies]
tests = [
"pytest",
]
plots = [
"colorspacious",
"viscm",
]

[project.urls]
documentation = "https://matplotlib.org/cmocean/"
homepage = "https://github.com/matplotlib/cmocean"
repository = "https://github.com/matplotlib/cmocean"

[tool.setuptools]
packages = ["cmocean"]
include-package-data = true

[tool.setuptools.dynamic]
dependencies = {file = ["requirements.txt"]}

[tool.setuptools_scm]
write_to = "cmocean/_version.py"
write_to_template = "__version__ = '{version}'"
tag_regex = "^(?P<prefix>v)?(?P<version>[^\\+]+)(?P<suffix>.*)?$"

[tool.pytest.ini_options]
filterwarnings = [
"error:::cmocean.*",
"ignore::UserWarning",
"ignore::RuntimeWarning",
]
2 changes: 0 additions & 2 deletions setup.cfg

This file was deleted.

51 changes: 0 additions & 51 deletions setup.py

This file was deleted.

0 comments on commit 5d034f5

Please sign in to comment.