From 6a1df4aaf88eaa38ecef52ae0ea4acbca42077cc Mon Sep 17 00:00:00 2001
From: Melek Derman <48313913+melekderman@users.noreply.github.com>
Date: Sat, 23 May 2026 02:22:47 -0700
Subject: [PATCH 1/3] wip ci12
---
.github/workflows/dev-release-testpypi.yml | 86 ++++++++++++++++++++++
pyproject.toml | 2 +-
2 files changed, 87 insertions(+), 1 deletion(-)
create mode 100644 .github/workflows/dev-release-testpypi.yml
diff --git a/.github/workflows/dev-release-testpypi.yml b/.github/workflows/dev-release-testpypi.yml
new file mode 100644
index 0000000..02e5a17
--- /dev/null
+++ b/.github/workflows/dev-release-testpypi.yml
@@ -0,0 +1,86 @@
+name: Dev Release to TestPyPI
+
+on:
+ push:
+ branches: [dev]
+ workflow_dispatch:
+
+concurrency:
+ group: dev-release-testpypi
+ cancel-in-progress: false
+
+jobs:
+ dev-release-testpypi:
+ name: Create dev release and publish to TestPyPI
+ runs-on: ubuntu-latest
+
+ environment:
+ name: testpypi
+ url: https://test.pypi.org/p/epics/
+
+ permissions:
+ contents: write
+ id-token: write
+
+ steps:
+ - uses: actions/checkout@v4
+ with:
+ persist-credentials: false
+
+ - name: Set up Python
+ uses: actions/setup-python@v5
+ with:
+ python-version: "3.x"
+
+ - name: Read package version
+ id: version
+ run: |
+ VERSION=$(python - <<'PY'
+ import tomllib
+ with open("pyproject.toml", "rb") as f:
+ data = tomllib.load(f)
+ print(data["project"]["version"])
+ PY
+ )
+ echo "version=$VERSION" >> "$GITHUB_OUTPUT"
+ echo "tag=v$VERSION" >> "$GITHUB_OUTPUT"
+
+ - name: Check if release already exists
+ id: release_exists
+ env:
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ TAG: ${{ steps.version.outputs.tag }}
+ run: |
+ if gh release view "$TAG" >/dev/null 2>&1; then
+ echo "exists=true" >> "$GITHUB_OUTPUT"
+ echo "Release $TAG already exists. Skipping publish."
+ else
+ echo "exists=false" >> "$GITHUB_OUTPUT"
+ fi
+
+ - name: Create GitHub prerelease
+ if: steps.release_exists.outputs.exists == 'false'
+ env:
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ TAG: ${{ steps.version.outputs.tag }}
+ VERSION: ${{ steps.version.outputs.version }}
+ run: |
+ gh release create "$TAG" \
+ --target "$GITHUB_SHA" \
+ --prerelease \
+ --title "$TAG" \
+ --notes "Automated dev release for version $VERSION from dev branch."
+
+ - name: Install build dependencies
+ if: steps.release_exists.outputs.exists == 'false'
+ run: python -m pip install --upgrade build
+
+ - name: Build wheel and source distribution
+ if: steps.release_exists.outputs.exists == 'false'
+ run: python -m build
+
+ - name: Publish to TestPyPI
+ if: steps.release_exists.outputs.exists == 'false'
+ uses: pypa/gh-action-pypi-publish@release/v1
+ with:
+ repository-url: https://test.pypi.org/legacy/
\ No newline at end of file
diff --git a/pyproject.toml b/pyproject.toml
index 4b18139..87eddbd 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "epics"
-version = "1.0.0"
+version = "1.0.1.dev1"
description = "Python library for reading and converting EPICS (Electron Photon Interaction Cross Sections) nuclear data"
readme = "README.md"
license = {text = "BSD-3-Clause"}
From 561cc791149cfb77d1fd4260adecbcd0df8c1654 Mon Sep 17 00:00:00 2001
From: Melek Derman <48313913+melekderman@users.noreply.github.com>
Date: Sat, 23 May 2026 02:24:04 -0700
Subject: [PATCH 2/3] wip ci13
---
README.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index 70155f7..5acfaf9 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
# PyEPICS
-[](https://doi.org/10.5281/zenodo.18648203)
-[](https://github.com/melekderman/PyEPICS/actions/workflows/ci.yml)
+
+[](https://github.com/melekderman/PyEPICS/actions/workflows/test.yml)
[](https://www.python.org/downloads/)
[](LICENSE)
[](https://pyepics.readthedocs.io/en/latest/)
From 6777a61b87b6600222a076f8e3d6964e056ceaf5 Mon Sep 17 00:00:00 2001
From: Melek Derman <48313913+melekderman@users.noreply.github.com>
Date: Sat, 23 May 2026 02:25:45 -0700
Subject: [PATCH 3/3] wip ci14
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 5acfaf9..0e4ddda 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
# PyEPICS
-
+[](https://doi.org/10.5281/zenodo.18648203)
[](https://github.com/melekderman/PyEPICS/actions/workflows/test.yml)
[](https://www.python.org/downloads/)
[](LICENSE)