async-dsmz 1.0.6__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.
- async_dsmz-1.0.6/.github/workflows/publish-to-pypi.yml +55 -0
- async_dsmz-1.0.6/LICENSE +674 -0
- async_dsmz-1.0.6/PKG-INFO +21 -0
- async_dsmz-1.0.6/README.md +1 -0
- async_dsmz-1.0.6/VERSION +1 -0
- async_dsmz-1.0.6/__init__.py +1 -0
- async_dsmz-1.0.6/async_dsmz/__init__.py +2 -0
- async_dsmz-1.0.6/async_dsmz/async_bacdive.py +362 -0
- async_dsmz-1.0.6/async_dsmz/async_lpsn.py +305 -0
- async_dsmz-1.0.6/pyproject.toml +36 -0
- async_dsmz-1.0.6/setup.py +48 -0
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
name: Upload Python Package to PyPI when a Release is Created
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
release:
|
|
5
|
+
types: [created]
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
pypi-publish:
|
|
9
|
+
name: Publish release to PyPI
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
environment:
|
|
12
|
+
name: release
|
|
13
|
+
url: https://pypi.org/p/async_dsmz/
|
|
14
|
+
permissions:
|
|
15
|
+
id-token: write
|
|
16
|
+
steps:
|
|
17
|
+
- name: Checkout repository
|
|
18
|
+
uses: actions/checkout@v4
|
|
19
|
+
with:
|
|
20
|
+
fetch-depth: 0
|
|
21
|
+
ref: ${{ github.event.release.tag_name }}
|
|
22
|
+
|
|
23
|
+
- name: Set up Python
|
|
24
|
+
uses: actions/setup-python@v4
|
|
25
|
+
with:
|
|
26
|
+
python-version: "3.x"
|
|
27
|
+
|
|
28
|
+
- name: Show top-level files (debug)
|
|
29
|
+
run: |
|
|
30
|
+
echo "Working directory: $(pwd)"
|
|
31
|
+
ls -la
|
|
32
|
+
|
|
33
|
+
- name: Install build tooling
|
|
34
|
+
run: |
|
|
35
|
+
python -m pip install --upgrade pip
|
|
36
|
+
pip install build twine setuptools wheel
|
|
37
|
+
|
|
38
|
+
- name: Build package (handles pyproject.toml or setup.py)
|
|
39
|
+
run: |
|
|
40
|
+
if [ -f pyproject.toml ]; then
|
|
41
|
+
echo "Found pyproject.toml — using PEP 517 build"
|
|
42
|
+
python -m build --sdist --wheel
|
|
43
|
+
elif [ -f setup.py ]; then
|
|
44
|
+
echo "Found setup.py — using legacy setup.py build"
|
|
45
|
+
python setup.py sdist bdist_wheel
|
|
46
|
+
else
|
|
47
|
+
echo "Error: no pyproject.toml or setup.py found at repo root"
|
|
48
|
+
ls -la
|
|
49
|
+
exit 1
|
|
50
|
+
fi
|
|
51
|
+
|
|
52
|
+
- name: Publish package distributions to PyPI
|
|
53
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
54
|
+
|
|
55
|
+
|