File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 workflow_dispatch :
55 push :
66 paths :
7- - pyproject.toml
7+ - mpython/_version.py
88
99jobs :
1010 create-tag :
2121 - name : Get package version
2222 id : getversion
2323 run : |
24- VERSION=$(sed -n 's/^version = "\(.*\)"/\1/p' pyproject.toml )
24+ VERSION=$(sed -n 's/^__version__ = "\(.*\)"/\1/p' mpython/_version.py )
2525 echo "pyproject.toml version: $VERSION"
2626 git config user.name github-actions
2727 git config user.email github-actions@github.com
Original file line number Diff line number Diff line change 55from .runtime import Runtime
66from .sparse_array import SparseArray
77from .struct import Struct
8+ from ._version import __version__
89
910__all__ = [
1011 "Runtime" ,
1415 "Struct" ,
1516 "Array" ,
1617 "SparseArray" ,
18+ "__version__" ,
1719]
1820
1921# ----------------------------------------------------------------------
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"
44
55[project ]
66name = " mpython-core"
7- version = " 25.04alpha2.post2 "
7+ dynamic = [ " version " ]
88description = " Core Python elements for wrapped MPython packages."
99readme = " README.md"
1010license = {file = " LICENSE" }
@@ -24,6 +24,9 @@ dependencies = [
2424 " numpy"
2525]
2626
27+ [tool .setuptools .dynamic ]
28+ version = {attr = " mpython._version.__version__" }
29+
2730[project .urls ]
2831Repository = " https://github.com/MPython-Package-Factory/mpython-core"
2932
You can’t perform that action at this time.
0 commit comments