Skip to content

Commit 14ea6dc

Browse files
committed
Up skel, add py 3.11 and 3.12 and drop 3.7.
1 parent d5122f8 commit 14ea6dc

21 files changed

+312
-249
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/aspectlib/__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-18
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: '-'
148
codeclimate: 'no'
@@ -18,40 +12,36 @@ default_context:
1812
coveralls: 'yes'
1913
distribution_name: aspectlib
2014
15+
formatter_quote_style: single
2116
full_name: Ionel Cristian Mărieș
17+
function_name: compute
2218
github_actions: 'yes'
2319
github_actions_osx: 'no'
2420
github_actions_windows: 'no'
25-
legacy_python: 'no'
2621
license: BSD 2-Clause License
27-
linter: flake8
22+
module_name: core
2823
package_name: aspectlib
2924
pre_commit: 'yes'
30-
pre_commit_formatter: black
3125
project_name: Aspectlib
3226
project_short_description: '``aspectlib`` is an aspect-oriented programming, monkey-patch and decorators library. It is useful when changing'
3327
pypi_badge: 'yes'
3428
pypi_disable_upload: 'no'
35-
release_date: '2020-11-15'
29+
release_date: '2022-10-20'
3630
repo_hosting: github.com
3731
repo_hosting_domain: github.com
3832
repo_main_branch: main
3933
repo_name: python-aspectlib
4034
repo_username: ionelmc
41-
requiresio: 'yes'
4235
scrutinizer: 'no'
43-
setup_py_uses_pytest_runner: 'no'
4436
setup_py_uses_setuptools_scm: 'no'
4537
sphinx_docs: 'yes'
4638
sphinx_docs_hosting: https://python-aspectlib.readthedocs.io/
4739
sphinx_doctest: 'yes'
48-
sphinx_theme: sphinx-py3doc-enhanced-theme
49-
test_matrix_configurator: 'no'
40+
sphinx_theme: furo
5041
test_matrix_separate_coverage: 'yes'
51-
travis: 'no'
52-
travis_osx: 'no'
53-
version: 1.5.2
42+
tests_inside_package: 'no'
43+
version: 2.0.0
5444
version_manager: bump2version
5545
website: http://blog.ionelmc.ro
5646
year_from: '2014'
57-
year_to: '2022'
47+
year_to: '2024'

.github/workflows/github-actions.yml

+102-43
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,50 +10,26 @@ 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-cover-release (ubuntu)'
23-
python: '3.7'
24-
toxpython: 'python3.7'
25-
python_arch: 'x64'
26-
tox_env: 'py37-cover-release,codecov'
27-
os: 'ubuntu-latest'
28-
- name: 'py37-cover-debug (ubuntu)'
29-
python: '3.7'
30-
toxpython: 'python3.7'
31-
python_arch: 'x64'
32-
tox_env: 'py37-cover-debug,codecov'
33-
os: 'ubuntu-latest'
34-
- name: 'py37-nocov-release (ubuntu)'
35-
python: '3.7'
36-
toxpython: 'python3.7'
37-
python_arch: 'x64'
38-
tox_env: 'py37-nocov-release'
39-
os: 'ubuntu-latest'
40-
- name: 'py37-nocov-debug (ubuntu)'
41-
python: '3.7'
42-
toxpython: 'python3.7'
43-
python_arch: 'x64'
44-
tox_env: 'py37-nocov-debug'
45-
os: 'ubuntu-latest'
4622
- name: 'py38-cover-release (ubuntu)'
4723
python: '3.8'
4824
toxpython: 'python3.8'
4925
python_arch: 'x64'
50-
tox_env: 'py38-cover-release,codecov'
26+
tox_env: 'py38-cover-release'
5127
os: 'ubuntu-latest'
5228
- name: 'py38-cover-debug (ubuntu)'
5329
python: '3.8'
5430
toxpython: 'python3.8'
5531
python_arch: 'x64'
56-
tox_env: 'py38-cover-debug,codecov'
32+
tox_env: 'py38-cover-debug'
5733
os: 'ubuntu-latest'
5834
- name: 'py38-nocov-release (ubuntu)'
5935
python: '3.8'
@@ -71,13 +47,13 @@ jobs:
7147
python: '3.9'
7248
toxpython: 'python3.9'
7349
python_arch: 'x64'
74-
tox_env: 'py39-cover-release,codecov'
50+
tox_env: 'py39-cover-release'
7551
os: 'ubuntu-latest'
7652
- name: 'py39-cover-debug (ubuntu)'
7753
python: '3.9'
7854
toxpython: 'python3.9'
7955
python_arch: 'x64'
80-
tox_env: 'py39-cover-debug,codecov'
56+
tox_env: 'py39-cover-debug'
8157
os: 'ubuntu-latest'
8258
- name: 'py39-nocov-release (ubuntu)'
8359
python: '3.9'
@@ -95,13 +71,13 @@ jobs:
9571
python: '3.10'
9672
toxpython: 'python3.10'
9773
python_arch: 'x64'
98-
tox_env: 'py310-cover-release,codecov'
74+
tox_env: 'py310-cover-release'
9975
os: 'ubuntu-latest'
10076
- name: 'py310-cover-debug (ubuntu)'
10177
python: '3.10'
10278
toxpython: 'python3.10'
10379
python_arch: 'x64'
104-
tox_env: 'py310-cover-debug,codecov'
80+
tox_env: 'py310-cover-debug'
10581
os: 'ubuntu-latest'
10682
- name: 'py310-nocov-release (ubuntu)'
10783
python: '3.10'
@@ -115,17 +91,65 @@ jobs:
11591
python_arch: 'x64'
11692
tox_env: 'py310-nocov-debug'
11793
os: 'ubuntu-latest'
94+
- name: 'py311-cover-release (ubuntu)'
95+
python: '3.11'
96+
toxpython: 'python3.11'
97+
python_arch: 'x64'
98+
tox_env: 'py311-cover-release'
99+
os: 'ubuntu-latest'
100+
- name: 'py311-cover-debug (ubuntu)'
101+
python: '3.11'
102+
toxpython: 'python3.11'
103+
python_arch: 'x64'
104+
tox_env: 'py311-cover-debug'
105+
os: 'ubuntu-latest'
106+
- name: 'py311-nocov-release (ubuntu)'
107+
python: '3.11'
108+
toxpython: 'python3.11'
109+
python_arch: 'x64'
110+
tox_env: 'py311-nocov-release'
111+
os: 'ubuntu-latest'
112+
- name: 'py311-nocov-debug (ubuntu)'
113+
python: '3.11'
114+
toxpython: 'python3.11'
115+
python_arch: 'x64'
116+
tox_env: 'py311-nocov-debug'
117+
os: 'ubuntu-latest'
118+
- name: 'py312-cover-release (ubuntu)'
119+
python: '3.12'
120+
toxpython: 'python3.12'
121+
python_arch: 'x64'
122+
tox_env: 'py312-cover-release'
123+
os: 'ubuntu-latest'
124+
- name: 'py312-cover-debug (ubuntu)'
125+
python: '3.12'
126+
toxpython: 'python3.12'
127+
python_arch: 'x64'
128+
tox_env: 'py312-cover-debug'
129+
os: 'ubuntu-latest'
130+
- name: 'py312-nocov-release (ubuntu)'
131+
python: '3.12'
132+
toxpython: 'python3.12'
133+
python_arch: 'x64'
134+
tox_env: 'py312-nocov-release'
135+
os: 'ubuntu-latest'
136+
- name: 'py312-nocov-debug (ubuntu)'
137+
python: '3.12'
138+
toxpython: 'python3.12'
139+
python_arch: 'x64'
140+
tox_env: 'py312-nocov-debug'
141+
os: 'ubuntu-latest'
118142
- name: 'pypy37-cover-release (ubuntu)'
119143
python: 'pypy-3.7'
120144
toxpython: 'pypy3.7'
121145
python_arch: 'x64'
122-
tox_env: 'pypy37-cover-release,codecov'
146+
tox_env: 'pypy37-cover-release'
123147
os: 'ubuntu-latest'
124148
- name: 'pypy37-cover-debug (ubuntu)'
125149
python: 'pypy-3.7'
126150
toxpython: 'pypy3.7'
127151
python_arch: 'x64'
128-
tox_env: 'pypy37-cover-debug,codecov'
152+
tox_env: 'pypy37-cover-debug'
129153
os: 'ubuntu-latest'
130154
- name: 'pypy37-nocov-release (ubuntu)'
131155
python: 'pypy-3.7'
@@ -143,13 +167,13 @@ jobs:
143167
python: 'pypy-3.8'
144168
toxpython: 'pypy3.8'
145169
python_arch: 'x64'
146-
tox_env: 'pypy38-cover-release,codecov'
170+
tox_env: 'pypy38-cover-release'
147171
os: 'ubuntu-latest'
148172
- name: 'pypy38-cover-debug (ubuntu)'
149173
python: 'pypy-3.8'
150174
toxpython: 'pypy3.8'
151175
python_arch: 'x64'
152-
tox_env: 'pypy38-cover-debug,codecov'
176+
tox_env: 'pypy38-cover-debug'
153177
os: 'ubuntu-latest'
154178
- name: 'pypy38-nocov-release (ubuntu)'
155179
python: 'pypy-3.8'
@@ -167,13 +191,13 @@ jobs:
167191
python: 'pypy-3.9'
168192
toxpython: 'pypy3.9'
169193
python_arch: 'x64'
170-
tox_env: 'pypy39-cover-release,codecov'
194+
tox_env: 'pypy39-cover-release'
171195
os: 'ubuntu-latest'
172196
- name: 'pypy39-cover-debug (ubuntu)'
173197
python: 'pypy-3.9'
174198
toxpython: 'pypy3.9'
175199
python_arch: 'x64'
176-
tox_env: 'pypy39-cover-debug,codecov'
200+
tox_env: 'pypy39-cover-debug'
177201
os: 'ubuntu-latest'
178202
- name: 'pypy39-nocov-release (ubuntu)'
179203
python: 'pypy-3.9'
@@ -187,11 +211,35 @@ jobs:
187211
python_arch: 'x64'
188212
tox_env: 'pypy39-nocov-debug'
189213
os: 'ubuntu-latest'
214+
- name: 'pypy310-cover-release (ubuntu)'
215+
python: 'pypy-3.10'
216+
toxpython: 'pypy3.10'
217+
python_arch: 'x64'
218+
tox_env: 'pypy310-cover-release'
219+
os: 'ubuntu-latest'
220+
- name: 'pypy310-cover-debug (ubuntu)'
221+
python: 'pypy-3.10'
222+
toxpython: 'pypy3.10'
223+
python_arch: 'x64'
224+
tox_env: 'pypy310-cover-debug'
225+
os: 'ubuntu-latest'
226+
- name: 'pypy310-nocov-release (ubuntu)'
227+
python: 'pypy-3.10'
228+
toxpython: 'pypy3.10'
229+
python_arch: 'x64'
230+
tox_env: 'pypy310-nocov-release'
231+
os: 'ubuntu-latest'
232+
- name: 'pypy310-nocov-debug (ubuntu)'
233+
python: 'pypy-3.10'
234+
toxpython: 'pypy3.10'
235+
python_arch: 'x64'
236+
tox_env: 'pypy310-nocov-debug'
237+
os: 'ubuntu-latest'
190238
steps:
191-
- uses: actions/checkout@v2
239+
- uses: actions/checkout@v4
192240
with:
193241
fetch-depth: 0
194-
- uses: actions/setup-python@v2
242+
- uses: actions/setup-python@v5
195243
with:
196244
python-version: ${{ matrix.python }}
197245
architecture: ${{ matrix.python_arch }}
@@ -207,3 +255,14 @@ jobs:
207255
TOXPYTHON: '${{ matrix.toxpython }}'
208256
run: >
209257
tox -e ${{ matrix.tox_env }} -v
258+
finish:
259+
needs: test
260+
if: ${{ always() }}
261+
runs-on: ubuntu-latest
262+
steps:
263+
- uses: coverallsapp/github-action@v2
264+
with:
265+
parallel-finished: true
266+
- uses: codecov/codecov-action@v3
267+
with:
268+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)