File tree Expand file tree Collapse file tree 5 files changed +12
-7
lines changed Expand file tree Collapse file tree 5 files changed +12
-7
lines changed Original file line number Diff line number Diff line change 32
32
33
33
- run : pip install twine build
34
34
35
- - run : |
35
+ - name : run python -m build to generate wheel files, check for warnings
36
+ run : |
37
+ set -x
36
38
unset CI
37
39
cd ${{ matrix.packages-dir }}
38
40
python -m build 2>&1 | tee build.log
41
43
| grep -v "version of {dist_name} already set" \
42
44
| grep -v -E "UserWarning: version of PySDM(-examples)? already set" \
43
45
| wc -l`
44
- twine check --strict dist/*
46
+ - run : twine check --strict ${{ matrix.packages-dir }}/dist/*
47
+ - name : check if version string does not contain PyPI-incompatible + char
48
+ run : |
49
+ set -x
50
+ [ `ls ${{ matrix.packages-dir }}/dist | fgrep + | tee /dev/stderr | wc -l` -ne 0 ] && exit 1 || echo OK
45
51
46
52
- uses : actions/upload-artifact@v4
47
53
with :
Original file line number Diff line number Diff line change 1
1
[tool .setuptools_scm ]
2
2
root = " .."
3
+ local_scheme = " no-local-version"
4
+ version_scheme = " post-release"
3
5
4
6
[build-system ]
5
7
requires = [' setuptools==75.6.0' , ' setuptools-scm==8.1.0' ]
Original file line number Diff line number Diff line change @@ -23,10 +23,6 @@ def get_long_description():
23
23
name = "PySDM-examples" ,
24
24
description = "PySDM usage examples reproducing results from literature "
25
25
"and depicting how to use PySDM from Python Jupyter notebooks" ,
26
- use_scm_version = {
27
- "local_scheme" : lambda _ : "" ,
28
- "version_scheme" : "post-release" ,
29
- },
30
26
install_requires = [
31
27
"PySDM" ,
32
28
"PyMPDATA" + (">=1.0.15" if CI else "" ),
Original file line number Diff line number Diff line change 2
2
profile = " black"
3
3
4
4
[tool .setuptools_scm ]
5
+ local_scheme = " no-local-version"
6
+ version_scheme = " post-release"
5
7
6
8
[build-system ]
7
9
requires = [' setuptools==75.3.0' , ' setuptools-scm==8.1.0' ]
Original file line number Diff line number Diff line change @@ -25,7 +25,6 @@ def get_long_description():
25
25
description = "Pythonic particle-based (super-droplet) warm-rain/aqueous-chemistry"
26
26
" cloud microphysics package with box, parcel & 1D/2D prescribed-flow"
27
27
" examples in Python, Julia and Matlab" ,
28
- use_scm_version = {"local_scheme" : lambda _ : "" , "version_scheme" : "post-release" },
29
28
install_requires = [
30
29
"ThrustRTC==0.3.20" ,
31
30
"CURandRTC" + ("==0.1.6" if CI else ">=0.1.2" ),
You can’t perform that action at this time.
0 commit comments