generated from QualiSystems/cloudshell-package-repo-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
41 lines (33 loc) · 1.19 KB
/
setup.py
File metadata and controls
41 lines (33 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import os
from setuptools import find_packages, setup
from setuptools.version import __version__ as setuptools_version
if tuple(map(int, setuptools_version.split(".")[:2])) < (40, 0):
import sys
python = sys.executable
try:
s = os.system('{} -m pip install "setuptools>=40"'.format(python))
if s != 0:
raise Exception
except Exception:
raise Exception("Setuptools>40 have to be installed")
os.execl(python, python, *sys.argv)
with open(os.path.join("version.txt")) as version_file:
version_from_file = version_file.read().strip()
with open("requirements.txt") as f_required:
required = f_required.read().splitlines()
with open("test_requirements.txt") as f_tests:
required_for_tests = f_tests.read().splitlines()
setup(
name="cloudshell-checkpoint",
url="http://www.qualisystems.com/",
author="QualiSystems",
author_email="info@qualisystems.com",
packages=find_packages(),
install_requires=required,
tests_require=required_for_tests,
python_requires="~=3.7",
version=version_from_file,
package_data={"": ["*.txt"]},
description="Quali checkpoint specific package",
include_package_data=True,
)