Skip to content

Commit ab9fcec

Browse files
[RELEASE] Version v2.1 ALPHA
Changes in file .github/workflows/CD-PyPi.yml: * Flushed out more like working CI-Build for builds Changes in file docs/conf.py: * version bump to 2.1 series Changes in file multicast/__init__.py: * version bump to 2.1 series Changes in file pyproject.toml: * version bump to 2.1 series
1 parent 8fe10cb commit ab9fcec

File tree

4 files changed

+23
-7
lines changed

4 files changed

+23
-7
lines changed

.github/workflows/CD-PyPi.yml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ on:
1010

1111
permissions: {}
1212

13+
env:
14+
ENVIRONMENT: ${{ (github.ref == 'refs/heads/stable' || startsWith(github.ref, 'refs/tags/v')) && 'Deployment' || (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/feature') || startsWith(github.ref, 'refs/heads/patch-') || startsWith(github.ref, 'refs/tags/v')) && 'Testing' || 'Experimenting' }}
15+
# Define Python versions at the top level -- Expected format: X.Y (e.g., 3.13)
16+
PYTHON_DEFAULT: "${{ vars.PYTHON_DEFAULT }}"
17+
1318
jobs:
1419
pypi-publish:
1520
name: upload release to PyPI
@@ -35,17 +40,28 @@ jobs:
3540
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3641
with:
3742
persist-credentials: false
38-
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
43+
- id: build-python
44+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
3945
with:
4046
python-version: "${{ vars.PYTHON_DEFAULT }}"
47+
- id: output_python
48+
name: "bootstrap Python"
49+
shell: bash
50+
run: |
51+
printf "%s\n" "::group::bootstrap-python-env"
52+
printf "python-path=%s\n" "${{ steps.build-python.outputs.python-path }}" >> "$GITHUB_OUTPUT"
53+
printf "PYTHON=%s\n" "${{ steps.build-python.outputs.python-path }}" >> "$GITHUB_ENV"
54+
printf "python-version=%s\n" "${{ steps.build-python.outputs.python-version }}" >> "$GITHUB_OUTPUT"
55+
printf "PYTHON_VERSION=%s\n" "${{ steps.build-python.outputs.python-version }}" >> "$GITHUB_ENV"
56+
printf "%s\n" "::endgroup::"
4157
- name: Pre-Clean
4258
id: clean
4359
shell: bash
4460
run: make -j1 -f Makefile purge 2>/dev/null || true
4561
- name: Build
4662
id: build
4763
shell: bash
48-
run: make -j1 -f Makefile dist
64+
run: make -j1 -f Makefile build
4965
- name: Publish package distributions to PyPI
5066
if: ${{ success() }}
5167
uses: pypa/gh-action-pypi-publish@release/v1

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@
127127
# The short X.Y version.
128128
version = "v2.0"
129129
# The full version, including alpha/beta/rc tags.
130-
release = "v2.0.9"
130+
release = "v2.1.0a1"
131131

132132
# The language for content autogenerated by Sphinx. Refer to documentation
133133
# for a list of supported languages.

multicast/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@
1717
# limitations under the License.
1818

1919
import sys
20+
import abc
2021
import argparse
2122
import logging
22-
import unicodedata
2323
import socket
2424
import struct
25-
import abc
25+
import unicodedata
2626

2727
# skipcq
2828
__all__ = [
@@ -221,7 +221,7 @@
221221

222222
global __version__ # skipcq: PYL-W0604
223223

224-
__version__ = "2.0.9"
224+
__version__ = "2.1.0-alpha-1"
225225
"""The version of this program.
226226
227227
The `__version__` attribute, like many dunder attributes, is associated with the implementation

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ maintainers = [{ "name" = "reactive-firewall", "email" = "reactive-firewall@user
1212
name = "multicast"
1313
requires-python = ">=3.9.6, !=3.9.7, !=3.9.8, !=3.9.9, !=3.9.10, !=3.9.11, !=3.9.12, !=3.9.13, !=3.9.14, !=3.9.15, !=3.9.16, !=3.9.17, !=3.9.18, !=3.9.19, !=3.13.0, <3.14.0"
1414
scripts = { "multicast" = "multicast.__main__:cli" }
15-
version = "v2.0.9"
15+
version = "v2.1.0a1"
1616

1717
[project.urls]
1818
"Bug Tracker" = "https://github.com/reactive-firewall-org/multicast/issues"

0 commit comments

Comments
 (0)