Skip to content

Commit

Permalink
cur 0.17.0 release
Browse files Browse the repository at this point in the history
update release workflow based on pegen example
  • Loading branch information
MatthieuDartiailh committed Nov 20, 2023
1 parent 430ee71 commit 38b8159
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 38 deletions.
72 changes: 42 additions & 30 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,36 +76,7 @@ jobs:
name: artifact
path: dist/*.whl

release_upload:
name: Create Release and Upload Release Asset
runs-on: ubuntu-latest
if: github.event_name == 'push'
needs: [build_wheels, build_sdist]
steps:
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: ${{ contains(github.ref, '.rc') || contains(github.ref, '.a') || contains(github.ref, '.b')}}
- uses: actions/download-artifact@v3
with:
name: artifact
path: dist
- name: Upload Release Asset
id: upload-release-asset
uses: shogo82148/actions-upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: dist/*

upload_pypi:
publish:
if: github.event_name == 'push'
needs: [build_wheels, build_sdist]
runs-on: ubuntu-latest
Expand All @@ -121,3 +92,44 @@ jobs:
password: ${{ secrets.pypi_password }}
# To test:
# repository_url: https://test.pypi.org/legacy/

github-release:
name: >-
Sign the Python 🐍 distribution 📦 with Sigstore
and create a GitHub Release
runs-on: ubuntu-latest
needs:
- publish

permissions:
contents: write
id-token: write

steps:
- name: Download all the dists
uses: actions/download-artifact@v3
with:
name: python-package-distributions
path: dist/
- name: Sign the dists with Sigstore
uses: sigstore/[email protected]
with:
password: ${{ secrets.pypi_password }}
inputs: >-
./dist/*.tar.gz
./dist/*.whl
- name: Create GitHub Release
env:
GITHUB_TOKEN: ${{ github.token }}
run: >-
gh release create
'${{ github.ref_name }}'
--repo '${{ github.repository }}'
--generate-notes
- name: Upload artifact signatures to GitHub Release
env:
GITHUB_TOKEN: ${{ github.token }}
run: >-
gh release upload
'${{ github.ref_name }}' dist/**
--repo '${{ github.repository }}'
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
/.eggs
/.cache

.dmypy.json
.gitignore~
*.orig

Expand Down
7 changes: 2 additions & 5 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
Welcome to Enaml
================

.. image:: https://travis-ci.org/nucleic/enaml.svg?branch=main
:target: https://travis-ci.org/nucleic/enaml
:alt: Build Status
.. image:: https://github.com/nucleic/enaml/workflows/Continuous%20Integration/badge.svg
:target: https://github.com/nucleic/enaml/actions
.. image:: https://ci.appveyor.com/api/projects/status/p2bapt3y6n7xixcl?svg=true
:target: https://ci.appveyor.com/project/nucleic/enaml
:alt: Appveyor Build Status
.. image:: https://github.com/nucleic/enaml/workflows/Continuous%20Integration/badge.svg
:target: https://github.com/nucleic/enaml/actions
.. image:: https://codecov.io/gh/nucleic/enaml/branch/main/graph/badge.svg
:target: https://codecov.io/gh/nucleic/enaml
:alt: Code Coverage Status
Expand Down
6 changes: 3 additions & 3 deletions releasenotes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ Enaml Release Notes

Dates are written as DD/MM/YYYY

0.17.0 - unreleased
0.17.0 - 20/11/2023
-------------------
- support for Python 3.12 PR #535
Python 3.12 is only tested with Qt6
All syntactic features of Python 3.12 are supported and catching error groups
is now supported.
- fix bug in Enaml parser that was not showing proper location of syntax and
indentation errors in tracebacks when the error was in an Enaml file.
- fix a bug in Enaml parser that was not showing proper location of syntax and
indentation errors in tracebacks when the error was in an Enaml file. PR #530

0.16.1 - 05/05/2023
-------------------
Expand Down

0 comments on commit 38b8159

Please sign in to comment.