-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace setup.cfg and setup.py files with more content in pyproject.t…
…oml (#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
- Loading branch information
Showing
3 changed files
with
35 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,44 @@ | ||
[build-system] | ||
requires = [ | ||
"setuptools>=42", | ||
"wheel", | ||
"setuptools_scm[toml]>=6.0", | ||
"setuptools>=64", | ||
"setuptools_scm>=8", | ||
] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "tueplots" | ||
authors = [ | ||
{name="Nicholas Krämer", email="[email protected]"} | ||
] | ||
description = "Scientific plotting made easy." | ||
readme = "README.md" | ||
requires-python=">=3.8" | ||
classifiers = [ | ||
"License :: OSI Approved :: MIT License", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
] | ||
dynamic = ["version"] | ||
dependencies = [ | ||
"matplotlib", | ||
"numpy", | ||
] | ||
|
||
[project.optional-dependencies] | ||
ci = ["tox"] | ||
examples = ["jupyter"] | ||
|
||
[tool.setuptools.packages.find] | ||
where = ["."] | ||
include = ["tueplots*"] | ||
|
||
[tool.setuptools_scm] | ||
local_scheme = "dirty-tag" | ||
write_to = "tueplots/_version.py" | ||
write_to_template = """ | ||
# pylint: skip-file | ||
# coding: utf-8 | ||
# file generated by setuptools_scm | ||
# don't change, don't track in version control | ||
version = \"{version}\" | ||
""" | ||
version_file = "tueplots/_version.py" | ||
|
||
# Configuration of the black code style checker | ||
# For more information about Black's usage of this file, see | ||
# https://github.com/psf/black#pyprojecttoml | ||
[tool.black] | ||
include = '\.pyi?$' | ||
exclude = ''' | ||
/( | ||
\.eggs | ||
| \.git | ||
| \.hg | ||
| \.mypy_cache | ||
| \.tox | ||
| \.venv | ||
| _build | ||
| buck-out | ||
| build | ||
| dist | ||
)/ | ||
''' | ||
|
||
[tool.isort] | ||
multi_line_output = "3" | ||
|
@@ -53,7 +56,7 @@ load-plugins = [ | |
"pylint.extensions.docparams", | ||
"pylint.extensions.docstyle", | ||
] | ||
|
||
ignore-paths = 'tueplots/_version.py' | ||
|
||
[tool.pylint.messages_control] | ||
disable = [ | ||
|