Skip to content

Commit

Permalink
v0.2.23
Browse files Browse the repository at this point in the history
  • Loading branch information
ashutshkumr committed Apr 20, 2023
1 parent 6a8dcd4 commit 39cc9dd
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
8 changes: 6 additions & 2 deletions do.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,18 +143,22 @@ def init(use_sdk=None):
base_dir = os.path.dirname(os.path.abspath(__file__))
if use_sdk is None:
req = os.path.join(base_dir, "openapiart", "requirements.txt")
test_req = os.path.join(
base_dir, "openapiart", "test_requirements.txt"
)
run(
[
py() + " -m pip install -r {}".format(req),
py() + " -m pip install -r test_requirements.txt",
py() + " -m pip install -r {}".format(test_req),
]
)
else:
art_path = os.path.join(base_dir, "art", "requirements.txt")
art_test = os.path.join(base_dir, "art", "test_requirements.txt")
run(
[
py() + " -m pip install -r {}".format(art_path),
py() + " -m pip install -r test_requirements.txt",
py() + " -m pip install -r {}".format(art_test),
]
)

Expand Down
4 changes: 1 addition & 3 deletions openapiart/requirements.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,7 @@ def generate_requirements(path, file_name=None):
new_pkgs = fh.read().splitlines()
new_pkgs = list(set(new_pkgs) - set(not_required_pkgs))

with open(
os.path.join(os.path.dirname(base_dir), "test_requirements.txt"), "r"
) as fh:
with open(os.path.join(base_dir, "test_requirements.txt"), "r") as fh:
test_pkgs = fh.read().splitlines()
test_pkgs = list(set(test_pkgs) - set(not_required_pkgs))

Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
import setuptools

pkg_name = "openapiart"
version = "0.2.22"
version = "0.2.23"

base_dir = os.path.dirname(os.path.abspath(__file__))
with open(os.path.join(base_dir, "README.md")) as fid:
long_description = fid.read()

requirements_path = os.path.join(base_dir, "openapiart", "requirements.txt")
test_req_path = os.path.join(base_dir, "test_requirements.txt")
test_req_path = os.path.join(base_dir, "openapiart", "test_requirements.txt")
installation_requires = []
test_requires = []
if os.path.exists(requirements_path) is False:
Expand All @@ -22,7 +22,7 @@
if "--prefer-binary" in installation_requires:
installation_requires.remove("--prefer-binary")
if os.path.exists(test_req_path):
with open("test_requirements.txt") as f:
with open(test_req_path) as f:
test_requires = f.read().splitlines()

setuptools.setup(
Expand Down

0 comments on commit 39cc9dd

Please sign in to comment.