Skip to content

Commit 329bee8

Browse files
committed
Bump version to v1.15.4, add PyPi upload script
1 parent bb0a2f2 commit 329bee8

File tree

3 files changed

+31
-3
lines changed

3 files changed

+31
-3
lines changed

dev/Upload-to-PyPI.sh

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#!/bin/bash
2+
3+
# ----------------------------------------------------------------------------------------------------------------------
4+
# Upload-to-PyPI
5+
# Prerequisites:
6+
# python3 -m pip install --upgrade --user setuptools wheel twine
7+
# ~/.pypirc: See: https://packaging.python.org/en/latest/specifications/pypirc/
8+
# ----------------------------------------------------------------------------------------------------------------------
9+
cd ..
10+
# set -e
11+
clear
12+
13+
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
14+
# Package
15+
python3 setup.py sdist bdist_wheel
16+
17+
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
18+
# Upload
19+
twine upload --verbose -r pypi dist/*
20+
21+
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
22+
# Clean
23+
rm -rf build/
24+
rm -rf dist/
25+
rm -rf MagnetiCalc.egg-info/
26+
27+
# ----------------------------------------------------------------------------------------------------------------------
28+
cd dev/

dev/Upload-to-TestPyPI.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# ----------------------------------------------------------------------------------------------------------------------
44
# Upload-to-TestPyPI
55
# Prerequisites:
6-
# python3 -m pip install --upgrade --user setuptools wheel
6+
# python3 -m pip install --upgrade --user setuptools wheel twine
77
# ~/.pypirc: See: https://packaging.python.org/en/latest/specifications/pypirc/
88
# ----------------------------------------------------------------------------------------------------------------------
99
cd ..

magneticalc/Version.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1818

1919

20-
__VERSION__ = "v1.15.2" # MAJ.MIN.REV
20+
__VERSION__ = "v1.15.4" # MAJ.MIN.REV
2121

2222

2323
__URL__ = "https://github.com/shredEngineer/MagnetiCalc"
@@ -29,5 +29,5 @@ class Version:
2929

3030
# Full application version string
3131
String = "MagnetiCalc " + __VERSION__
32-
Copyright = "Copyright © 2020–2022, Paul Wilhelm, M. Sc. <mailto:anfrage@paulwilhelm.de>"
32+
Copyright = "Copyright © 2020–2022, 2025, Paul Wilhelm, M. Sc. <mailto:anfrage@paulwilhelm.de>"
3333
License = "ISC License (see README.md)"

0 commit comments

Comments
 (0)