mawaqit-py 0.1.0__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.
@@ -0,0 +1 @@
1
+ github: 0xMH
@@ -0,0 +1,46 @@
1
+ name: Publish to PyPI
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ paths: [pyproject.toml]
7
+
8
+ jobs:
9
+ publish:
10
+ runs-on: ubuntu-latest
11
+ permissions:
12
+ contents: write
13
+ steps:
14
+ - uses: actions/checkout@v4
15
+
16
+ - name: Install uv
17
+ uses: astral-sh/setup-uv@v4
18
+
19
+ - name: Get version
20
+ id: version
21
+ run: echo "version=$(grep '^version' pyproject.toml | cut -d'"' -f2)" >> $GITHUB_OUTPUT
22
+
23
+ - name: Check if release exists
24
+ id: check
25
+ run: |
26
+ if gh release view "v${{ steps.version.outputs.version }}" &>/dev/null; then
27
+ echo "exists=true" >> $GITHUB_OUTPUT
28
+ else
29
+ echo "exists=false" >> $GITHUB_OUTPUT
30
+ fi
31
+ env:
32
+ GH_TOKEN: ${{ github.token }}
33
+
34
+ - name: Build
35
+ if: steps.check.outputs.exists == 'false'
36
+ run: uv build
37
+
38
+ - name: Publish to PyPI
39
+ if: steps.check.outputs.exists == 'false'
40
+ run: uv publish --token ${{ secrets.PYPI_TOKEN }}
41
+
42
+ - name: Create GitHub Release
43
+ if: steps.check.outputs.exists == 'false'
44
+ run: gh release create "v${{ steps.version.outputs.version }}" --title "v${{ steps.version.outputs.version }}" --generate-notes
45
+ env:
46
+ GH_TOKEN: ${{ github.token }}
@@ -0,0 +1,11 @@
1
+ __pycache__/
2
+ *.py[cod]
3
+ .venv/
4
+ dist/
5
+ build/
6
+ *.egg-info/
7
+ .ruff_cache/
8
+ .pytest_cache/
9
+ .mypy_cache/
10
+ *.csv
11
+ *.xlsx