From 57ce8a37cf3da617a00d08d9afc3c3ec56559de5 Mon Sep 17 00:00:00 2001 From: Adam Dangoor Date: Sun, 5 Mar 2023 17:27:04 +0000 Subject: [PATCH] Switch from setup.cfg to pyproject.toml for setuptools config --- docs/source/release-process.rst | 10 +-------- pyproject.toml | 37 ++++++++++++++++++++++++++++++ setup.cfg | 40 --------------------------------- 3 files changed, 38 insertions(+), 49 deletions(-) delete mode 100644 setup.cfg diff --git a/docs/source/release-process.rst b/docs/source/release-process.rst index 14e6592..8b9f06a 100644 --- a/docs/source/release-process.rst +++ b/docs/source/release-process.rst @@ -7,14 +7,6 @@ Outcomes * A new ``git`` tag available to install. * A new package on PyPI. -Prerequisites -~~~~~~~~~~~~~ - -* ``python3`` on your ``PATH`` set to Python 3.11+. -* ``virtualenv``. -* Push access to this repository. -* Trust that ``master`` is ready and high enough quality for release. - Perform a Release ~~~~~~~~~~~~~~~~~ @@ -25,6 +17,6 @@ Perform a Release .. prompt:: bash :substitutions: - $ gh workflow run release.yml --repo |github-owner|/|github-repository| + gh workflow run release.yml --repo |github-owner|/|github-repository| .. _Install GitHub CLI: https://cli.github.com/manual/installation diff --git a/pyproject.toml b/pyproject.toml index 48dbd8f..b9a1dbe 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -177,3 +177,40 @@ ignore = [ "TCH002", "TCH003", ] + +[tool.distutils.bdist_wheel] +universal = true + +[project] +authors = [ { name = "Adam Dangoor", email = "adamdangoor@gmail.com"} ] +classifiers = [ + "Operating System :: POSIX", + "Environment :: Web Environment", + "Programming Language :: Python :: 3.11", + "License :: OSI Approved :: MIT License", + "Development Status :: 5 - Production/Stable", + "Framework :: Pytest", +] +description = "Tools for interacting with the Vuforia Web Services (VWS) website." +dynamic = ["version"] +keywords = ["vuforia", "vws"] +license = { file = "LICENSE" } +name = "vws-web-tools" +readme = { file = "README.rst", content-type = "text/x-rst"} +requires-python = ">=3.10" + +[project.urls] +Source = "https://github.com/VWS-Python/vws-web-tools" + +[tool.setuptools] +zip-safe = false + +[tool.setuptools.packages.find] +where = ["src"] + +[tool.setuptools.package-data] +vws_web_tools = ["py.typed"] + +[project.scripts] +vws-web-tools = "vws_web_tools:vws_web_tools_group" + diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 6f3fb2b..0000000 --- a/setup.cfg +++ /dev/null @@ -1,40 +0,0 @@ -[metadata] -name = VWS Web Tools -description = Tools for interacting with the Vuforia Web Services (VWS) website. -long_description = file: README.rst -long_description_content_type = text/x-rst -keywords = vuforia vws -license = MIT License -license_file = LICENSE -classifiers = - Operating System :: POSIX - Environment :: Web Environment - Programming Language :: Python :: 3.11 - License :: OSI Approved :: MIT License - Development Status :: 5 - Production/Stable -url = https://github.com/VWS-Python/vws-web-tools -author = Adam Dangoor -author_email = adamdangoor@gmail.com - -[options] -zip_safe = False -include_package_data = True -# Avoid dependency links because they are not supported by Read The Docs. -# -# Also, they require users to use ``--process-dependency-links``. -dependency_links = -package_dir= - =src -packages=find: -python_requires = >=3.11 - -[options.packages.find] -where=src - -[options.package_data] -vws_web_tools = - py.typed - -[options.entry_points] -console_scripts = - vws-web-tools = vws_web_tools:vws_web_tools_group