File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# Changes here will be overwritten by Copier
2- _commit : 99606c7
2+ _commit : 484c8a6
33_src_path : https://github.com/python-project-templates/base.git
44add_docs : true
55add_extension : rustjswasm
Original file line number Diff line number Diff line change 3535 node-version : [22.x]
3636
3737 steps :
38- - uses : actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6 .0.3
38+ - uses : actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7 .0.0
3939
4040 - uses : actions-ext/python/setup@main
4141 with :
7272 if : matrix.os == 'ubuntu-latest'
7373
7474 - name : Publish Unit Test Results
75- uses : EnricoMi/publish-unit-test-result-action@c950f6fb443cb5af20a377fd0dfaa78838901040 # v2
75+ uses : EnricoMi/publish-unit-test-result-action@d0a4676d0e0b938bc201470d88276b7c74c712b3 # v2.24.0
7676 with :
7777 files : ' **/junit.xml'
7878 if : matrix.os == 'ubuntu-latest'
8383 token : ${{ secrets.CODECOV_TOKEN }}
8484
8585 - name : Set up QEMU
86- uses : docker/setup-qemu-action@v4
86+ uses : docker/setup-qemu-action@ 06116385d9baf250c9f4dcb4858b16962ea869c3 # v4.1.0
8787 with :
8888 platforms : all
8989 if : runner.os == 'Linux' && runner.arch == 'X64'
Original file line number Diff line number Diff line change 1616 runs-on : ubuntu-latest
1717 if : ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }}
1818 steps :
19- - uses : actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6 .0.3
19+ - uses : actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7 .0.0
2020 - uses : actions-ext/python/setup@main
2121
2222 - name : Download dist from build
Original file line number Diff line number Diff line change 2020 deploy :
2121 runs-on : ubuntu-latest
2222 steps :
23- - uses : actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6 .0.3
23+ - uses : actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7 .0.0
2424 - run : cp README.md docs/wiki/Home.md
25- - uses : Andrew-Chen-Wang/github-wiki-action@64efa0a9436db17670a2259e0ac249d6f08bb352 # v5
25+ - uses : Andrew-Chen-Wang/github-wiki-action@4e78882ff52f8751488e506e49b221145506ee34 # v5.0.5
2626 with :
2727 path : docs/wiki
Original file line number Diff line number Diff line change @@ -22,18 +22,26 @@ async function build() {
2222 await bundle_css ( ) ;
2323
2424 // Copy HTML
25- cpy ( "src/html/*" , "dist/" ) ;
25+ await cpy ( "src/html/*" , "dist/" ) ;
2626
2727 // Copy images
28- fs . mkdirSync ( "dist/img" , { recursive : true } ) ;
29- cpy ( "src/img/*" , "dist/img" ) ;
28+ if ( fs . existsSync ( "src/img" ) ) {
29+ fs . mkdirSync ( "dist/img" , { recursive : true } ) ;
30+ await cpy ( "src/img/*" , "dist/img" ) ;
31+ }
3032
3133 await Promise . all ( BUNDLES . map ( bundle ) ) . catch ( ( ) => process . exit ( 1 ) ) ;
3234
3335 // Copy servable assets to python extension (exclude esm/)
36+ fs . rmSync ( "../python_template_rust/extension" , {
37+ recursive : true ,
38+ force : true ,
39+ } ) ;
3440 fs . mkdirSync ( "../python_template_rust/extension" , { recursive : true } ) ;
35- cpy ( "dist/**/*" , "../python_template_rust/extension" , {
36- filter : ( file ) => ! file . relativePath . startsWith ( "esm" ) ,
41+ await cpy ( "dist/**/*" , "../python_template_rust/extension" , {
42+ filter : ( file ) =>
43+ ! file . relativePath . startsWith ( "esm/" ) &&
44+ ! file . relativePath . startsWith ( "dist/esm/" ) ,
3745 } ) ;
3846}
3947
Original file line number Diff line number Diff line change @@ -134,6 +134,17 @@ exclude_also = [
134134ignore_errors = true
135135fail_under = 50
136136
137+ [tool .hatch .build ]
138+ artifacts = [
139+ " python_template_rust/*.dll" ,
140+ " python_template_rust/*.dylib" ,
141+ " python_template_rust/*.so" ,
142+ " python_template_rust/extension" ,
143+ ]
144+
145+ [tool .hatch .build .sources ]
146+ src = " /"
147+
137148[tool .hatch .build .hooks .hatch-js ]
138149path = " js"
139150build_cmd = " build"
@@ -157,6 +168,11 @@ packages = [
157168 " Cargo.lock" ,
158169]
159170exclude = [
171+ " python_template_rust/*.dll" ,
172+ " python_template_rust/*.dylib" ,
173+ " python_template_rust/*.so" ,
174+ " python_template_rust/extension" ,
175+ " js/dist" ,
160176 " js/node_modules" ,
161177 " rust/Makefile" ,
162178 " target" ,
You can’t perform that action at this time.
0 commit comments