added env variable for setting a version
small changed in build scripts
This commit is contained in:
parent
222d274ea7
commit
d1e385a2a1
3 changed files with 15 additions and 14 deletions
|
@ -1,29 +1,22 @@
|
|||
#!/usr/bin/env python3
|
||||
#!/usr/bin/python3
|
||||
import setuptools
|
||||
import os
|
||||
|
||||
base_dir = os.path.dirname(__file__)
|
||||
readme_path = os.path.join(base_dir, "README.md")
|
||||
if os.path.exists(readme_path):
|
||||
with open(readme_path) as stream:
|
||||
long_description = stream.read()
|
||||
else:
|
||||
long_description = ""
|
||||
print("Using version: {str(os.environ['VERSION'])}")
|
||||
|
||||
setuptools.setup(
|
||||
name="complib",
|
||||
version=str(os.environ["VERSION"]),
|
||||
author="F-WuTs",
|
||||
author_email="joel.klimont@comp-air.at",
|
||||
description="",
|
||||
summary="Robot client library for the compAIR competition",
|
||||
platforms=["any"],
|
||||
long_description=long_description,
|
||||
long_description_content_type="text/markdown",
|
||||
url="https://github.com/F-WuTS/compLIB",
|
||||
packages=setuptools.find_packages(),
|
||||
include_package_data=True,
|
||||
classifiers=[
|
||||
"Programming Language :: Python :: 3.7",
|
||||
"Programming Language :: Python :: 3.9",
|
||||
"License :: Other/Proprietary License",
|
||||
"Operating System :: Unix"
|
||||
],
|
||||
|
|
Reference in a new issue