zprocess 2.26.0__tar.gz → 2.27.0__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.
- zprocess-2.27.0/.github/workflows/release-vars.sh +47 -0
- zprocess-2.27.0/.github/workflows/release.yml +452 -0
- zprocess-2.27.0/PKG-INFO +39 -0
- {zprocess-2.26.0 → zprocess-2.27.0}/pyproject.toml +5 -4
- {zprocess-2.26.0 → zprocess-2.27.0}/tests/test_zprocess.py +513 -510
- {zprocess-2.26.0 → zprocess-2.27.0}/zprocess/__version__.py +4 -1
- {zprocess-2.26.0 → zprocess-2.27.0}/zprocess/clientserver.py +2 -2
- {zprocess-2.26.0 → zprocess-2.27.0}/zprocess/process_class_wrapper.py +2 -2
- {zprocess-2.26.0 → zprocess-2.27.0}/zprocess/zlock/__init__.py +4 -4
- {zprocess-2.26.0 → zprocess-2.27.0}/zprocess/zlock/server.py +1 -1
- {zprocess-2.26.0 → zprocess-2.27.0}/zprocess/zlog/__init__.py +1 -1
- {zprocess-2.26.0 → zprocess-2.27.0}/zprocess/zlog/server.py +1 -1
- zprocess-2.27.0/zprocess.egg-info/PKG-INFO +39 -0
- {zprocess-2.26.0 → zprocess-2.27.0}/zprocess.egg-info/SOURCES.txt +1 -0
- zprocess-2.26.0/.github/workflows/release.yml +0 -322
- zprocess-2.26.0/PKG-INFO +0 -61
- zprocess-2.26.0/zprocess.egg-info/PKG-INFO +0 -61
- {zprocess-2.26.0 → zprocess-2.27.0}/.gitignore +0 -0
- {zprocess-2.26.0 → zprocess-2.27.0}/LICENSE.txt +0 -0
- {zprocess-2.26.0 → zprocess-2.27.0}/README.md +0 -0
- {zprocess-2.26.0 → zprocess-2.27.0}/doc/Makefile +0 -0
- {zprocess-2.26.0 → zprocess-2.27.0}/doc/conf.py +0 -0
- {zprocess-2.26.0 → zprocess-2.27.0}/doc/index.rst +0 -0
- {zprocess-2.26.0 → zprocess-2.27.0}/doc/requirements.txt +0 -0
- {zprocess-2.26.0 → zprocess-2.27.0}/pytest.ini +0 -0
- {zprocess-2.26.0 → zprocess-2.27.0}/requirements.txt +0 -0
- {zprocess-2.26.0 → zprocess-2.27.0}/run_tests.py +0 -0
- {zprocess-2.26.0 → zprocess-2.27.0}/setup.cfg +0 -0
- {zprocess-2.26.0 → zprocess-2.27.0}/tests/GUI_output_redirection.py +0 -0
- {zprocess-2.26.0 → zprocess-2.27.0}/tests/output_redirection.py +0 -0
- {zprocess-2.26.0 → zprocess-2.27.0}/tests/test_remote.py +0 -0
- {zprocess-2.26.0 → zprocess-2.27.0}/tests/test_zlock_server.py +0 -0
- {zprocess-2.26.0 → zprocess-2.27.0}/tests/test_zlog_server.py +0 -0
- {zprocess-2.26.0 → zprocess-2.27.0}/zprocess/__init__.py +0 -0
- {zprocess-2.26.0 → zprocess-2.27.0}/zprocess/cryptoproxy.py +0 -0
- {zprocess-2.26.0 → zprocess-2.27.0}/zprocess/examples/example_child.py +0 -0
- {zprocess-2.26.0 → zprocess-2.27.0}/zprocess/examples/example_parent.py +0 -0
- {zprocess-2.26.0 → zprocess-2.27.0}/zprocess/examples/processclass_example.py +0 -0
- {zprocess-2.26.0 → zprocess-2.27.0}/zprocess/examples/processclass_remote_example.py +0 -0
- {zprocess-2.26.0 → zprocess-2.27.0}/zprocess/locking/__init__.py +0 -0
- {zprocess-2.26.0 → zprocess-2.27.0}/zprocess/locking/__main__.py +0 -0
- {zprocess-2.26.0 → zprocess-2.27.0}/zprocess/makesecret.py +0 -0
- {zprocess-2.26.0 → zprocess-2.27.0}/zprocess/process_tree.py +0 -0
- {zprocess-2.26.0 → zprocess-2.27.0}/zprocess/remote/__init__.py +0 -0
- {zprocess-2.26.0 → zprocess-2.27.0}/zprocess/remote/__main__.py +0 -0
- {zprocess-2.26.0 → zprocess-2.27.0}/zprocess/remote/curses_server.py +0 -0
- {zprocess-2.26.0 → zprocess-2.27.0}/zprocess/remote/server.py +0 -0
- {zprocess-2.26.0 → zprocess-2.27.0}/zprocess/security.py +0 -0
- {zprocess-2.26.0 → zprocess-2.27.0}/zprocess/socks/__init__.py +0 -0
- {zprocess-2.26.0 → zprocess-2.27.0}/zprocess/socks/server.py +0 -0
- {zprocess-2.26.0 → zprocess-2.27.0}/zprocess/tasks.py +0 -0
- {zprocess-2.26.0 → zprocess-2.27.0}/zprocess/utils.py +0 -0
- {zprocess-2.26.0 → zprocess-2.27.0}/zprocess/zlock/__main__.py +0 -0
- {zprocess-2.26.0 → zprocess-2.27.0}/zprocess/zlog/__main__.py +0 -0
- {zprocess-2.26.0 → zprocess-2.27.0}/zprocess.egg-info/dependency_links.txt +0 -0
- {zprocess-2.26.0 → zprocess-2.27.0}/zprocess.egg-info/requires.txt +0 -0
- {zprocess-2.26.0 → zprocess-2.27.0}/zprocess.egg-info/top_level.txt +0 -0
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# This repository. PyPI and Anaconda test and release package uploads are only done if
|
|
2
|
+
# the repository the workflow is running in matches this (i.e. is not a fork). Optional,
|
|
3
|
+
# if not set, package uploads are skipped.
|
|
4
|
+
export RELEASE_REPO="chrisjbillington/zprocess"
|
|
5
|
+
|
|
6
|
+
# Username with which to upload conda packages. If not given, anaconda uploads are
|
|
7
|
+
# skipped.
|
|
8
|
+
export ANACONDA_USER="labscript-suite"
|
|
9
|
+
|
|
10
|
+
# Whether (true or false) to upload releases to PyPI, non-releases to Test PyPI,
|
|
11
|
+
# releases to Anaconda, non-releases to Anaconda test label. Only used if the repository
|
|
12
|
+
# the workflow is running in matches RELEASE_REPO, otherwise uploads are skipped.
|
|
13
|
+
# Anaconda uploads require ANACONDA_USER be specified and ANACONDA_API_TOKEN secret be
|
|
14
|
+
# set. Optional, all default to true.
|
|
15
|
+
export PYPI_UPLOAD=""
|
|
16
|
+
export TESTPYPI_UPLOAD=""
|
|
17
|
+
export ANACONDA_UPLOAD=""
|
|
18
|
+
export TEST_ANACONDA_UPLOAD=""
|
|
19
|
+
|
|
20
|
+
# Which Python version to use for pure wheel builds, sdists, and as the host Python for
|
|
21
|
+
# cibuildwheel. Optional, defaults to the second-most recent minor Python version.
|
|
22
|
+
export DEFAULT_PYTHON=""
|
|
23
|
+
|
|
24
|
+
# Comma-separated list of Python versions to build conda packages for. Only used if
|
|
25
|
+
# HAS_ENV_MARKERS=true or PURE=false, otherwise a noarch conda package is built instead.
|
|
26
|
+
# Optional, defaults to all non-end-of-life stable Python minor versions.
|
|
27
|
+
export CONDA_PYTHONS=""
|
|
28
|
+
|
|
29
|
+
# Environment variable set in the envionment that `cibuildwheel` runs in instructing it
|
|
30
|
+
# which Pythons to build for, as a space-separated list of specifiers in the format
|
|
31
|
+
# specified by `cibuildwheel`. Only used if PURE=false. Optional, defaults to all
|
|
32
|
+
# non-end-of-life stable CPython versions.
|
|
33
|
+
export CIBW_BUILD=""
|
|
34
|
+
|
|
35
|
+
# Name of Python package. Optional, defaults to name from the package metadata
|
|
36
|
+
export PKGNAME=""
|
|
37
|
+
|
|
38
|
+
# Version of Python package. Optional, defaults to version from the package metadata
|
|
39
|
+
export PKGVER=""
|
|
40
|
+
|
|
41
|
+
# Whether the Python package is pure (true) or impure (false). Optional, defaults to
|
|
42
|
+
# false if the setuptools package has extension modules or libraries, otherwise true.
|
|
43
|
+
export PURE=""
|
|
44
|
+
|
|
45
|
+
# Whether (true or false) the Python package has dependencies that vary by platform or
|
|
46
|
+
# Python version. Optional, Defaults to presence of env markers in package metadata.
|
|
47
|
+
export HAS_ENV_MARKERS=""
|
|
@@ -0,0 +1,452 @@
|
|
|
1
|
+
name: Build and Release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- master
|
|
7
|
+
- maintenance/*
|
|
8
|
+
tags:
|
|
9
|
+
- 'v[0-9]+.[0-9]+.[0-9]+*'
|
|
10
|
+
|
|
11
|
+
env:
|
|
12
|
+
OS_LIST_UBUNTU: '["ubuntu-latest"]'
|
|
13
|
+
OS_LIST_ALL: '["ubuntu-latest", "windows-latest", "macos-latest", "macos-15-intel"]'
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
jobs:
|
|
17
|
+
configure:
|
|
18
|
+
name: Configure workflow run
|
|
19
|
+
runs-on: ubuntu-latest
|
|
20
|
+
outputs:
|
|
21
|
+
DEFAULT_PYTHON: ${{ steps.config.outputs.DEFAULT_PYTHON }}
|
|
22
|
+
CIBW_BUILD: ${{ steps.config.outputs.CIBW_BUILD }}
|
|
23
|
+
PKGNAME: ${{ steps.config.outputs.PKGNAME }}
|
|
24
|
+
PKGVER: ${{ steps.config.outputs.PKGVER }}
|
|
25
|
+
PURE: ${{ steps.config.outputs.PURE }}
|
|
26
|
+
ANACONDA_USER: ${{ steps.config.outputs.ANACONDA_USER }}
|
|
27
|
+
CONDA_BUILD_ARGS: ${{ steps.config.outputs.CONDA_BUILD_ARGS }}
|
|
28
|
+
BUILD_OS_LIST: ${{ steps.config.outputs.BUILD_OS_LIST }}
|
|
29
|
+
RELEASE: ${{ steps.config.outputs.RELEASE }}
|
|
30
|
+
TESTPYPI_UPLOAD_THIS_RUN: ${{ steps.config.outputs.TESTPYPI_UPLOAD_THIS_RUN }}
|
|
31
|
+
PYPI_UPLOAD_THIS_RUN: ${{ steps.config.outputs.PYPI_UPLOAD_THIS_RUN }}
|
|
32
|
+
TEST_ANACONDA_UPLOAD_THIS_RUN: ${{ steps.config.outputs.TEST_ANACONDA_UPLOAD_THIS_RUN }}
|
|
33
|
+
ANACONDA_UPLOAD_THIS_RUN: ${{ steps.config.outputs.ANACONDA_UPLOAD_THIS_RUN }}
|
|
34
|
+
|
|
35
|
+
steps:
|
|
36
|
+
- name: Checkout
|
|
37
|
+
uses: actions/checkout@v4
|
|
38
|
+
with:
|
|
39
|
+
fetch-depth: 0
|
|
40
|
+
|
|
41
|
+
- name: Ignore Tags for non-tag pushes
|
|
42
|
+
if: "!startsWith(github.ref, 'refs/tags/')"
|
|
43
|
+
run: git tag -d $(git tag --points-at HEAD)
|
|
44
|
+
|
|
45
|
+
- name: Install Python
|
|
46
|
+
uses: actions/setup-python@v5
|
|
47
|
+
with:
|
|
48
|
+
python-version: '3.x'
|
|
49
|
+
|
|
50
|
+
- name: Configure workflow
|
|
51
|
+
id: config
|
|
52
|
+
run: |
|
|
53
|
+
pip install ci-helper
|
|
54
|
+
|
|
55
|
+
# Load repo-specific variables and overrides:
|
|
56
|
+
VARS_FILE=".github/workflows/release-vars.sh"
|
|
57
|
+
if [ -f "${VARS_FILE}" ]; then
|
|
58
|
+
source "${VARS_FILE}"
|
|
59
|
+
fi
|
|
60
|
+
|
|
61
|
+
# Python version used to build sdists, pure wheels, and as host Python for
|
|
62
|
+
# `cibuildwheel`:
|
|
63
|
+
if [ -z "${DEFAULT_PYTHON}" ]; then
|
|
64
|
+
# Default to second-most recent supported Python version:
|
|
65
|
+
DEFAULT_PYTHON=$(ci-helper defaultpython)
|
|
66
|
+
fi
|
|
67
|
+
|
|
68
|
+
# Versions of Python to build conda packages for:
|
|
69
|
+
if [ -z "${CONDA_PYTHONS}" ]; then
|
|
70
|
+
# Default to all supported Python versions:
|
|
71
|
+
CONDA_PYTHONS=$(ci-helper pythons)
|
|
72
|
+
fi
|
|
73
|
+
|
|
74
|
+
# Env var for `cibuildwheel` specifying target Python versions:
|
|
75
|
+
if [ -z "${CIBW_BUILD}" ]; then
|
|
76
|
+
# default to all supported CPython versions:
|
|
77
|
+
CIBW_BUILD=$(ci-helper pythons --cibw)
|
|
78
|
+
fi
|
|
79
|
+
|
|
80
|
+
# Package name and version
|
|
81
|
+
if [ -z "${PKGNAME}" ]; then
|
|
82
|
+
# Default to package name from project metadata:
|
|
83
|
+
PKGNAME=$(ci-helper distinfo name .)
|
|
84
|
+
fi
|
|
85
|
+
if [ -z "${PKGVER}" ]; then
|
|
86
|
+
# Default to package version from project metadata:
|
|
87
|
+
PKGVER=$(ci-helper distinfo version .)
|
|
88
|
+
fi
|
|
89
|
+
|
|
90
|
+
# Whether the package is pure python
|
|
91
|
+
if [ -z "${PURE}" ]; then
|
|
92
|
+
# Default to whether the setuptools package declares no modules/libraries:
|
|
93
|
+
PURE=$(ci-helper distinfo is_pure .)
|
|
94
|
+
fi
|
|
95
|
+
|
|
96
|
+
# Whether the package requirements depend on platform or Python version:
|
|
97
|
+
if [ -z "${HAS_ENV_MARKERS}" ]; then
|
|
98
|
+
# Default to the presence of env markers in package metadata:
|
|
99
|
+
HAS_ENV_MARKERS=$(ci-helper distinfo has_env_markers .)
|
|
100
|
+
fi
|
|
101
|
+
|
|
102
|
+
# List of OSs we need to run the build job on and arguments to
|
|
103
|
+
# `setuptools-conda build`:
|
|
104
|
+
if [[ "${PURE}" == false || "${HAS_ENV_MARKERS}" == true ]]; then
|
|
105
|
+
BUILD_OS_LIST="${OS_LIST_ALL}"
|
|
106
|
+
CONDA_BUILD_ARGS="--pythons=${CONDA_PYTHONS}"
|
|
107
|
+
else
|
|
108
|
+
BUILD_OS_LIST="${OS_LIST_UBUNTU}"
|
|
109
|
+
CONDA_BUILD_ARGS="--noarch"
|
|
110
|
+
fi
|
|
111
|
+
|
|
112
|
+
# Release if a tag was pushed:
|
|
113
|
+
if [ "${{ contains(github.ref, '/tags') }}" == true ]; then
|
|
114
|
+
RELEASE=true
|
|
115
|
+
else
|
|
116
|
+
RELEASE=false
|
|
117
|
+
fi
|
|
118
|
+
|
|
119
|
+
# What types of package uploads are enabled:
|
|
120
|
+
if [ -z "${PYPI_UPLOAD}" ]; then
|
|
121
|
+
PYPI_UPLOAD=true
|
|
122
|
+
else
|
|
123
|
+
PYPI_UPLOAD=false
|
|
124
|
+
fi
|
|
125
|
+
if [ -z "${TESTPYPI_UPLOAD}" ]; then
|
|
126
|
+
TESTPYPI_UPLOAD=true
|
|
127
|
+
else
|
|
128
|
+
TESTPYPI_UPLOAD=false
|
|
129
|
+
fi
|
|
130
|
+
if [ -z "${ANACONDA_UPLOAD}" ]; then
|
|
131
|
+
ANACONDA_UPLOAD=true
|
|
132
|
+
else
|
|
133
|
+
ANACONDA_UPLOAD=false
|
|
134
|
+
fi
|
|
135
|
+
if [ -z "${TEST_ANACONDA_UPLOAD}" ]; then
|
|
136
|
+
TEST_ANACONDA_UPLOAD=true
|
|
137
|
+
else
|
|
138
|
+
TEST_ANACONDA_UPLOAD=false
|
|
139
|
+
fi
|
|
140
|
+
|
|
141
|
+
if [ "${{ github.repository }}" != "${RELEASE_REPO}" ]; then
|
|
142
|
+
echo "Workflow repo doesn't match ${RELEASE_REPO}, disabling package uploads"
|
|
143
|
+
PYPI_UPLOAD=false
|
|
144
|
+
TESTPYPI_UPLOAD=false
|
|
145
|
+
ANACONDA_UPLOAD=false
|
|
146
|
+
TEST_ANACONDA_UPLOAD=false
|
|
147
|
+
fi
|
|
148
|
+
|
|
149
|
+
# If Anaconda uploads enabled, check necessary username and token are
|
|
150
|
+
# available:
|
|
151
|
+
if [[ "${ANACONDA_UPLOAD}" == true || "${TEST_ANACONDA_UPLOAD}" == true ]]; then
|
|
152
|
+
if [ -z "${{ secrets.ANACONDA_API_TOKEN }}" ]; then
|
|
153
|
+
echo "Anaconda uploads enabled but ANACONDA_API_TOKEN secret not set"
|
|
154
|
+
exit 1
|
|
155
|
+
fi
|
|
156
|
+
if [ -z "${ANACONDA_USER}" ]; then
|
|
157
|
+
echo "Anaconda uploads enabled but ANACONDA_USER not set"
|
|
158
|
+
exit 1
|
|
159
|
+
fi
|
|
160
|
+
fi
|
|
161
|
+
|
|
162
|
+
# If enabled, upload releases to PyPI and Anaconda:
|
|
163
|
+
if [[ "${RELEASE}" == true && "${PYPI_UPLOAD}" == true ]]; then
|
|
164
|
+
PYPI_UPLOAD_THIS_RUN=true
|
|
165
|
+
else
|
|
166
|
+
PYPI_UPLOAD_THIS_RUN=false
|
|
167
|
+
fi
|
|
168
|
+
if [[ "${RELEASE}" == true && "${ANACONDA_UPLOAD}" == true ]]; then
|
|
169
|
+
ANACONDA_UPLOAD_THIS_RUN=true
|
|
170
|
+
else
|
|
171
|
+
ANACONDA_UPLOAD_THIS_RUN=false
|
|
172
|
+
fi
|
|
173
|
+
|
|
174
|
+
# If enabled, upload non-releases to Test PyPI and Anaconda test label:
|
|
175
|
+
if [[ "${RELEASE}" == false && "${TESTPYPI_UPLOAD}" == true ]]; then
|
|
176
|
+
TESTPYPI_UPLOAD_THIS_RUN=true
|
|
177
|
+
else
|
|
178
|
+
TESTPYPI_UPLOAD_THIS_RUN=false
|
|
179
|
+
fi
|
|
180
|
+
if [[ "${RELEASE}" == false && "${TEST_ANACONDA_UPLOAD}" == true ]]; then
|
|
181
|
+
TEST_ANACONDA_UPLOAD_THIS_RUN=true
|
|
182
|
+
else
|
|
183
|
+
TEST_ANACONDA_UPLOAD_THIS_RUN=false
|
|
184
|
+
fi
|
|
185
|
+
|
|
186
|
+
echo "DEFAULT_PYTHON=${DEFAULT_PYTHON}" >> "${GITHUB_OUTPUT}"
|
|
187
|
+
echo "CIBW_BUILD=${CIBW_BUILD}" >> "${GITHUB_OUTPUT}"
|
|
188
|
+
echo "PKGNAME=${PKGNAME}" >> "${GITHUB_OUTPUT}"
|
|
189
|
+
echo "PKGVER=${PKGVER}" >> "${GITHUB_OUTPUT}"
|
|
190
|
+
echo "PURE=${PURE}" >> "${GITHUB_OUTPUT}"
|
|
191
|
+
echo "ANACONDA_USER=${ANACONDA_USER}" >> "${GITHUB_OUTPUT}"
|
|
192
|
+
echo "CONDA_BUILD_ARGS=${CONDA_BUILD_ARGS}" >> "${GITHUB_OUTPUT}"
|
|
193
|
+
echo "BUILD_OS_LIST=${BUILD_OS_LIST}" >> "${GITHUB_OUTPUT}"
|
|
194
|
+
echo "RELEASE=${RELEASE}" >> "${GITHUB_OUTPUT}"
|
|
195
|
+
echo "TESTPYPI_UPLOAD_THIS_RUN=${TESTPYPI_UPLOAD_THIS_RUN}" >> "${GITHUB_OUTPUT}"
|
|
196
|
+
echo "PYPI_UPLOAD_THIS_RUN=${PYPI_UPLOAD_THIS_RUN}" >> "${GITHUB_OUTPUT}"
|
|
197
|
+
echo "TEST_ANACONDA_UPLOAD_THIS_RUN=${TEST_ANACONDA_UPLOAD_THIS_RUN}" >> "${GITHUB_OUTPUT}"
|
|
198
|
+
echo "ANACONDA_UPLOAD_THIS_RUN=${ANACONDA_UPLOAD_THIS_RUN}" >> "${GITHUB_OUTPUT}"
|
|
199
|
+
|
|
200
|
+
echo
|
|
201
|
+
echo "=========================="
|
|
202
|
+
echo "Workflow run configuration:"
|
|
203
|
+
echo "--------------------------"
|
|
204
|
+
cat "${GITHUB_OUTPUT}"
|
|
205
|
+
echo "=========================="
|
|
206
|
+
echo
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
build:
|
|
210
|
+
name: Build
|
|
211
|
+
runs-on: ${{ matrix.os }}
|
|
212
|
+
needs: configure
|
|
213
|
+
strategy:
|
|
214
|
+
matrix:
|
|
215
|
+
os: ${{ fromJSON(needs.configure.outputs.BUILD_OS_LIST) }}
|
|
216
|
+
|
|
217
|
+
env:
|
|
218
|
+
DEFAULT_PYTHON: ${{ needs.configure.outputs.DEFAULT_PYTHON }}
|
|
219
|
+
CIBW_BUILD: ${{ needs.configure.outputs.CIBW_BUILD }}
|
|
220
|
+
PURE: ${{ needs.configure.outputs.PURE }}
|
|
221
|
+
CONDA_BUILD_ARGS: ${{ needs.configure.outputs.CONDA_BUILD_ARGS }}
|
|
222
|
+
|
|
223
|
+
steps:
|
|
224
|
+
- name: Checkout
|
|
225
|
+
uses: actions/checkout@v4
|
|
226
|
+
with:
|
|
227
|
+
fetch-depth: 0
|
|
228
|
+
|
|
229
|
+
- name: Ignore Tags for non-tag pushes
|
|
230
|
+
if: "!startsWith(github.ref, 'refs/tags/')"
|
|
231
|
+
run: git tag -d $(git tag --points-at HEAD)
|
|
232
|
+
|
|
233
|
+
- name: Install Python
|
|
234
|
+
uses: actions/setup-python@v5
|
|
235
|
+
with:
|
|
236
|
+
python-version: ${{ env.DEFAULT_PYTHON }}
|
|
237
|
+
|
|
238
|
+
- name: Install Python tools
|
|
239
|
+
run: python -m pip install --upgrade pip setuptools wheel build cibuildwheel
|
|
240
|
+
|
|
241
|
+
- name: Source distribution
|
|
242
|
+
if: strategy.job-index == 0
|
|
243
|
+
run: python -m build -s .
|
|
244
|
+
|
|
245
|
+
- name: Wheel distribution (pure)
|
|
246
|
+
if: env.PURE == 'true' && strategy.job-index == 0
|
|
247
|
+
run: python -m build -w .
|
|
248
|
+
|
|
249
|
+
- name: Wheel distribution (impure)
|
|
250
|
+
if: env.PURE == 'false'
|
|
251
|
+
run: cibuildwheel --output-dir dist
|
|
252
|
+
|
|
253
|
+
- name: Upload artifact
|
|
254
|
+
if: env.PURE == 'false' || strategy.job-index == 0
|
|
255
|
+
uses: actions/upload-artifact@v4
|
|
256
|
+
with:
|
|
257
|
+
name: dist-${{ matrix.os }}
|
|
258
|
+
path: ./dist
|
|
259
|
+
if-no-files-found: error
|
|
260
|
+
|
|
261
|
+
- name: Install Miniforge
|
|
262
|
+
uses: conda-incubator/setup-miniconda@v3
|
|
263
|
+
with:
|
|
264
|
+
miniforge-version: "latest"
|
|
265
|
+
auto-update-conda: true
|
|
266
|
+
conda-remove-defaults: true
|
|
267
|
+
auto-activate: true
|
|
268
|
+
activate-environment: ""
|
|
269
|
+
|
|
270
|
+
- name: Conda package
|
|
271
|
+
shell: bash -l {0}
|
|
272
|
+
run: |
|
|
273
|
+
if [ "${{ runner.os }}" == Windows ]; then
|
|
274
|
+
# Short path to minimise odds of hitting Windows max path length
|
|
275
|
+
CONDA_BUILD_ARGS+=" --croot ${{ runner.temp }}\cb"
|
|
276
|
+
fi
|
|
277
|
+
conda install -c labscript-suite setuptools-conda
|
|
278
|
+
setuptools-conda build $CONDA_BUILD_ARGS .
|
|
279
|
+
|
|
280
|
+
- name: Upload artifact
|
|
281
|
+
uses: actions/upload-artifact@v4
|
|
282
|
+
with:
|
|
283
|
+
name: conda_packages-${{ matrix.os }}
|
|
284
|
+
path: ./conda_packages
|
|
285
|
+
if-no-files-found: error
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
github-release:
|
|
289
|
+
name: Publish release (GitHub)
|
|
290
|
+
runs-on: ubuntu-latest
|
|
291
|
+
needs: [configure, build]
|
|
292
|
+
if: ${{ needs.configure.outputs.RELEASE == 'true' }}
|
|
293
|
+
permissions:
|
|
294
|
+
contents: write
|
|
295
|
+
env:
|
|
296
|
+
PKGNAME: ${{ needs.configure.outputs.PKGNAME }}
|
|
297
|
+
PKGVER: ${{ needs.configure.outputs.PKGVER }}
|
|
298
|
+
|
|
299
|
+
steps:
|
|
300
|
+
- name: Download Artifact
|
|
301
|
+
uses: actions/download-artifact@v4
|
|
302
|
+
with:
|
|
303
|
+
pattern: dist*
|
|
304
|
+
path: ./dist
|
|
305
|
+
merge-multiple: true
|
|
306
|
+
|
|
307
|
+
- name: Create GitHub release and upload release asset
|
|
308
|
+
uses: softprops/action-gh-release@v2
|
|
309
|
+
env:
|
|
310
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
311
|
+
with:
|
|
312
|
+
tag_name: ${{ github.event.ref }}
|
|
313
|
+
name: ${{ env.PKGNAME }} ${{ env.PKGVER }}
|
|
314
|
+
draft: true
|
|
315
|
+
prerelease: ${{ contains(github.event.ref, 'rc') }}
|
|
316
|
+
files: ./dist/*.tar.gz
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
testpypi-upload:
|
|
320
|
+
name: Publish on Test PyPI
|
|
321
|
+
runs-on: ubuntu-latest
|
|
322
|
+
needs: [configure, build]
|
|
323
|
+
if: ${{ needs.configure.outputs.TESTPYPI_UPLOAD_THIS_RUN == 'true' }}
|
|
324
|
+
env:
|
|
325
|
+
PKGNAME: ${{ needs.configure.outputs.PKGNAME }}
|
|
326
|
+
PKGVER: ${{ needs.configure.outputs.PKGVER }}
|
|
327
|
+
environment:
|
|
328
|
+
name: testpypi
|
|
329
|
+
url: https://test.pypi.org/project/${{ env.PKGNAME }}/${{ env.PKGVER }}
|
|
330
|
+
permissions:
|
|
331
|
+
id-token: write
|
|
332
|
+
|
|
333
|
+
steps:
|
|
334
|
+
- name: Download Artifact
|
|
335
|
+
uses: actions/download-artifact@v4
|
|
336
|
+
with:
|
|
337
|
+
pattern: dist*
|
|
338
|
+
path: ./dist
|
|
339
|
+
merge-multiple: true
|
|
340
|
+
|
|
341
|
+
- name: Publish on TestPyPI
|
|
342
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
343
|
+
with:
|
|
344
|
+
repository-url: https://test.pypi.org/legacy/
|
|
345
|
+
verbose: true
|
|
346
|
+
skip-existing: true
|
|
347
|
+
|
|
348
|
+
|
|
349
|
+
pypi-upload:
|
|
350
|
+
name: Publish on PyPI
|
|
351
|
+
runs-on: ubuntu-latest
|
|
352
|
+
needs: [configure, build]
|
|
353
|
+
if: ${{ needs.configure.outputs.PYPI_UPLOAD_THIS_RUN == 'true' }}
|
|
354
|
+
env:
|
|
355
|
+
PKGNAME: ${{ needs.configure.outputs.PKGNAME }}
|
|
356
|
+
PKGVER: ${{ needs.configure.outputs.PKGVER }}
|
|
357
|
+
environment:
|
|
358
|
+
name: pypi
|
|
359
|
+
url: https://pypi.org/project/${{ env.PKGNAME }}/${{ env.PKGVER }}
|
|
360
|
+
permissions:
|
|
361
|
+
id-token: write
|
|
362
|
+
|
|
363
|
+
steps:
|
|
364
|
+
- name: Download Artifact
|
|
365
|
+
uses: actions/download-artifact@v4
|
|
366
|
+
with:
|
|
367
|
+
pattern: dist*
|
|
368
|
+
path: ./dist
|
|
369
|
+
merge-multiple: true
|
|
370
|
+
|
|
371
|
+
- name: Publish on PyPI
|
|
372
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
373
|
+
with:
|
|
374
|
+
verbose: true
|
|
375
|
+
skip-existing: true
|
|
376
|
+
|
|
377
|
+
|
|
378
|
+
test-anaconda-upload:
|
|
379
|
+
name: Publish on Anaconda (test label)
|
|
380
|
+
runs-on: ubuntu-latest
|
|
381
|
+
needs: [configure, build]
|
|
382
|
+
if: ${{ needs.configure.outputs.TEST_ANACONDA_UPLOAD_THIS_RUN == 'true' }}
|
|
383
|
+
|
|
384
|
+
steps:
|
|
385
|
+
- name: Download Artifact
|
|
386
|
+
uses: actions/download-artifact@v4
|
|
387
|
+
with:
|
|
388
|
+
pattern: conda_packages-*
|
|
389
|
+
path: ./conda_packages
|
|
390
|
+
merge-multiple: true
|
|
391
|
+
|
|
392
|
+
- name: Install Miniforge
|
|
393
|
+
uses: conda-incubator/setup-miniconda@v3
|
|
394
|
+
with:
|
|
395
|
+
miniforge-version: "latest"
|
|
396
|
+
auto-update-conda: true
|
|
397
|
+
conda-remove-defaults: true
|
|
398
|
+
auto-activate: true
|
|
399
|
+
activate-environment: ""
|
|
400
|
+
|
|
401
|
+
- name: Install Anaconda cloud client
|
|
402
|
+
shell: bash -l {0}
|
|
403
|
+
run: conda install anaconda-client
|
|
404
|
+
|
|
405
|
+
- name: Publish to Anaconda test label
|
|
406
|
+
shell: bash -l {0}
|
|
407
|
+
run: |
|
|
408
|
+
anaconda \
|
|
409
|
+
--token ${{ secrets.ANACONDA_API_TOKEN }} \
|
|
410
|
+
upload \
|
|
411
|
+
--skip-existing \
|
|
412
|
+
--user ${{ needs.configure.outputs.ANACONDA_USER }} \
|
|
413
|
+
--label test \
|
|
414
|
+
conda_packages/*/*
|
|
415
|
+
|
|
416
|
+
|
|
417
|
+
anaconda-upload:
|
|
418
|
+
name: Publish on Anaconda
|
|
419
|
+
runs-on: ubuntu-latest
|
|
420
|
+
needs: [configure, build]
|
|
421
|
+
if: ${{ needs.configure.outputs.ANACONDA_UPLOAD_THIS_RUN == 'true' }}
|
|
422
|
+
|
|
423
|
+
steps:
|
|
424
|
+
- name: Download Artifact
|
|
425
|
+
uses: actions/download-artifact@v4
|
|
426
|
+
with:
|
|
427
|
+
pattern: conda_packages-*
|
|
428
|
+
path: ./conda_packages
|
|
429
|
+
merge-multiple: true
|
|
430
|
+
|
|
431
|
+
- name: Install Miniforge
|
|
432
|
+
uses: conda-incubator/setup-miniconda@v3
|
|
433
|
+
with:
|
|
434
|
+
miniforge-version: "latest"
|
|
435
|
+
auto-update-conda: true
|
|
436
|
+
conda-remove-defaults: true
|
|
437
|
+
auto-activate: true
|
|
438
|
+
activate-environment: ""
|
|
439
|
+
|
|
440
|
+
- name: Install Anaconda cloud client
|
|
441
|
+
shell: bash -l {0}
|
|
442
|
+
run: conda install anaconda-client
|
|
443
|
+
|
|
444
|
+
- name: Publish to Anaconda main
|
|
445
|
+
shell: bash -l {0}
|
|
446
|
+
run: |
|
|
447
|
+
anaconda \
|
|
448
|
+
--token ${{ secrets.ANACONDA_API_TOKEN }} \
|
|
449
|
+
upload \
|
|
450
|
+
--skip-existing \
|
|
451
|
+
--user ${{ needs.configure.outputs.ANACONDA_USER }} \
|
|
452
|
+
conda_packages/*/*
|
zprocess-2.27.0/PKG-INFO
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: zprocess
|
|
3
|
+
Version: 2.27.0
|
|
4
|
+
Summary: A set of utilities for multiprocessing using zeromq
|
|
5
|
+
Author-email: Christopher Billington <chrisjbillington@gmail.com>
|
|
6
|
+
License-Expression: BSD-2-Clause
|
|
7
|
+
Project-URL: Homepage, https://github.com/chrisjbillington/zprocess
|
|
8
|
+
Project-URL: Documentation, https://github.com/chrisjbillington/zprocess
|
|
9
|
+
Project-URL: Repository, https://github.com/chrisjbillington/zprocess
|
|
10
|
+
Project-URL: Downloads, https://pypi.org/project/zprocess/
|
|
11
|
+
Project-URL: Tracker, https://github.com/chrisjbillington/zprocess/issues
|
|
12
|
+
Keywords: multiprocessing,IPC,zeromq
|
|
13
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
14
|
+
Requires-Python: >=3.8
|
|
15
|
+
Description-Content-Type: text/markdown
|
|
16
|
+
License-File: LICENSE.txt
|
|
17
|
+
Requires-Dist: setuptools_scm
|
|
18
|
+
Requires-Dist: pyzmq
|
|
19
|
+
Requires-Dist: pywin32; sys_platform == "win32"
|
|
20
|
+
Requires-Dist: windows-curses; sys_platform == "win32"
|
|
21
|
+
Provides-Extra: test
|
|
22
|
+
Requires-Dist: pytest; extra == "test"
|
|
23
|
+
Requires-Dist: pytest-cov; extra == "test"
|
|
24
|
+
Dynamic: license-file
|
|
25
|
+
|
|
26
|
+
# zprocess
|
|
27
|
+
|
|
28
|
+
A set of utilities for multiprocessing using
|
|
29
|
+
zeromq. Includes process creation and management, output
|
|
30
|
+
redirection, message passing, inter-process locks, logging,
|
|
31
|
+
and a process-tree-wide event system.
|
|
32
|
+
|
|
33
|
+
(
|
|
34
|
+
[view on pypi](https://pypi.python.org/pypi/zprocess/);
|
|
35
|
+
[view on Github](https://github.com/chrisjbillington/zprocess)
|
|
36
|
+
)
|
|
37
|
+
|
|
38
|
+
* Install `python setup.py install`.
|
|
39
|
+
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
[build-system]
|
|
2
|
-
requires = ["setuptools", "
|
|
2
|
+
requires = ["setuptools", "setuptools_scm"]
|
|
3
3
|
build-backend = "setuptools.build_meta"
|
|
4
4
|
|
|
5
5
|
[tool.setuptools_scm]
|
|
6
|
+
version_scheme = "release-branch-semver"
|
|
6
7
|
local_scheme = "no-local-version"
|
|
7
8
|
|
|
8
9
|
[tool.setuptools.packages]
|
|
@@ -15,12 +16,12 @@ authors = [
|
|
|
15
16
|
{name = "Christopher Billington", email = "chrisjbillington@gmail.com"},
|
|
16
17
|
]
|
|
17
18
|
keywords = ["multiprocessing", "IPC", "zeromq"]
|
|
18
|
-
license =
|
|
19
|
+
license = "BSD-2-Clause"
|
|
20
|
+
license-files = ["LICENSE.txt"]
|
|
19
21
|
classifiers = [
|
|
20
|
-
"License :: OSI Approved :: BSD License",
|
|
21
22
|
"Programming Language :: Python :: 3 :: Only",
|
|
22
23
|
]
|
|
23
|
-
requires-python = ">=3.
|
|
24
|
+
requires-python = ">=3.8"
|
|
24
25
|
dependencies = [
|
|
25
26
|
"setuptools_scm",
|
|
26
27
|
"pyzmq",
|