stackure 1.0.0__tar.gz → 1.20260417.3__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.
@@ -1,4 +1,4 @@
1
- name: Release on VERSION bump
1
+ name: Release (date-based auto)
2
2
 
3
3
  on:
4
4
  push:
@@ -14,45 +14,22 @@ concurrency:
14
14
  cancel-in-progress: false
15
15
 
16
16
  jobs:
17
- check:
17
+ release:
18
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 }}
19
+ environment:
20
+ name: pypi
21
+ url: https://pypi.org/project/stackure
23
22
  steps:
24
23
  - uses: actions/checkout@v6
25
- with:
26
- fetch-depth: 0
27
- - name: Read version
24
+ - name: Compute date-based version
28
25
  id: v
29
26
  run: |
30
- version=$(grep -E '^version = ' pyproject.toml | head -1 | sed -E 's/version = "(.*)"/\1/')
27
+ version="1.$(date -u +%Y%m%d).${GITHUB_RUN_NUMBER}"
31
28
  echo "version=$version" >> "$GITHUB_OUTPUT"
32
29
  echo "tag=v$version" >> "$GITHUB_OUTPUT"
33
- - name: Should release?
34
- id: gate
30
+ - name: Set version in pyproject.toml
35
31
  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
32
+ sed -i -E "s/^version = \"[^\"]*\"/version = \"${{ steps.v.outputs.version }}\"/" pyproject.toml
56
33
  - uses: actions/setup-python@v6
57
34
  with:
58
35
  python-version: "3.x"
@@ -68,11 +45,11 @@ jobs:
68
45
  run: |
69
46
  git config user.name "github-actions[bot]"
70
47
  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 }}"
48
+ git tag "${{ steps.v.outputs.tag }}"
49
+ git push origin "${{ steps.v.outputs.tag }}"
73
50
  - name: GitHub Release
74
51
  uses: softprops/action-gh-release@v3
75
52
  with:
76
- tag_name: ${{ needs.check.outputs.tag }}
53
+ tag_name: ${{ steps.v.outputs.tag }}
77
54
  files: dist/*
78
55
  generate_release_notes: true
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: stackure
3
- Version: 1.0.0
3
+ Version: 1.20260417.3
4
4
  Summary: Official Stackure authentication SDK for Python
5
5
  Project-URL: Homepage, https://stackure.com
6
6
  Project-URL: Repository, https://github.com/syi-stackure/sdk-py
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "stackure"
7
- version = "1.0.0"
7
+ version = "1.20260417.3"
8
8
  description = "Official Stackure authentication SDK for Python"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
File without changes
File without changes
File without changes