diff --git a/pyproject.toml b/pyproject.toml index 11aebb4..117751b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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="pekra@dtu.dk"} +] +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 = [ diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 12a59e4..0000000 --- a/setup.cfg +++ /dev/null @@ -1,23 +0,0 @@ -[metadata] -name = tueplots -description = Scientific plotting made easy -author = Nicholas Krämer -author_email = nicholas.kraemer@uni-tuebingen.de -license = MIT -license_file = LICENSE -long_description = file: README.md -long_description_content_type = text/markdown - -[options] -packages = find: -install_requires = - matplotlib - numpy -python_requires = >=3.8 - - -[options.extras_require] -ci = - tox -examples = - jupyter diff --git a/setup.py b/setup.py deleted file mode 100644 index 6068493..0000000 --- a/setup.py +++ /dev/null @@ -1,3 +0,0 @@ -from setuptools import setup - -setup()