Skip to content

Commit

Permalink
Replace setup.cfg and setup.py files with more content in pyproject.t…
Browse files Browse the repository at this point in the history
…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
pnkraemer authored Apr 23, 2024
1 parent fedc56f commit aaa63be
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 58 deletions.
67 changes: 35 additions & 32 deletions pyproject.toml
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"
Expand All @@ -53,7 +56,7 @@ load-plugins = [
"pylint.extensions.docparams",
"pylint.extensions.docstyle",
]

ignore-paths = 'tueplots/_version.py'

[tool.pylint.messages_control]
disable = [
Expand Down
23 changes: 0 additions & 23 deletions setup.cfg

This file was deleted.

3 changes: 0 additions & 3 deletions setup.py

This file was deleted.

0 comments on commit aaa63be

Please sign in to comment.