File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515permissions :
1616 contents : read
1717
18+ env :
19+ RELEASE_TAG : ${{ github.event.release.tag_name }}
20+
21+
1822jobs :
1923 deploy :
2024
Original file line number Diff line number Diff line change 22Configuration for building the pip package
33"""
44
5+ import os
56from setuptools import setup
67
78with open ("README.md" , "r" , encoding = "utf-8" ) as fh :
89 long_description = fh .read ()
910
11+
12+ def get_version (default :str ):
13+ """ retrieve version number from environment variable """
14+ version = os .getenv ('RELEASE_TAG' )
15+ if version is None :
16+ print ("no version passed" )
17+ return default
18+
19+ print (version )
20+ version = version .replace ("v" , "" )
21+ return version
22+
23+
1024setup (
1125 name = 'uiipythonapi' ,
12- version = ' 1.0.0' ,
26+ version = get_version ( " 1.0.0" ) ,
1327 url = 'https://github.com/virtomize/uii-python-api' ,
1428 author = 'Virtomize GmbH' ,
1529 author_email = 'api@virtomize.com' ,
You can’t perform that action at this time.
0 commit comments