File tree Expand file tree Collapse file tree 7 files changed +725
-3
lines changed Expand file tree Collapse file tree 7 files changed +725
-3
lines changed Original file line number Diff line number Diff line change
1
+ autokoopman /_version.py export-subst
Original file line number Diff line number Diff line change
1
+ name : Publish AutoKoopman
2
+
3
+ on : [push]
4
+
5
+ jobs :
6
+ publish-whl :
7
+ runs-on : ubuntu-latest
8
+ strategy :
9
+ max-parallel : 5
10
+
11
+ steps :
12
+ - uses : actions/checkout@v2
13
+ - name : Set up Python 3.9
14
+ uses : actions/setup-python@v2
15
+ with :
16
+ python-version : 3.9
17
+ - name : Add conda to system path
18
+ run : |
19
+ # $CONDA is an environment variable pointing to the root of the miniconda directory
20
+ echo $CONDA/bin >> $GITHUB_PATH
21
+ - name : Prepare build requirements
22
+ run : >-
23
+ python -m
24
+ pip install
25
+ build
26
+ --user
27
+ - name : Build a binary wheel and a source tarball
28
+ run : >-
29
+ python -m
30
+ build
31
+ --sdist
32
+ --wheel
33
+ --outdir dist/
34
+ .
35
+ - name : Publish distribution 📦 to Test PyPI
36
+ if : startsWith(github.ref, 'refs/tags')
37
+ uses : pypa/gh-action-pypi-publish@release/v1
38
+ with :
39
+ password : ${{ secrets.TEST_PYPI_API_TOKEN }}
40
+ repository_url : https://test.pypi.org/legacy/
41
+ - name : Publish distribution 📦 to PyPI
42
+ if : startsWith(github.ref, 'refs/tags')
43
+ uses : pypa/gh-action-pypi-publish@release/v1
44
+ with :
45
+ password : ${{ secrets.PYPI_API_TOKEN }}
Original file line number Diff line number Diff line change 11
11
"Sergiy Bogomolov" ,
12
12
]
13
13
__license__ = "GPLv3"
14
- __version__ = "0.21"
15
14
__maintainer__ = "Ethan Lew"
16
15
__email__ = "ethanlew16@gmail.com"
17
16
__status__ = "Prototype"
18
17
18
+ # we auto-manage versions
19
+ from ._version import get_versions
20
+
21
+ __version__ = get_versions ()["version" ]
22
+ del get_versions
23
+
19
24
from autokoopman .autokoopman import auto_koopman
20
25
21
26
from autokoopman .core .system import (
30
35
UniformTimeTrajectoriesData ,
31
36
UniformTimeTrajectory ,
32
37
)
38
+
39
+ from . import _version
40
+
41
+ __version__ = _version .get_versions ()["version" ]
You can’t perform that action at this time.
0 commit comments