diff --git a/.cookiecutter/includes/setuptools/entry_points b/.cookiecutter/includes/pyproject.toml/entry_points/tail similarity index 97% rename from .cookiecutter/includes/setuptools/entry_points rename to .cookiecutter/includes/pyproject.toml/entry_points/tail index cdce96b..b27931d 100644 --- a/.cookiecutter/includes/setuptools/entry_points +++ b/.cookiecutter/includes/pyproject.toml/entry_points/tail @@ -1,2 +1,3 @@ + tox = tox-recreate = tox_recreate diff --git a/.cookiecutter/includes/pyproject.toml/tail b/.cookiecutter/includes/pyproject.toml/tail new file mode 100644 index 0000000..919c19b --- /dev/null +++ b/.cookiecutter/includes/pyproject.toml/tail @@ -0,0 +1,2 @@ +[project.entry-points."tox"] +tox-recreate = "tox_recreate" diff --git a/pyproject.toml b/pyproject.toml index 498a9f2..ffad616 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,8 +2,30 @@ requires = ["setuptools>=45", "setuptools_scm[toml]>=6.2"] build-backend = "setuptools.build_meta" +[project] +dynamic = ["version"] +name = "tox-recreate" +description = "Recreate tox virtual environments when setup.cfg changes." +readme = "README.md" +classifiers = [ + "Programming Language :: Python :: 3", + "License :: OSI Approved :: BSD License", + "Intended Audience :: Developers", +] +requires-python = ">=3.9" +dependencies = [ +] + +[project.urls] +Repository = "/~https://github.com/hypothesis/tox-recreate" +Issues = "/~https://github.com/hypothesis/tox-recreate/issues" +Changelog = "/~https://github.com/hypothesis/tox-recreate/releases" [tool.setuptools_scm] + +[project.entry-points."tox"] +tox-recreate = "tox_recreate" + [tool.pytest.ini_options] addopts = "-q" filterwarnings = [ diff --git a/setup.cfg b/setup.cfg index 3d7186b..8f1a165 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,31 +1,3 @@ -[metadata] -name = tox-recreate -description = Recreate tox virtual environments when setup.cfg changes. -long_description = file: README.md -long_description_content_type = text/markdown -url = /~https://github.com/hypothesis/tox-recreate -project_urls = - Bug Tracker = /~https://github.com/hypothesis/tox-recreate/issues - Changelog = /~https://github.com/hypothesis/tox-recreate/releases -classifiers = - Programming Language :: Python :: 3 - License :: OSI Approved :: BSD License - Intended Audience :: Developers - -[options] -package_dir = - = src -packages = find: -python_requires = >=3.9 -install_requires = - -[options.packages.find] -where = src - -[options.entry_points] -tox = - tox-recreate = tox_recreate - [pycodestyle] ignore = # Disable pycodestyle errors and warnings that we don't care about because