Skip to content

Commit cd512d0

Browse files
Merge pull request #340 from VWS-Python/switch-to-pyproject-setuptools
Switch from setup.cfg to pyproject.toml for setuptools config
2 parents 7452903 + 57ce8a3 commit cd512d0

File tree

3 files changed

+38
-49
lines changed

3 files changed

+38
-49
lines changed

docs/source/release-process.rst

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,6 @@ Outcomes
77
* A new ``git`` tag available to install.
88
* A new package on PyPI.
99

10-
Prerequisites
11-
~~~~~~~~~~~~~
12-
13-
* ``python3`` on your ``PATH`` set to Python 3.11+.
14-
* ``virtualenv``.
15-
* Push access to this repository.
16-
* Trust that ``master`` is ready and high enough quality for release.
17-
1810
Perform a Release
1911
~~~~~~~~~~~~~~~~~
2012

@@ -25,6 +17,6 @@ Perform a Release
2517
.. prompt:: bash
2618
:substitutions:
2719

28-
$ gh workflow run release.yml --repo |github-owner|/|github-repository|
20+
gh workflow run release.yml --repo |github-owner|/|github-repository|
2921

3022
.. _Install GitHub CLI: https://cli.github.com/manual/installation

pyproject.toml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,3 +177,40 @@ ignore = [
177177
"TCH002",
178178
"TCH003",
179179
]
180+
181+
[tool.distutils.bdist_wheel]
182+
universal = true
183+
184+
[project]
185+
authors = [ { name = "Adam Dangoor", email = "[email protected]"} ]
186+
classifiers = [
187+
"Operating System :: POSIX",
188+
"Environment :: Web Environment",
189+
"Programming Language :: Python :: 3.11",
190+
"License :: OSI Approved :: MIT License",
191+
"Development Status :: 5 - Production/Stable",
192+
"Framework :: Pytest",
193+
]
194+
description = "Tools for interacting with the Vuforia Web Services (VWS) website."
195+
dynamic = ["version"]
196+
keywords = ["vuforia", "vws"]
197+
license = { file = "LICENSE" }
198+
name = "vws-web-tools"
199+
readme = { file = "README.rst", content-type = "text/x-rst"}
200+
requires-python = ">=3.10"
201+
202+
[project.urls]
203+
Source = "https://github.com/VWS-Python/vws-web-tools"
204+
205+
[tool.setuptools]
206+
zip-safe = false
207+
208+
[tool.setuptools.packages.find]
209+
where = ["src"]
210+
211+
[tool.setuptools.package-data]
212+
vws_web_tools = ["py.typed"]
213+
214+
[project.scripts]
215+
vws-web-tools = "vws_web_tools:vws_web_tools_group"
216+

setup.cfg

Lines changed: 0 additions & 40 deletions
This file was deleted.

0 commit comments

Comments
 (0)