stackure 1.0.0__tar.gz → 1.20260720.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {stackure-1.0.0 → stackure-1.20260720.4}/.github/workflows/check-build.yml +5 -5
- stackure-1.20260720.4/.github/workflows/release.yml +56 -0
- {stackure-1.0.0 → stackure-1.20260720.4}/PKG-INFO +1 -1
- {stackure-1.0.0 → stackure-1.20260720.4}/pyproject.toml +1 -1
- stackure-1.0.0/.github/workflows/release.yml +0 -78
- {stackure-1.0.0 → stackure-1.20260720.4}/.github/dependabot.yml +0 -0
- {stackure-1.0.0 → stackure-1.20260720.4}/.gitignore +0 -0
- {stackure-1.0.0 → stackure-1.20260720.4}/LICENSE +0 -0
- {stackure-1.0.0 → stackure-1.20260720.4}/README.md +0 -0
- {stackure-1.0.0 → stackure-1.20260720.4}/stackure/__init__.py +0 -0
- {stackure-1.0.0 → stackure-1.20260720.4}/stackure/client.py +0 -0
- {stackure-1.0.0 → stackure-1.20260720.4}/stackure/errors.py +0 -0
- {stackure-1.0.0 → stackure-1.20260720.4}/stackure/middleware.py +0 -0
- {stackure-1.0.0 → stackure-1.20260720.4}/stackure/py.typed +0 -0
- {stackure-1.0.0 → stackure-1.20260720.4}/stackure/types.py +0 -0
- {stackure-1.0.0 → stackure-1.20260720.4}/stackure/validation.py +0 -0
|
@@ -14,15 +14,15 @@ jobs:
|
|
|
14
14
|
build:
|
|
15
15
|
runs-on: ubuntu-latest
|
|
16
16
|
steps:
|
|
17
|
-
- uses: actions/checkout@
|
|
18
|
-
- uses: actions/setup-python@
|
|
17
|
+
- uses: actions/checkout@v7
|
|
18
|
+
- uses: actions/setup-python@v7
|
|
19
19
|
with:
|
|
20
20
|
python-version: "3.x"
|
|
21
21
|
- run: python -m pip install --upgrade pip build
|
|
22
22
|
- run: python -m build
|
|
23
23
|
- run: python -m pip install dist/*.whl
|
|
24
24
|
- run: python -c "import stackure"
|
|
25
|
-
- name:
|
|
26
|
-
run: gh pr merge --squash --
|
|
25
|
+
- name: Enable auto-merge
|
|
26
|
+
run: gh pr merge --squash --auto "${{ github.event.pull_request.html_url }}"
|
|
27
27
|
env:
|
|
28
|
-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
28
|
+
GH_TOKEN: ${{ secrets.MERGE_PAT || secrets.GITHUB_TOKEN }}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
name: Release (date-based auto)
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
workflow_dispatch:
|
|
7
|
+
|
|
8
|
+
permissions:
|
|
9
|
+
contents: write
|
|
10
|
+
id-token: write
|
|
11
|
+
attestations: write
|
|
12
|
+
|
|
13
|
+
concurrency:
|
|
14
|
+
group: release
|
|
15
|
+
cancel-in-progress: false
|
|
16
|
+
|
|
17
|
+
jobs:
|
|
18
|
+
release:
|
|
19
|
+
runs-on: ubuntu-latest
|
|
20
|
+
environment:
|
|
21
|
+
name: pypi
|
|
22
|
+
url: https://pypi.org/project/stackure
|
|
23
|
+
steps:
|
|
24
|
+
- uses: actions/checkout@v7
|
|
25
|
+
- name: Compute date-based version
|
|
26
|
+
id: v
|
|
27
|
+
run: |
|
|
28
|
+
version="1.$(date -u +%Y%m%d).${GITHUB_RUN_NUMBER}"
|
|
29
|
+
echo "version=$version" >> "$GITHUB_OUTPUT"
|
|
30
|
+
echo "tag=v$version" >> "$GITHUB_OUTPUT"
|
|
31
|
+
- name: Set version in pyproject.toml
|
|
32
|
+
run: |
|
|
33
|
+
sed -i -E "s/^version = \"[^\"]*\"/version = \"${{ steps.v.outputs.version }}\"/" pyproject.toml
|
|
34
|
+
- uses: actions/setup-python@v7
|
|
35
|
+
with:
|
|
36
|
+
python-version: "3.x"
|
|
37
|
+
- run: python -m pip install --upgrade pip build
|
|
38
|
+
- run: python -m build
|
|
39
|
+
- name: Attest provenance
|
|
40
|
+
uses: actions/attest-build-provenance@v4
|
|
41
|
+
with:
|
|
42
|
+
subject-path: "dist/*"
|
|
43
|
+
- name: Publish to PyPI
|
|
44
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
45
|
+
- name: Create + push tag
|
|
46
|
+
run: |
|
|
47
|
+
git config user.name "github-actions[bot]"
|
|
48
|
+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
|
49
|
+
git tag "${{ steps.v.outputs.tag }}"
|
|
50
|
+
git push origin "${{ steps.v.outputs.tag }}"
|
|
51
|
+
- name: GitHub Release
|
|
52
|
+
uses: softprops/action-gh-release@v3
|
|
53
|
+
with:
|
|
54
|
+
tag_name: ${{ steps.v.outputs.tag }}
|
|
55
|
+
files: dist/*
|
|
56
|
+
generate_release_notes: true
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
name: Release on VERSION bump
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches: [main]
|
|
6
|
-
|
|
7
|
-
permissions:
|
|
8
|
-
contents: write
|
|
9
|
-
id-token: write
|
|
10
|
-
attestations: write
|
|
11
|
-
|
|
12
|
-
concurrency:
|
|
13
|
-
group: release
|
|
14
|
-
cancel-in-progress: false
|
|
15
|
-
|
|
16
|
-
jobs:
|
|
17
|
-
check:
|
|
18
|
-
runs-on: ubuntu-latest
|
|
19
|
-
outputs:
|
|
20
|
-
skip: ${{ steps.gate.outputs.skip }}
|
|
21
|
-
version: ${{ steps.v.outputs.version }}
|
|
22
|
-
tag: ${{ steps.v.outputs.tag }}
|
|
23
|
-
steps:
|
|
24
|
-
- uses: actions/checkout@v6
|
|
25
|
-
with:
|
|
26
|
-
fetch-depth: 0
|
|
27
|
-
- name: Read version
|
|
28
|
-
id: v
|
|
29
|
-
run: |
|
|
30
|
-
version=$(grep -E '^version = ' pyproject.toml | head -1 | sed -E 's/version = "(.*)"/\1/')
|
|
31
|
-
echo "version=$version" >> "$GITHUB_OUTPUT"
|
|
32
|
-
echo "tag=v$version" >> "$GITHUB_OUTPUT"
|
|
33
|
-
- name: Should release?
|
|
34
|
-
id: gate
|
|
35
|
-
run: |
|
|
36
|
-
if git rev-parse --verify "refs/tags/${{ steps.v.outputs.tag }}" >/dev/null 2>&1; then
|
|
37
|
-
echo "Tag ${{ steps.v.outputs.tag }} already exists. Skipping."
|
|
38
|
-
echo "skip=true" >> "$GITHUB_OUTPUT"
|
|
39
|
-
else
|
|
40
|
-
echo "skip=false" >> "$GITHUB_OUTPUT"
|
|
41
|
-
fi
|
|
42
|
-
|
|
43
|
-
release:
|
|
44
|
-
needs: check
|
|
45
|
-
if: needs.check.outputs.skip == 'false'
|
|
46
|
-
runs-on: ubuntu-latest
|
|
47
|
-
environment:
|
|
48
|
-
name: pypi
|
|
49
|
-
url: https://pypi.org/project/stackure
|
|
50
|
-
permissions:
|
|
51
|
-
contents: write
|
|
52
|
-
id-token: write
|
|
53
|
-
attestations: write
|
|
54
|
-
steps:
|
|
55
|
-
- uses: actions/checkout@v6
|
|
56
|
-
- uses: actions/setup-python@v6
|
|
57
|
-
with:
|
|
58
|
-
python-version: "3.x"
|
|
59
|
-
- run: python -m pip install --upgrade pip build
|
|
60
|
-
- run: python -m build
|
|
61
|
-
- name: Attest provenance
|
|
62
|
-
uses: actions/attest-build-provenance@v4
|
|
63
|
-
with:
|
|
64
|
-
subject-path: "dist/*"
|
|
65
|
-
- name: Publish to PyPI
|
|
66
|
-
uses: pypa/gh-action-pypi-publish@release/v1
|
|
67
|
-
- name: Create + push tag
|
|
68
|
-
run: |
|
|
69
|
-
git config user.name "github-actions[bot]"
|
|
70
|
-
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
|
71
|
-
git tag "${{ needs.check.outputs.tag }}"
|
|
72
|
-
git push origin "${{ needs.check.outputs.tag }}"
|
|
73
|
-
- name: GitHub Release
|
|
74
|
-
uses: softprops/action-gh-release@v3
|
|
75
|
-
with:
|
|
76
|
-
tag_name: ${{ needs.check.outputs.tag }}
|
|
77
|
-
files: dist/*
|
|
78
|
-
generate_release_notes: true
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|