Skip to content

Commit

Permalink
update setup.py file
Browse files Browse the repository at this point in the history
  • 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.
28 changes: 21 additions & 7 deletions setup.py
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()
Expand All @@ -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,
)

0 comments on commit 7bb5124

Please sign in to comment.