File tree Expand file tree Collapse file tree 4 files changed +9
-3
lines changed Expand file tree Collapse file tree 4 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 4
4
workflow_dispatch :
5
5
push :
6
6
paths :
7
- - pyproject.toml
7
+ - mpython/_version.py
8
8
9
9
jobs :
10
10
create-tag :
21
21
- name : Get package version
22
22
id : getversion
23
23
run : |
24
- VERSION=$(sed -n 's/^version = "\(.*\)"/\1/p' pyproject.toml )
24
+ VERSION=$(sed -n 's/^__version__ = "\(.*\)"/\1/p' mpython/_version.py )
25
25
echo "pyproject.toml version: $VERSION"
26
26
git config user.name github-actions
27
27
git config user.email [email protected]
Original file line number Diff line number Diff line change 5
5
from .runtime import Runtime
6
6
from .sparse_array import SparseArray
7
7
from .struct import Struct
8
+ from ._version import __version__
8
9
9
10
__all__ = [
10
11
"Runtime" ,
14
15
"Struct" ,
15
16
"Array" ,
16
17
"SparseArray" ,
18
+ "__version__" ,
17
19
]
18
20
19
21
# ----------------------------------------------------------------------
Original file line number Diff line number Diff line change
1
+ __version__ = "25.04alpha2.post2"
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
5
5
[project ]
6
6
name = " mpython-core"
7
- version = " 25.04alpha2.post2 "
7
+ dynamic = [ " version " ]
8
8
description = " Core Python elements for wrapped MPython packages."
9
9
readme = " README.md"
10
10
license = {file = " LICENSE" }
@@ -24,6 +24,9 @@ dependencies = [
24
24
" numpy"
25
25
]
26
26
27
+ [tool .setuptools .dynamic ]
28
+ version = {attr = " mpython._version.__version__" }
29
+
27
30
[project .urls ]
28
31
Repository = " https://github.com/MPython-Package-Factory/mpython-core"
29
32
You can’t perform that action at this time.
0 commit comments