Skip to content

Commit 78450d9

Browse files
committed
Update to new cpp pattern
1 parent 11e288c commit 78450d9

26 files changed

+264
-926
lines changed

.copier-answers.yml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Changes here will be overwritten by Copier
2+
_commit: '4871032'
3+
_src_path: https://github.com/python-project-templates/base.git
4+
add_extension: cpp
5+
6+
github: python-project-templates
7+
project_description: A C++-Python project template
8+
project_name: python template cpp
9+
python_version_primary: '3.11'
10+
team: Python Project Template Authors

.gitattributes

-6
This file was deleted.

.github/workflows/build.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,10 @@ jobs:
142142
os:
143143
- ubuntu-22.04
144144
python-version:
145-
- '3.8'
146145
- '3.9'
147146
- '3.10'
148147
- '3.11'
148+
- '3.12'
149149
fail-fast: false
150150
runs-on: ${{ matrix.os }}
151151
if: ${{ needs.initialize.outputs.FULL_BUILD == 'true' }}
@@ -190,10 +190,10 @@ jobs:
190190
# - windows-2019 # https://github.com/actions/virtual-environments/blob/main/images/win/Windows2019-Readme.md
191191
- windows-2022 # https://github.com/actions/virtual-environments/blob/main/images/win/Windows2022-Readme.md
192192
python-version:
193-
- '3.8'
194193
- '3.9'
195194
- '3.10'
196195
- '3.11'
196+
- '3.12'
197197
fail-fast: false
198198
runs-on: ${{ matrix.os }}
199199
if: ${{ needs.initialize.outputs.FULL_BUILD == 'true' }}
@@ -333,10 +333,10 @@ jobs:
333333
# - windows-2019 # https://github.com/actions/virtual-environments/blob/main/images/win/Windows2019-Readme.md
334334
- windows-2022 # https://github.com/actions/virtual-environments/blob/main/images/win/Windows2022-Readme.md
335335
python-version:
336-
- '3.8'
337336
- '3.9'
338337
- '3.10'
339338
- '3.11'
339+
- '3.12'
340340
fail-fast: false
341341
runs-on: ${{ matrix.os }}
342342
if: ${{ needs.initialize.outputs.FULL_BUILD == 'true' }}
@@ -399,10 +399,10 @@ jobs:
399399
# - windows-2019 # https://github.com/actions/virtual-environments/blob/main/images/win/Windows2019-Readme.md
400400
- windows-2022 # https://github.com/actions/virtual-environments/blob/main/images/win/Windows2022-Readme.md
401401
python-version:
402-
- '3.8'
403402
- '3.9'
404403
- '3.10'
405404
- '3.11'
405+
- '3.12'
406406
fail-fast: false
407407
runs-on: ${{ matrix.os }}
408408
if: ${{ needs.initialize.outputs.FULL_BUILD == 'true' }}

.github/workflows/copier.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Copier Updates
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: "0 5 * * 0"
7+
8+
jobs:
9+
update:
10+
permissions:
11+
contents: write
12+
pull-requests: write
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions-ext/copier-update@main
16+
with:
17+
token: ${{ secrets.WORKFLOW_TOKEN }}

.gitignore

+23-33
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,17 @@
1-
##########
2-
# PYTHON #
3-
##########
41
# Byte-compiled / optimized / DLL files
52
__pycache__/
63
*.py[cod]
74
*$py.class
85

96
# C extensions
7+
*.a
108
*.so
11-
*.dylib
9+
*.obj
1210
*.dll
13-
cpp_template/include
14-
cpp_template/lib
11+
*.exp
12+
*.lib
1513

1614
# Distribution / packaging
17-
_skbuild
1815
.Python
1916
build/
2017
develop-eggs/
@@ -28,7 +25,6 @@ parts/
2825
sdist/
2926
var/
3027
wheels/
31-
wheelhouse/
3228
pip-wheel-metadata/
3329
share/python-wheels/
3430
*.egg-info/
@@ -54,9 +50,8 @@ htmlcov/
5450
.coverage.*
5551
.cache
5652
nosetests.xml
57-
python_junit.xml
58-
junit.xml
5953
coverage.xml
54+
junit.xml
6055
*.cover
6156
*.py,cover
6257
.hypothesis/
@@ -79,15 +74,9 @@ instance/
7974
# Scrapy stuff:
8075
.scrapy
8176

82-
# Sphinx documentation
83-
docs/_build/
84-
8577
# PyBuilder
8678
target/
8779

88-
# Jupyter Notebook
89-
.ipynb_checkpoints
90-
9180
# IPython
9281
profile_default/
9382
ipython_config.py
@@ -139,23 +128,24 @@ dmypy.json
139128
# Pyre type checker
140129
.pyre/
141130

142-
########
143-
# RUST #
144-
########
145-
# Generated by Cargo
146-
# will have compiled files and executables
147-
target/
148-
pkg/
131+
# Documentation
132+
docs/_build/
133+
/site
134+
docs/api
135+
docs/index.md
136+
_template/labextension
149137

150-
# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
151-
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
152-
Cargo.lock
138+
# JS
139+
js/node_modules
140+
js/dist
141+
python_template_cpp/extension
142+
143+
# Jupyter
144+
.ipynb_checkpoints
145+
.autoversion
153146

154-
# These are backup files generated by rustfmt
155-
**/*.rs.bk
147+
# Mac
148+
.DS_Store
156149

157-
#########
158-
# OTHER #
159-
#########
160-
mics_oprt.csv
161-
tmp.py
150+
# Rust
151+
target

0 commit comments

Comments
 (0)