-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Function parse_it is improved. - Added support for niquests.Response - Added support for kiss_headers.Headers (deepcopy returned)
- Loading branch information
Showing
9 changed files
with
142 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
name: Publish to PyPI | ||
|
||
on: | ||
release: | ||
types: | ||
- created | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
build: | ||
name: "Build dists" | ||
runs-on: "ubuntu-latest" | ||
outputs: | ||
hashes: ${{ steps.hash.outputs.hashes }} | ||
|
||
steps: | ||
- name: "Checkout repository" | ||
uses: "actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608" | ||
|
||
- name: "Setup Python" | ||
uses: "actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1" | ||
with: | ||
python-version: "3.x" | ||
|
||
- name: "Install dependencies" | ||
run: python -m pip install build | ||
|
||
- name: "Build dists" | ||
run: | | ||
SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct) \ | ||
python -m build | ||
- name: "Generate hashes" | ||
id: hash | ||
run: | | ||
cd dist && echo "::set-output name=hashes::$(sha256sum * | base64 -w0)" | ||
- name: "Upload dists" | ||
uses: "actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce" | ||
with: | ||
name: "dist" | ||
path: "dist/" | ||
if-no-files-found: error | ||
retention-days: 5 | ||
|
||
provenance: | ||
needs: [build] | ||
permissions: | ||
actions: read | ||
contents: write | ||
id-token: write # Needed to access the workflow's OIDC identity. | ||
uses: "slsa-framework/slsa-github-generator/.github/workflows/[email protected]" | ||
with: | ||
base64-subjects: "${{ needs.build.outputs.hashes }}" | ||
upload-assets: true | ||
compile-generator: true # Workaround for https://github.com/slsa-framework/slsa-github-generator/issues/1163 | ||
|
||
publish: | ||
name: "Publish" | ||
if: startsWith(github.ref, 'refs/tags/') | ||
environment: | ||
name: pypi | ||
url: https://pypi.org/p/kiss-headers | ||
needs: ["build", "provenance"] | ||
permissions: | ||
contents: write | ||
id-token: write # Needed for trusted publishing to PyPI. | ||
runs-on: "ubuntu-latest" | ||
|
||
steps: | ||
- name: "Download dists" | ||
uses: "actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a" | ||
with: | ||
name: "dist" | ||
path: "dist/" | ||
|
||
- name: "Upload dists to GitHub Release" | ||
env: | ||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
run: | | ||
gh release upload ${{ github.ref_name }} dist/* --repo ${{ github.repository }} | ||
- name: "Publish dists to PyPI" | ||
uses: "pypa/gh-action-pypi-publish@f8c70e705ffc13c3b4d1221169b84f12a75d6ca8" # v1.8.8 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,5 @@ | |
Expose version | ||
""" | ||
|
||
__version__ = "2.4.2" | ||
__version__ = "2.4.3" | ||
VERSION = __version__.split(".") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters