GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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
Filter options
  • .github/workflows
    • wheels.yml
  • PyNEC
    • setup.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.github/workflows/wheels.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/wheels.yml
+24Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,3 +76,27 @@ jobs:
7676
uses: softprops/action-gh-release@v2
7777
with:
7878
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

‎PyNEC/setup.py‎

Copy file name to clipboardExpand all lines: PyNEC/setup.py
+7-3Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,13 +173,17 @@
173173
long_description = fh.read()
174174

175175
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",
177181
version="1.7.4",
178182
author="Tim Molteno",
179183
author_email="[email protected]",
180-
url="http://github.com/tmolteno/python-necpp",
184+
url="https://github.com/stevenmburns/python-necpp",
181185
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",
183187
long_description=long_description,
184188
long_description_content_type="text/markdown",
185189
include_package_data=True,

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.