From fde4c6ebf4b0710c167d6cedf998e90f2d3229f8 Mon Sep 17 00:00:00 2001 From: David Hewitt <1939362+davidhewitt@users.noreply.github.com> Date: Tue, 22 Aug 2023 18:22:44 +0100 Subject: [PATCH 1/2] update python-publish workflow for pep 517 --- .github/workflows/python-publish.yml | 5 ++--- pyproject.toml | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 36f5420d..e3344913 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -26,12 +26,11 @@ jobs: # Install build and packaging dependencies. # setuptools-scm is necessary for ensuring all files from VCS (such as # examples) are in the sdist. - run: | - pip install --upgrade pip setuptools wheel twine setuptools-scm + run: pip install -U pip build twine - name: Build and publish env: TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} run: | - python setup.py sdist bdist_wheel + python -m build twine upload dist/* diff --git a/pyproject.toml b/pyproject.toml index 8a903610..d0d63ffe 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -47,7 +47,7 @@ documentation = "https://setuptools-rust.readthedocs.io" changelog = "https://github.com/PyO3/setuptools-rust/blob/main/CHANGELOG.md" [build-system] -requires = ["setuptools>=62.4"] +requires = ["setuptools>=62.4", "setuptools_scm"] build-backend = "setuptools.build_meta" [tool.isort] From 6a27c47174017ad29385f8431888d2a65766e7d4 Mon Sep 17 00:00:00 2001 From: David Hewitt <1939362+davidhewitt@users.noreply.github.com> Date: Fri, 11 Aug 2023 22:42:52 +0100 Subject: [PATCH 2/2] release: 1.7.0 --- .bumpversion.cfg | 2 +- CHANGELOG.md | 2 +- pyproject.toml | 2 +- setuptools_rust/version.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.bumpversion.cfg b/.bumpversion.cfg index ece98c58..f39e485b 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,7 +1,7 @@ [bumpversion] commit = True tag = False -current_version = 1.6.0 +current_version = 1.7.0 message = release: {new_version} [bumpversion:file:pyproject.toml] diff --git a/CHANGELOG.md b/CHANGELOG.md index e9e84de9..2b3fdb6f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Changelog -## Unreleased +## 1.7.0 (2023-08-22) ### Packaging - Remove direct imports from `distutils`. [#336](https://github.com/PyO3/setuptools-rust/pull/336) - Include `py.typed` when packaging to denote that setuptools-rust includes type hints. [#338](https://github.com/PyO3/setuptools-rust/pull/338) diff --git a/pyproject.toml b/pyproject.toml index d0d63ffe..109b2a21 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "setuptools-rust" -version = "1.6.0" +version = "1.7.0" description = "Setuptools Rust extension plugin" readme = "README.md" requires-python = ">=3.7" diff --git a/setuptools_rust/version.py b/setuptools_rust/version.py index bf923158..6dfefe6b 100644 --- a/setuptools_rust/version.py +++ b/setuptools_rust/version.py @@ -1,4 +1,4 @@ -__version__ = version = "1.6.0" +__version__ = version = "1.7.0" __version_tuple__ = version_tuple = tuple( map(lambda x: int(x[1]) if x[0] < 3 else x[1], enumerate(__version__.split("."))) )