From 3c315a45dcf06d9c48bfb7fa2b5928f7c4dd01a4 Mon Sep 17 00:00:00 2001 From: gesh Date: Mon, 23 Jun 2025 19:14:00 +0300 Subject: [PATCH] Convert to pyproject.toml (PEP518) --- pyproject.toml | 41 +++++++++++++++++++++++++++++++++++++++++ setup.cfg | 41 ----------------------------------------- setup.py | 4 ---- 3 files changed, 41 insertions(+), 45 deletions(-) create mode 100644 pyproject.toml delete mode 100644 setup.cfg delete mode 100644 setup.py diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..4cffd24 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,41 @@ +[build-system] +requires = ["setuptools>=61.2"] +build-backend = "setuptools.build_meta" + +[project] +name = "flake8_polyfill" +description = "Polyfill package for Flake8 plugins" +authors = [{name = "Ian Stapleton Cordasco", email = "graffatcolmingov@gmail.com"}] +license = "MIT" +license-files = ["LICENSE"] +classifiers = [ + "Environment :: Console", + "Framework :: Flake8", + "Intended Audience :: Developers", + "Programming Language :: Python", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3 :: Only", + "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: Implementation :: CPython", + "Topic :: Software Development :: Libraries :: Python Modules", + "Topic :: Software Development :: Quality Assurance", +] +urls = {Homepage = "https://github.com/pycqa/flake8-polyfill"} +requires-python = ">=3.6" +dependencies = ["flake8"] +dynamic = ["version"] +readme = "README.rst" + +[tool.setuptools] +include-package-data = false + +[tool.setuptools.dynamic] +version = {attr = "flake8_polyfill.__version__"} + +[tool.pytest.ini_options] +norecursedirs = [".git", ".*", "*.egg*", "old", "docs", "dist", "build"] +addopts = "-rw" diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 0c0cc53..0000000 --- a/setup.cfg +++ /dev/null @@ -1,41 +0,0 @@ -[metadata] -name = flake8_polyfill -version = attr: flake8_polyfill.__version__ -description = Polyfill package for Flake8 plugins -long_description = file: README.rst -long_description_content_type = text/x-rst -url = https://github.com/pycqa/flake8-polyfill -author = Ian Stapleton Cordasco -author_email = graffatcolmingov@gmail.com -license = MIT -license_file = LICENSE -classifiers = - Environment :: Console - Framework :: Flake8 - Intended Audience :: Developers - License :: OSI Approved :: MIT License - Programming Language :: Python - Programming Language :: Python :: 3 - Programming Language :: Python :: 3 :: Only - Programming Language :: Python :: 3.6 - Programming Language :: Python :: 3.7 - Programming Language :: Python :: 3.8 - Programming Language :: Python :: 3.9 - Programming Language :: Python :: 3.10 - Programming Language :: Python :: Implementation :: CPython - Topic :: Software Development :: Libraries :: Python Modules - Topic :: Software Development :: Quality Assurance - -[options] -packages = flake8_polyfill -install_requires = - flake8 -python_requires = >=3.6 -package_dir = =src - -[bdist_wheel] -universal = 1 - -[tool:pytest] -norecursedirs = .git .* *.egg* old docs dist build -addopts = -rw diff --git a/setup.py b/setup.py deleted file mode 100644 index 6446078..0000000 --- a/setup.py +++ /dev/null @@ -1,4 +0,0 @@ -"""Installation and packaging.""" -import setuptools - -setuptools.setup()