From ea5f4cfd058217b6922174ce34efef16efd19bcf Mon Sep 17 00:00:00 2001 From: Kesara Rathnayake Date: Fri, 15 Dec 2023 09:18:45 +1300 Subject: [PATCH] chore: Get version for setup from xml2rfc source (#1062) --- .github/workflows/pypi-publish.yml | 2 -- setup.cfg | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/pypi-publish.yml b/.github/workflows/pypi-publish.yml index 7b2cf9bc..b8c038b3 100644 --- a/.github/workflows/pypi-publish.yml +++ b/.github/workflows/pypi-publish.yml @@ -97,8 +97,6 @@ jobs: source venv/bin/activate echo "Using version $PKG_VERSION_STRICT" sed -i -r -e "s/^__version__ += '.*'$/__version__ = '$PKG_VERSION_STRICT'/" xml2rfc/__init__.py - python -m build --config-setting=--build-option="setopt --command=metadata --option=version --set-value=$PKG_VERSION_STRICT" - rm -rf dist python -m build --sdist - name: Publish to Test PyPI diff --git a/setup.cfg b/setup.cfg index 8a672852..b9dd57c4 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = xml2rfc -version = 3.18.2 +version = attr: xml2rfc.__version__ description = xml2rfc generates RFCs and IETF drafts from document source in XML according to the IETF xml2rfc v2 and v3 vocabularies. long_description = file: README.md long_description_content_type = text/markdown