Skip to content

Commit

Permalink
chore: Get version for setup from xml2rfc source (#1062)
Browse files Browse the repository at this point in the history
  • Loading branch information
kesara authored Dec 14, 2023
1 parent 880d20d commit ea5f4cf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/pypi-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit ea5f4cf

Please sign in to comment.