Skip to content

Commit aaa63be

Browse files
authored
Replace setup.cfg and setup.py files with more content in pyproject.toml (#148)
* Update the misc-section of the readme * Replace the setup.cfg and setup.py files with more content in pyproject.toml * Remove the specific black configuration * Pylint-ignore the version file
1 parent fedc56f commit aaa63be

File tree

3 files changed

+35
-58
lines changed

3 files changed

+35
-58
lines changed

pyproject.toml

+35-32
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,44 @@
11
[build-system]
22
requires = [
3-
"setuptools>=42",
4-
"wheel",
5-
"setuptools_scm[toml]>=6.0",
3+
"setuptools>=64",
4+
"setuptools_scm>=8",
65
]
76
build-backend = "setuptools.build_meta"
87

8+
[project]
9+
name = "tueplots"
10+
authors = [
11+
{name="Nicholas Krämer", email="[email protected]"}
12+
]
13+
description = "Scientific plotting made easy."
14+
readme = "README.md"
15+
requires-python=">=3.8"
16+
classifiers = [
17+
"License :: OSI Approved :: MIT License",
18+
"Operating System :: OS Independent",
19+
"Programming Language :: Python",
20+
"Programming Language :: Python :: 3.9",
21+
"Programming Language :: Python :: 3.10",
22+
"Programming Language :: Python :: 3.11",
23+
"Programming Language :: Python :: 3.12",
24+
]
25+
dynamic = ["version"]
26+
dependencies = [
27+
"matplotlib",
28+
"numpy",
29+
]
30+
31+
[project.optional-dependencies]
32+
ci = ["tox"]
33+
examples = ["jupyter"]
34+
35+
[tool.setuptools.packages.find]
36+
where = ["."]
37+
include = ["tueplots*"]
38+
939
[tool.setuptools_scm]
10-
local_scheme = "dirty-tag"
11-
write_to = "tueplots/_version.py"
12-
write_to_template = """
13-
# pylint: skip-file
14-
# coding: utf-8
15-
# file generated by setuptools_scm
16-
# don't change, don't track in version control
17-
version = \"{version}\"
18-
"""
40+
version_file = "tueplots/_version.py"
1941

20-
# Configuration of the black code style checker
21-
# For more information about Black's usage of this file, see
22-
# https://github.com/psf/black#pyprojecttoml
23-
[tool.black]
24-
include = '\.pyi?$'
25-
exclude = '''
26-
/(
27-
\.eggs
28-
| \.git
29-
| \.hg
30-
| \.mypy_cache
31-
| \.tox
32-
| \.venv
33-
| _build
34-
| buck-out
35-
| build
36-
| dist
37-
)/
38-
'''
3942

4043
[tool.isort]
4144
multi_line_output = "3"
@@ -53,7 +56,7 @@ load-plugins = [
5356
"pylint.extensions.docparams",
5457
"pylint.extensions.docstyle",
5558
]
56-
59+
ignore-paths = 'tueplots/_version.py'
5760

5861
[tool.pylint.messages_control]
5962
disable = [

setup.cfg

-23
This file was deleted.

setup.py

-3
This file was deleted.

0 commit comments

Comments
 (0)