GeezerVison is showing github.com — feat(ci): publish wheels to TestPyPI as `pynec-accel` · stevenmburns/python-necpp@7e64df8
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: .github/workflows/wheels.yml +24Lines changed: 24 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
76 | 76 | uses: softprops/action-gh-release@v2 |
77 | 77 | with: |
78 | 78 | files: dist/*.whl |
| 79 | + |
| 80 | + publish-testpypi: |
| 81 | + # Publish the built wheels to TestPyPI via Trusted Publishing (OIDC) — no |
| 82 | + # stored token. Requires a matching trusted/pending publisher configured on |
| 83 | + # TestPyPI for project `pynec-accel`: owner stevenmburns, repo python-necpp, |
| 84 | + # workflow wheels.yml, no environment. skip-existing makes re-runs |
| 85 | + # idempotent (a version already on TestPyPI is left untouched). |
| 86 | + name: publish to TestPyPI |
| 87 | + needs: build_wheels |
| 88 | + if: startsWith(github.ref, 'refs/tags/') |
| 89 | + runs-on: ubuntu-latest |
| 90 | + permissions: |
| 91 | + id-token: write |
| 92 | + steps: |
| 93 | + - uses: actions/download-artifact@v4 |
| 94 | + with: |
| 95 | + path: dist |
| 96 | + merge-multiple: true |
| 97 | + - name: Publish to TestPyPI |
| 98 | + uses: pypa/gh-action-pypi-publish@release/v1 |
| 99 | + with: |
| 100 | + repository-url: https://test.pypi.org/legacy/ |
| 101 | + packages-dir: dist |
| 102 | + skip-existing: true |
Collapse file
Copy file name to clipboardExpand all lines: PyNEC/setup.py +7-3Lines changed: 7 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
173 | 173 | long_description = fh.read() |
174 | 174 |
|
175 | 175 | setuptools.setup( |
176 | | - name="PyNEC", |
| 176 | + # Distribution name for the accelerated fork. Kept distinct from upstream |
| 177 | + # "PyNEC" (owned by tmolteno on PyPI/TestPyPI) so this fork can publish to a |
| 178 | + # package index. The *import* name is unchanged — `import PyNEC` still works; |
| 179 | + # only `pip install pynec-accel` differs. |
| 180 | + name="pynec-accel", |
177 | 181 | version="1.7.4", |
178 | 182 | author="Tim Molteno", |
179 | 183 | |
180 | | - url="http://github.com/tmolteno/python-necpp", |
| 184 | + url="https://github.com/stevenmburns/python-necpp", |
181 | 185 | keywords="nec2 nec2++ antenna electromagnetism radio", |
182 | | - description="Python Antenna Simulation Module (nec2++) object-oriented interface", |
| 186 | + description="PyNEC accelerated fork (OpenBLAS + OpenMP) — nec2++ object-oriented interface", |
183 | 187 | long_description=long_description, |
184 | 188 | long_description_content_type="text/markdown", |
185 | 189 | include_package_data=True, |
|