Skip to content

Commit

Permalink
fix: replace hynek build with PSR build
Browse files Browse the repository at this point in the history
  • Loading branch information
mdtanker committed Nov 23, 2023
1 parent 1cae3f8 commit f40cfe9
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 19 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,23 +32,23 @@ jobs:
- id: semantic-release-job
uses: python-semantic-release/python-semantic-release@master

# Always build & lint package. Need to re-checkout after semantic-release in case it
# made a commit
build-package:
name: Build & verify package
runs-on: ubuntu-latest
needs: semantic-release
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: hynek/build-and-inspect-python-package@v1
# # Always build & lint package. Need to re-checkout after semantic-release in case it
# # made a commit
# build-package:
# name: Build & verify package
# runs-on: ubuntu-latest
# needs: semantic-release
# steps:
# - uses: actions/checkout@v3
# with:
# fetch-depth: 0
# - uses: hynek/build-and-inspect-python-package@v1

# Upload to Test PyPI on every commit on main.
release-test-pypi:
name: Publish in-dev package to test.pypi.org
runs-on: ubuntu-latest
needs: [semantic-release, build-package]
needs: [semantic-release]
environment:
name: testpypi
url: https://pypi.org/p/invert4geom
Expand All @@ -72,7 +72,7 @@ jobs:
release-pypi:
name: Publish released package to pypi.org
runs-on: ubuntu-latest
needs: [semantic-release, build-package]
needs: [semantic-release]
environment:
name: pypi
url: https://pypi.org/p/invert4geom
Expand All @@ -98,7 +98,7 @@ jobs:
id-token: write
contents: write
if: needs.semantic-release.released == 'true'
needs: [semantic-release, build-package]
needs: [semantic-release]
steps:
- uses: python-semantic-release/upload-to-gh-release@main
with:
Expand Down
9 changes: 4 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,7 @@ messages_control.disable = [
version_variables = ["src/invert4geom/__init__.py:__version__"]
version_toml = ["pyproject.toml:project.version"]
major_on_zero = false
# build_command = "pip install poetry && poetry build"
# build_command = """
# python -m pip install build~=0.10.0
# python -m build .
# """
build_command = """
python -m pip install build
python -m build .
"""

0 comments on commit f40cfe9

Please sign in to comment.