Skip to content

Commit c79e90d

Browse files
committed
refactored project files
1 parent 675b9b7 commit c79e90d

File tree

11 files changed

+35
-92
lines changed

11 files changed

+35
-92
lines changed

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build-system]
2+
requires = ["setuptools>=42", "wheel"]
3+
build-backend = "setuptools.build_meta"

requirements.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
requests
2-
retrying
1+
requests>=2,<3

setup.cfg

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
[metadata]
2+
name = cloudshell_sandboxapi_wrapper
3+
version = file: version.txt
4+
author = QualiLab
5+
author_email = support@qualisystems.com
6+
description = Python client for CloudShell Sandbox REST api - consume sandboxes via CI
7+
long_description = file: README.MD
8+
long_description_content_type = text/markdown
9+
url = https://github.com/QualiSystemsLab/Sandbox-API-Python
10+
classifiers =
11+
Programming Language :: Python :: 3.7
12+
License :: OSI Approved :: MIT License
13+
Operating System :: OS Independent
14+
license = MIT
15+
license_file = LICENSE
16+
17+
18+
[options]
19+
package_dir =
20+
= src
21+
packages = find:
22+
python_requires = >=3.7
23+
install_requires =
24+
requests>=2
25+
26+
[options.packages.find]
27+
where = src

setup.py

Lines changed: 3 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,4 @@
1-
from typing import List
1+
from setuptools import setup
22

3-
from setuptools import find_packages, setup
4-
5-
6-
def read_file(file_name: str) -> str:
7-
with open(file_name) as f:
8-
content = f.read().strip()
9-
return content
10-
11-
12-
def lines_from_file(file_name: str) -> List[str]:
13-
with open(file_name) as f:
14-
lines = f.read().splitlines()
15-
return lines
16-
17-
18-
setup(
19-
name="cloudshell_sandboxapi_wrapper",
20-
description="Python client for CloudShell Sandbox REST api - consume sandboxes via CI",
21-
keywords=["cloudshell", "sandbox", "api", "rest", "CI"],
22-
url="https://github.com/QualiSystemsLab/Sandbox-API-Python",
23-
author="sadanand.s",
24-
author_email="sadanand.s@quali.com",
25-
license="Apache 2.0",
26-
packages=find_packages(),
27-
version=read_file("version.txt"),
28-
long_description=read_file("README.MD"),
29-
long_description_content_type="text/markdown",
30-
install_requires=lines_from_file("requirements.txt"),
31-
test_requires=lines_from_file("test-requirements.txt"),
32-
classifiers=[
33-
"License :: OSI Approved :: Apache Software License",
34-
"Natural Language :: English",
35-
"Programming Language :: Python :: 3.7",
36-
"Programming Language :: Python :: 3.8",
37-
],
38-
)
3+
if __name__ == "__main__":
4+
setup()
File renamed without changes.

tests/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import json
22

3-
from cloudshell.sandbox_rest.sandbox_api import SandboxRestApiSession
3+
from src.cloudshell.sandbox_rest.sandbox_api import SandboxRestApiSession
44

55

66
def pretty_print_response(dict_response):

0 commit comments

Comments
 (0)