File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 18
18
- name : Install dependencies
19
19
run : |
20
20
python -m pip install --upgrade pip
21
- python setup.py sdist
22
- pip install --upgrade dist/*.tar.gz coveralls mock
21
+ pip install --upgrade coveralls mock
23
22
24
23
- name : Run unit tests
25
24
run : coverage run --omit=pythesint/tests/* --source=pythesint setup.py test
29
28
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
30
29
run : coveralls --service=github
31
30
31
+ - name : Build Python package
32
+ if : github.event_name == 'release'
33
+ run : >
34
+ PYTHESINT_RELEASE="${GITHUB_REF#refs/tags/}"
35
+ python setup.py sdist
36
+
32
37
- name : Publish Python package
33
38
if : github.event_name == 'release'
34
39
uses : pypa/gh-action-pypi-publish@release/v1
Original file line number Diff line number Diff line change 9
9
# Copyright:(c) NERSC
10
10
# License: GPLv3
11
11
#-------------------------------------------------------------------------------
12
+ import os
12
13
from setuptools import setup , find_packages
13
14
from setuptools .command .install_scripts import install_scripts
14
15
from os import path
@@ -35,7 +36,7 @@ def run(self):
35
36
setup (
36
37
name = NAME ,
37
38
38
- version = '1.5.1' ,
39
+ version = os . getenv ( 'PYTHESINT_RELEASE' , '0.0.0dev' ). lstrip ( 'v' ) ,
39
40
40
41
description = 'A Python interface to various metadata vocabularies' ,
41
42
long_description = long_description ,
You can’t perform that action at this time.
0 commit comments