Skip to content

Commit

Permalink
Merge pull request #340 from VWS-Python/switch-to-pyproject-setuptools
Browse files Browse the repository at this point in the history
Switch from setup.cfg to pyproject.toml for setuptools config
  • Loading branch information
adamtheturtle authored Mar 5, 2023
2 parents 7452903 + 57ce8a3 commit cd512d0
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 49 deletions.
10 changes: 1 addition & 9 deletions docs/source/release-process.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
~~~~~~~~~~~~~~~~~

Expand All @@ -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
37 changes: 37 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

40 changes: 0 additions & 40 deletions setup.cfg

This file was deleted.

0 comments on commit cd512d0

Please sign in to comment.