parent
6d715e8348
commit
9ae75f20e8
3 changed files with 40 additions and 2 deletions
11
setup.py
11
setup.py
|
|
@ -3,8 +3,17 @@ from setuptools import setup, find_packages
|
|||
with open("README.md", "r") as fh:
|
||||
long_description = fh.read()
|
||||
|
||||
try:
|
||||
import ucloud.version
|
||||
version = ucloud.version.VERSION
|
||||
except:
|
||||
import subprocess
|
||||
c = subprocess.run(["git", "describe"], capture_output=True)
|
||||
version = c.stdout.decode("utf-8")
|
||||
|
||||
|
||||
setup(name='ucloud',
|
||||
version='0.0.1',
|
||||
version=version,
|
||||
description='All ucloud server components.',
|
||||
url='https://code.ungleich.ch/ucloud/ucloud',
|
||||
long_description=long_description,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue