diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 467e681a..ef5ddc81 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -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 @@ -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 @@ -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: diff --git a/pyproject.toml b/pyproject.toml index 7bd3ffec..0d485ea6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 . +"""