Skip to content

Releases: lsst-sqre/build-and-publish-to-pypi

v2.1.2

08 Nov 21:59
v2.1.2
84b8838
Compare
Choose a tag to compare

gh-action-pypi-publish doesn't work with composite actions anymore, so pin it to v1.11.0 for now.

What's Changed

  • DM-47489: Pin gh-action-pypi-publish to v1.11.0 by @fajpunk in #8

New Contributors

Full Changelog: v2.1.1...v2.1.2

v2.1.1

18 Jan 21:24
@rra rra
v2.1.1
f61e98a
Compare
Choose a tag to compare

What's Changed

Full Changelog: v2.1.0...v2.1.1

v2.1.0

12 Sep 14:44
e3df1c1
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v2...v2.1.0

v2.0.0

10 Jul 21:08
7fa391d
Compare
Choose a tag to compare

This release adopts PyPI's trusted publisher program. The pypi-token input for the action is removed entirely.

Upgrade process

Setting up a package's trusted publishing process requires three steps: registering the trusted publisher on PyPI, creating the deployment environment in your GitHub repository's settings, and finally updating to this new lsst-sqre/build-and-publish-to-pypi@v2 action (dropping the pypi-token input).

See this action's README for details.

What's Changed

  • DM-39837: Adopt PyPI's trusted publisher program (for v2) by @jonathansick in #5

Full Changelog: v1...v2.0.0

v1.2.0

05 May 18:39
0bac609
Compare
Choose a tag to compare

This release adds a working-directory input to set the root directory of the Python package that's being built and published. This setting is useful for monorepos. The default is the root directory, which is the existing behaviour.

What's Changed

Full Changelog: v1...v1.2.0

v1.1.0

15 Jul 17:56
ba12b7c
Compare
Choose a tag to compare

The new upload input for the action defaults to true, but can be toggled to false to disable uploads to PyPI. When upload is false, the action runs an additional step with twine check to validate the distributions. Hence this action can be used pull request workflows to ensure that the package builds and has valid metadata.

An example of uploading to PyPI only for tag pushes:

name: Python CI

"on":
  push:
    tags:
      - "*"
  pull_request: {}

jobs:

  pypi:

    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v3
        with:
          fetch-depth: 0 # full history for setuptools_scm

      - name: Build and publish
        uses: lsst-sqre/build-and-publish-to-pypi@v1
        with:
          pypi-token: ${{ secrets.PYPI_SQRE_ADMIN }}
          python-version: "3.10"
          upload: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') }}

What's Changed

Full Changelog: v1.0.1...v1.1.0

v1.0.1

13 Jul 14:31
f78be26
Compare
Choose a tag to compare

That patches an error in the initial release where the run action for updating pip dependencies was missing a required shell parameter field.

What's Changed

  • DM-35548: Shell parameter is needed for a run action by @jonathansick in #2

Full Changelog: v1...v1.0.1

v1.0.0

06 Jul 14:56
b9fefd6
Compare
Choose a tag to compare

This is the first release of lsst-sqre/build-and-publish-to-pypi and our team's first composite action. 🎉

What's Changed

  • DM-35455: Create a composite action for building and publishing to PyPI by @jonathansick in #1

New Contributors

Full Changelog: https://github.com/lsst-sqre/build-and-publish-to-pypi/commits/v1.0.0