pyfunctionhood 0.0.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,47 @@
1
+ name: Publish Python Package
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - 'v*' # Trigger workflow on tags that start with "v" (e.g., v1.0.0)
7
+ workflow_dispatch: # Allow manual runs from the Actions tab
8
+
9
+ jobs:
10
+ build-and-publish:
11
+ name: Build and publish to PyPI
12
+ runs-on: ubuntu-latest
13
+
14
+ # Required for trusted publishing to PyPI
15
+ permissions:
16
+ id-token: write
17
+ contents: write # Elevated from 'read' to allow Release creation
18
+
19
+ steps:
20
+ - name: Checkout Code
21
+ uses: actions/checkout@v6
22
+ with:
23
+ fetch-depth: 0
24
+
25
+ - name: Set up Python
26
+ uses: actions/setup-python@v6
27
+ with:
28
+ python-version: "3.x"
29
+
30
+ - name: Install build dependencies
31
+ run: python -m pip install --upgrade pip build
32
+
33
+ - name: Build sdist and wheel
34
+ run: python -m build
35
+
36
+ - name: Publish to PyPI
37
+ uses: pypa/gh-action-pypi-publish@release/v1
38
+
39
+ - name: Create GitHub Release
40
+ if: startsWith(github.ref, 'refs/tags/')
41
+ uses: softprops/action-gh-release@v2
42
+ with:
43
+ # This will include the .tar.gz and .whl files in the GitHub Release assets
44
+ files: dist/*
45
+ generate_release_notes: true
46
+ env:
47
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -0,0 +1,8 @@
1
+ *~
2
+ *.bak
3
+ .vscode
4
+ __pycache__/
5
+ *.pdf
6
+ build/
7
+ dist/
8
+ *.egg-info/