Skip to content

Commit 85ee936

Browse files
Add debug step in workflow
1 parent 0b7ea15 commit 85ee936

2 files changed

Lines changed: 19 additions & 22 deletions

File tree

.github/workflows/master-release.yml

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -183,35 +183,32 @@ jobs:
183183
- name: Install build dependencies
184184
run: |
185185
python -m pip install --upgrade pip
186-
python -m pip install --upgrade build twine setuptools wheel
186+
python -m pip install -e ".[publish]"
187187
188188
- name: Build package
189189
run: |
190190
# Clean any previous builds
191191
rm -rf dist/ build/ *.egg-info/
192192
# Build
193193
python -m build --sdist --wheel .
194-
# Verify the built packages
195-
echo "Built packages:"
196-
ls -la dist/
197194
# Check wheel contents
198195
python -m zipfile -l dist/*.whl | head -30
199196
python -m twine check dist/*
200197
201-
# - name: Create GH Release
202-
# env:
203-
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
204-
# run: | # The following will create the git tag.
205-
# gh release create "${{ needs.validate-staging.outputs.release-tag }}" dist/* \
206-
# --title "${{ needs.validate-staging.outputs.release-tag }}" \
207-
# --notes "${{ steps.release_notes.outputs.content }}"
208-
209-
# - name: Publish to PyPI
210-
# env:
211-
# TWINE_USERNAME: __token__
212-
# TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
213-
# run: |
214-
# python -m twine upload dist/*
198+
- name: Create GH Release
199+
env:
200+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
201+
run: | # The following will create the git tag.
202+
gh release create "${{ needs.validate-staging.outputs.release-tag }}" dist/* \
203+
--title "${{ needs.validate-staging.outputs.release-tag }}" \
204+
--notes "${{ steps.release_notes.outputs.content }}"
205+
206+
- name: Publish to PyPI
207+
env:
208+
TWINE_USERNAME: __token__
209+
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
210+
run: |
211+
python -m twine upload dist/*
215212
216213
notify-completion:
217214
needs: [validate-staging, merge-to-master, publish-release]

pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,11 @@ authors = [
66
]
77
description = "Comparison tool for two (x, y) data sets given tolerances in x and y directions"
88
readme = "README.md"
9-
license = "BSD-3-Clause"
10-
license-files = ["LICENSE.txt"]
119
requires-python = ">=3.8"
1210
classifiers = [
1311
"Development Status :: 5 - Production/Stable",
1412
"Environment :: Console",
13+
"License :: OSI Approved :: BSD License",
1514
"Programming Language :: Python :: 3.8",
1615
"Programming Language :: C",
1716
"Intended Audience :: End Users/Desktop",
@@ -27,12 +26,13 @@ dev = [
2726
]
2827
publish = [
2928
"commitizen>=4.8.2",
30-
"twine>=4.0.0",
29+
"twine>=6.1.0",
3130
"build>=1.0.0",
31+
"packaging>=25.0",
3232
]
3333

3434
[build-system]
35-
requires = ["setuptools>=70.0.0", "wheel>=0.37.0"]
35+
requires = ["setuptools>=78.1.1", "wheel>=0.37.0"]
3636
build-backend = "setuptools.build_meta"
3737

3838
[project.urls]

0 commit comments

Comments
 (0)