generated from QualiSystems/cloudshell-package-repo-template
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Anthony Poddubny
authored and
Anthony Poddubny
committed
Sep 22, 2021
1 parent
2006cad
commit 7bb5124
Showing
1 changed file
with
21 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,21 @@ | ||
import os | ||
|
||
from setuptools import find_packages, setup | ||
from setuptools.version import __version__ as setuptools_version | ||
|
||
if tuple(map(int, setuptools_version.split("."))) < (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() | ||
|
@@ -13,20 +28,19 @@ | |
|
||
setup( | ||
name="cloudshell-cp-vcenter", | ||
author="Quali", | ||
url="https://github.com/QualiSystems/cloudshell-cp-vcenter", | ||
url="http://www.qualisystems.com/", | ||
author="QualiSystems", | ||
author_email="[email protected]", | ||
packages=find_packages(), | ||
description=( | ||
"This Shell enables setting up vCenter as a cloud provider in CloudShell. " | ||
"It supports connectivity, and adds new deployment types for apps which can be used in " | ||
"CloudShell sandboxes." | ||
), | ||
author_email="[email protected]", | ||
packages=find_packages(), | ||
install_requires=required, | ||
tests_require=required_for_tests, | ||
test_suite="nose.collector", | ||
python_requires="~=3.7", | ||
version=version_from_file, | ||
include_package_data=True, | ||
keywords="sandbox cloud virtualization vcenter cmp cloudshell", | ||
package_data={"": ["*.txt"]}, | ||
include_package_data=True, | ||
) |