Skip to content

Commit 48fc266

Browse files
committed
Bump min python and up skel. Ruff the code.
1 parent ac1caee commit 48fc266

21 files changed

+348
-205
lines changed

.bumpversion.cfg

+4
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,7 @@ replace = version = release = "{new_version}"
2222
[bumpversion:file:src/holdup/__init__.py]
2323
search = __version__ = "{current_version}"
2424
replace = __version__ = "{new_version}"
25+
26+
[bumpversion:file:.cookiecutterrc]
27+
search = version: {current_version}
28+
replace = version: {new_version}

.cookiecutterrc

+8-17
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,8 @@
11
# Generated by cookiepatcher, a small shim around cookiecutter (pip install cookiepatcher)
22

33
default_context:
4-
allow_tests_inside_package: 'no'
5-
appveyor: 'no'
6-
c_extension_function: '-'
7-
c_extension_module: '-'
84
c_extension_optional: 'no'
95
c_extension_support: 'no'
10-
c_extension_test_pypi: 'no'
11-
c_extension_test_pypi_username: ionelmc
126
codacy: 'no'
137
codacy_projectid: '[Get ID from https://app.codacy.com/app/ionelmc/python-holdup/settings]'
148
codeclimate: 'no'
@@ -18,39 +12,36 @@ default_context:
1812
coveralls: 'yes'
1913
distribution_name: holdup
2014
15+
formatter_quote_style: double
2116
full_name: Ionel Cristian Mărieș
17+
function_name: compute
2218
github_actions: 'yes'
2319
github_actions_osx: 'yes'
2420
github_actions_windows: 'yes'
2521
license: BSD 2-Clause License
26-
linter: flake8
22+
module_name: core
2723
package_name: holdup
2824
pre_commit: 'yes'
29-
pre_commit_formatter: black
3025
project_name: Holdup
3126
project_short_description: A tool to wait for services and execute command. Useful for Docker containers that depend on slow to start services (like almost everything).
3227
pypi_badge: 'yes'
3328
pypi_disable_upload: 'no'
34-
release_date: '2021-04-08'
29+
release_date: '2023-02-14'
3530
repo_hosting: github.com
3631
repo_hosting_domain: github.com
3732
repo_main_branch: master
3833
repo_name: python-holdup
3934
repo_username: ionelmc
40-
requiresio: 'yes'
4135
scrutinizer: 'no'
42-
setup_py_uses_pytest_runner: 'no'
4336
setup_py_uses_setuptools_scm: 'no'
4437
sphinx_docs: 'yes'
4538
sphinx_docs_hosting: https://python-holdup.readthedocs.io/
4639
sphinx_doctest: 'no'
47-
sphinx_theme: sphinx-py3doc-enhanced-theme
48-
test_matrix_configurator: 'no'
40+
sphinx_theme: furo
4941
test_matrix_separate_coverage: 'no'
50-
travis: 'no'
51-
travis_osx: 'no'
52-
version: 3.0.0
42+
tests_inside_package: 'no'
43+
version: 4.0.0
5344
version_manager: bump2version
5445
website: https://blog.ionelmc.ro
5546
year_from: '2016'
56-
year_to: '2023'
47+
year_to: '2024'

.github/workflows/github-actions.yml

+159-31
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: build
2-
on: [push, pull_request]
2+
on: [push, pull_request, workflow_dispatch]
33
jobs:
44
test:
55
name: ${{ matrix.name }}
@@ -10,45 +10,27 @@ jobs:
1010
matrix:
1111
include:
1212
- name: 'check'
13-
python: '3.9'
14-
toxpython: 'python3.9'
13+
python: '3.11'
14+
toxpython: 'python3.11'
1515
tox_env: 'check'
1616
os: 'ubuntu-latest'
1717
- name: 'docs'
18-
python: '3.9'
19-
toxpython: 'python3.9'
18+
python: '3.11'
19+
toxpython: 'python3.11'
2020
tox_env: 'docs'
2121
os: 'ubuntu-latest'
22-
- name: 'py37-pg2 (ubuntu)'
23-
python: '3.7'
24-
toxpython: 'python3.7'
25-
python_arch: 'x64'
26-
tox_env: 'py37-pg2'
27-
os: 'ubuntu-latest'
28-
- name: 'py37-pg2 (macos)'
29-
python: '3.7'
30-
toxpython: 'python3.7'
31-
python_arch: 'x64'
32-
tox_env: 'py37-pg2'
33-
os: 'macos-latest'
34-
- name: 'py37-pg3 (ubuntu)'
35-
python: '3.7'
36-
toxpython: 'python3.7'
37-
python_arch: 'x64'
38-
tox_env: 'py37-pg3'
39-
os: 'ubuntu-latest'
40-
- name: 'py37-pg3 (macos)'
41-
python: '3.7'
42-
toxpython: 'python3.7'
43-
python_arch: 'x64'
44-
tox_env: 'py37-pg3'
45-
os: 'macos-latest'
4622
- name: 'py38-pg2 (ubuntu)'
4723
python: '3.8'
4824
toxpython: 'python3.8'
4925
python_arch: 'x64'
5026
tox_env: 'py38-pg2'
5127
os: 'ubuntu-latest'
28+
- name: 'py38-pg2 (windows)'
29+
python: '3.8'
30+
toxpython: 'python3.8'
31+
python_arch: 'x64'
32+
tox_env: 'py38-pg2'
33+
os: 'windows-latest'
5234
- name: 'py38-pg2 (macos)'
5335
python: '3.8'
5436
toxpython: 'python3.8'
@@ -61,6 +43,12 @@ jobs:
6143
python_arch: 'x64'
6244
tox_env: 'py38-pg3'
6345
os: 'ubuntu-latest'
46+
- name: 'py38-pg3 (windows)'
47+
python: '3.8'
48+
toxpython: 'python3.8'
49+
python_arch: 'x64'
50+
tox_env: 'py38-pg3'
51+
os: 'windows-latest'
6452
- name: 'py38-pg3 (macos)'
6553
python: '3.8'
6654
toxpython: 'python3.8'
@@ -73,6 +61,12 @@ jobs:
7361
python_arch: 'x64'
7462
tox_env: 'py39-pg2'
7563
os: 'ubuntu-latest'
64+
- name: 'py39-pg2 (windows)'
65+
python: '3.9'
66+
toxpython: 'python3.9'
67+
python_arch: 'x64'
68+
tox_env: 'py39-pg2'
69+
os: 'windows-latest'
7670
- name: 'py39-pg2 (macos)'
7771
python: '3.9'
7872
toxpython: 'python3.9'
@@ -85,6 +79,12 @@ jobs:
8579
python_arch: 'x64'
8680
tox_env: 'py39-pg3'
8781
os: 'ubuntu-latest'
82+
- name: 'py39-pg3 (windows)'
83+
python: '3.9'
84+
toxpython: 'python3.9'
85+
python_arch: 'x64'
86+
tox_env: 'py39-pg3'
87+
os: 'windows-latest'
8888
- name: 'py39-pg3 (macos)'
8989
python: '3.9'
9090
toxpython: 'python3.9'
@@ -97,6 +97,12 @@ jobs:
9797
python_arch: 'x64'
9898
tox_env: 'py310-pg2'
9999
os: 'ubuntu-latest'
100+
- name: 'py310-pg2 (windows)'
101+
python: '3.10'
102+
toxpython: 'python3.10'
103+
python_arch: 'x64'
104+
tox_env: 'py310-pg2'
105+
os: 'windows-latest'
100106
- name: 'py310-pg2 (macos)'
101107
python: '3.10'
102108
toxpython: 'python3.10'
@@ -109,6 +115,12 @@ jobs:
109115
python_arch: 'x64'
110116
tox_env: 'py310-pg3'
111117
os: 'ubuntu-latest'
118+
- name: 'py310-pg3 (windows)'
119+
python: '3.10'
120+
toxpython: 'python3.10'
121+
python_arch: 'x64'
122+
tox_env: 'py310-pg3'
123+
os: 'windows-latest'
112124
- name: 'py310-pg3 (macos)'
113125
python: '3.10'
114126
toxpython: 'python3.10'
@@ -121,6 +133,12 @@ jobs:
121133
python_arch: 'x64'
122134
tox_env: 'py311-pg2'
123135
os: 'ubuntu-latest'
136+
- name: 'py311-pg2 (windows)'
137+
python: '3.11'
138+
toxpython: 'python3.11'
139+
python_arch: 'x64'
140+
tox_env: 'py311-pg2'
141+
os: 'windows-latest'
124142
- name: 'py311-pg2 (macos)'
125143
python: '3.11'
126144
toxpython: 'python3.11'
@@ -133,18 +151,66 @@ jobs:
133151
python_arch: 'x64'
134152
tox_env: 'py311-pg3'
135153
os: 'ubuntu-latest'
154+
- name: 'py311-pg3 (windows)'
155+
python: '3.11'
156+
toxpython: 'python3.11'
157+
python_arch: 'x64'
158+
tox_env: 'py311-pg3'
159+
os: 'windows-latest'
136160
- name: 'py311-pg3 (macos)'
137161
python: '3.11'
138162
toxpython: 'python3.11'
139163
python_arch: 'x64'
140164
tox_env: 'py311-pg3'
141165
os: 'macos-latest'
166+
- name: 'py312-pg2 (ubuntu)'
167+
python: '3.12'
168+
toxpython: 'python3.12'
169+
python_arch: 'x64'
170+
tox_env: 'py312-pg2'
171+
os: 'ubuntu-latest'
172+
- name: 'py312-pg2 (windows)'
173+
python: '3.12'
174+
toxpython: 'python3.12'
175+
python_arch: 'x64'
176+
tox_env: 'py312-pg2'
177+
os: 'windows-latest'
178+
- name: 'py312-pg2 (macos)'
179+
python: '3.12'
180+
toxpython: 'python3.12'
181+
python_arch: 'x64'
182+
tox_env: 'py312-pg2'
183+
os: 'macos-latest'
184+
- name: 'py312-pg3 (ubuntu)'
185+
python: '3.12'
186+
toxpython: 'python3.12'
187+
python_arch: 'x64'
188+
tox_env: 'py312-pg3'
189+
os: 'ubuntu-latest'
190+
- name: 'py312-pg3 (windows)'
191+
python: '3.12'
192+
toxpython: 'python3.12'
193+
python_arch: 'x64'
194+
tox_env: 'py312-pg3'
195+
os: 'windows-latest'
196+
- name: 'py312-pg3 (macos)'
197+
python: '3.12'
198+
toxpython: 'python3.12'
199+
python_arch: 'x64'
200+
tox_env: 'py312-pg3'
201+
os: 'macos-latest'
142202
- name: 'pypy38-pg2 (ubuntu)'
143203
python: 'pypy-3.8'
144204
toxpython: 'pypy3.8'
145205
python_arch: 'x64'
146206
tox_env: 'pypy38-pg2'
147207
os: 'ubuntu-latest'
208+
- name: 'pypy38-pg2 (windows)'
209+
python: 'pypy-3.8'
210+
toxpython: 'pypy3.8'
211+
python_arch: 'x64'
212+
tox_env: 'pypy38-pg2'
213+
os: 'windows-latest'
148214
- name: 'pypy38-pg2 (macos)'
149215
python: 'pypy-3.8'
150216
toxpython: 'pypy3.8'
@@ -157,6 +223,12 @@ jobs:
157223
python_arch: 'x64'
158224
tox_env: 'pypy38-pg3'
159225
os: 'ubuntu-latest'
226+
- name: 'pypy38-pg3 (windows)'
227+
python: 'pypy-3.8'
228+
toxpython: 'pypy3.8'
229+
python_arch: 'x64'
230+
tox_env: 'pypy38-pg3'
231+
os: 'windows-latest'
160232
- name: 'pypy38-pg3 (macos)'
161233
python: 'pypy-3.8'
162234
toxpython: 'pypy3.8'
@@ -169,6 +241,12 @@ jobs:
169241
python_arch: 'x64'
170242
tox_env: 'pypy39-pg2'
171243
os: 'ubuntu-latest'
244+
- name: 'pypy39-pg2 (windows)'
245+
python: 'pypy-3.9'
246+
toxpython: 'pypy3.9'
247+
python_arch: 'x64'
248+
tox_env: 'pypy39-pg2'
249+
os: 'windows-latest'
172250
- name: 'pypy39-pg2 (macos)'
173251
python: 'pypy-3.9'
174252
toxpython: 'pypy3.9'
@@ -181,17 +259,59 @@ jobs:
181259
python_arch: 'x64'
182260
tox_env: 'pypy39-pg3'
183261
os: 'ubuntu-latest'
262+
- name: 'pypy39-pg3 (windows)'
263+
python: 'pypy-3.9'
264+
toxpython: 'pypy3.9'
265+
python_arch: 'x64'
266+
tox_env: 'pypy39-pg3'
267+
os: 'windows-latest'
184268
- name: 'pypy39-pg3 (macos)'
185269
python: 'pypy-3.9'
186270
toxpython: 'pypy3.9'
187271
python_arch: 'x64'
188272
tox_env: 'pypy39-pg3'
189273
os: 'macos-latest'
274+
- name: 'pypy310-pg2 (ubuntu)'
275+
python: 'pypy-3.10'
276+
toxpython: 'pypy3.10'
277+
python_arch: 'x64'
278+
tox_env: 'pypy310-pg2'
279+
os: 'ubuntu-latest'
280+
- name: 'pypy310-pg2 (windows)'
281+
python: 'pypy-3.10'
282+
toxpython: 'pypy3.10'
283+
python_arch: 'x64'
284+
tox_env: 'pypy310-pg2'
285+
os: 'windows-latest'
286+
- name: 'pypy310-pg2 (macos)'
287+
python: 'pypy-3.10'
288+
toxpython: 'pypy3.10'
289+
python_arch: 'x64'
290+
tox_env: 'pypy310-pg2'
291+
os: 'macos-latest'
292+
- name: 'pypy310-pg3 (ubuntu)'
293+
python: 'pypy-3.10'
294+
toxpython: 'pypy3.10'
295+
python_arch: 'x64'
296+
tox_env: 'pypy310-pg3'
297+
os: 'ubuntu-latest'
298+
- name: 'pypy310-pg3 (windows)'
299+
python: 'pypy-3.10'
300+
toxpython: 'pypy3.10'
301+
python_arch: 'x64'
302+
tox_env: 'pypy310-pg3'
303+
os: 'windows-latest'
304+
- name: 'pypy310-pg3 (macos)'
305+
python: 'pypy-3.10'
306+
toxpython: 'pypy3.10'
307+
python_arch: 'x64'
308+
tox_env: 'pypy310-pg3'
309+
os: 'macos-latest'
190310
steps:
191-
- uses: actions/checkout@v3
311+
- uses: actions/checkout@v4
192312
with:
193313
fetch-depth: 0
194-
- uses: actions/setup-python@v4
314+
- uses: actions/setup-python@v5
195315
with:
196316
python-version: ${{ matrix.python }}
197317
architecture: ${{ matrix.python_arch }}
@@ -207,3 +327,11 @@ jobs:
207327
TOXPYTHON: '${{ matrix.toxpython }}'
208328
run: >
209329
tox -e ${{ matrix.tox_env }} -v
330+
finish:
331+
needs: test
332+
if: ${{ always() }}
333+
runs-on: ubuntu-latest
334+
steps:
335+
- uses: coverallsapp/github-action@v2
336+
with:
337+
parallel-finished: true

0 commit comments

Comments
 (0)