Skip to content

Commit 52b13a3

Browse files
committed
still fighting with the auto-publish workflows
1 parent 249e4ca commit 52b13a3

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

.github/workflows/publish.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@ jobs:
5757
with:
5858
python-version: '3.11'
5959

60-
- name: Install poetry and poetry-dynamic-versioning
60+
- name: Install build tools
6161
run: |
6262
python -m pip install --upgrade pip
63-
pip install poetry poetry-dynamic-versioning[plugin]
63+
pip install build
6464
6565
- name: Verify version from git tags
6666
run: |
@@ -69,14 +69,14 @@ jobs:
6969
7070
- name: Build package
7171
run: |
72-
# Build using poetry-dynamic-versioning backend
73-
poetry build -vvv
72+
# Build using PEP 517 with poetry-dynamic-versioning backend
73+
python -m build --sdist --wheel
7474
75-
- name: Display version
75+
- name: Display built packages
7676
run: |
77-
poetry version
78-
echo "Package version from dynamic versioning:"
79-
poetry run python -c "import icalendar_searcher; print(f'Version: {icalendar_searcher.__version__ if hasattr(icalendar_searcher, \"__version__\") else \"not set\"}')" || echo "No __version__ attribute"
77+
ls -lh dist/
78+
echo "Verifying version in wheel metadata:"
79+
unzip -p dist/*.whl */METADATA | grep "^Version:"
8080
8181
- name: Publish to PyPI
8282
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)