File tree Expand file tree Collapse file tree 3 files changed +56
-1
lines changed Expand file tree Collapse file tree 3 files changed +56
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : release-pipeline
2
+
3
+ on :
4
+ release :
5
+ types :
6
+ - created
7
+
8
+ jobs :
9
+ release-job :
10
+ runs-on : ubuntu-latest
11
+ env :
12
+ PYPI_TOKEN : ${{ secrets.PYPI_TOKEN }}
13
+ steps :
14
+ - uses : actions/checkout@v2
15
+ - name : Set up Python
16
+ uses : actions/setup-python@v1
17
+ with :
18
+ python-version : 3.7
19
+ # TODO: ideally, this pipeline should run parallelized tests in upstream jobs..
20
+ # - name: Install test tooling
21
+ # run: |
22
+ # pip install pytest pytest-cov nose nose-parameterized
23
+ # pip install -r requirements.txt
24
+ # - name: Run tests
25
+ # run: |
26
+ # pytest --cov=./pymc3 --cov-report term-missing pymc3/
27
+ - name : Install release tooling
28
+ run : |
29
+ pip install twine wheel
30
+ - name : Build package
31
+ run : |
32
+ python setup.py sdist bdist_wheel
33
+ - name : Check version number match
34
+ run : |
35
+ echo "GITHUB_REF: ${GITHUB_REF}"
36
+ # The GITHUB_REF should be something like "refs/tags/v3.x.x"
37
+ # Make sure the package version is the same as the tag
38
+ grep -Rq "^Version: ${GITHUB_REF:11}$" pymc3.egg-info/PKG-INFO
39
+ - name : Publish to PyPI
40
+ run : |
41
+ twine check dist/*
42
+ twine upload --repository pypi --username __token__ --password ${PYPI_TOKEN} dist/*
43
+ test-install-job :
44
+ needs : release-job
45
+ runs-on : ubuntu-latest
46
+ - name : Set up Python
47
+ uses : actions/setup-python@v1
48
+ with :
49
+ python-version : 3.7
50
+ - name : Give PyPI a chance to update the index
51
+ run : sleep 240
52
+ - name : Install from PyPI
53
+ run : |
54
+ pip install pymc3==${GITHUB_REF:11}
Original file line number Diff line number Diff line change 13
13
# limitations under the License.
14
14
15
15
# pylint: disable=wildcard-import
16
- __version__ = "3.8 "
16
+ __version__ = "3.9.0 "
17
17
18
18
import logging
19
19
import multiprocessing as mp
Original file line number Diff line number Diff line change @@ -69,6 +69,7 @@ def get_version():
69
69
license = LICENSE ,
70
70
url = URL ,
71
71
long_description = LONG_DESCRIPTION ,
72
+ long_description_content_type = 'text/x-rst' ,
72
73
packages = find_packages (),
73
74
package_data = {'docs' : ['*' ]},
74
75
include_package_data = True ,
You can’t perform that action at this time.
0 commit comments