Skip to content

Commit

Permalink
Merge pull request #12 from jlsneto/dev
Browse files Browse the repository at this point in the history
Deploy: Fix cj_setup and update version
  • Loading branch information
jlsneto authored Jan 20, 2020
2 parents bd223ba + a0295f7 commit bf35d03
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion cereja/conf.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import sys
import logging

VERSION = "0.3.4"
VERSION = "0.3.5"

# using by utils.module_references
_explicit_exclude = ["console_logger", "cj_modules"]
Expand Down
12 changes: 6 additions & 6 deletions cj_setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from cereja.conf import install_if_not
from cereja.utils import install_if_not
import subprocess
import sys
import os
Expand All @@ -16,12 +16,12 @@
allow_update_version = False
if tests_case_result == 0:
res = input("Tests OK! Update version? s/N: ") or 'n'
if res.lower() not in ['s', 'n']:
if not res.lower() == 's':
if res.lower() in ['s', 'n']:
if res.lower() == 's':
allow_update_version = True
else:
logger.info("Ok Exiting...")
print("Ok Exiting...")
else:
allow_update_version = True

if tests_case_result == 0 and allow_update_version:
with open(conf_file, 'r') as f:
Expand Down Expand Up @@ -53,7 +53,7 @@
dist = os.path.join(base_dir, "dist")

res = input("Up version? s/N: ") or 'n'
if res.lower() not in ['s', 'n']:
if res.lower() in ['s', 'n']:
if res.lower() == 's':
subprocess.run([f"{sys.executable}", f"{setup_file}", "sdist", "bdist_wheel"])
subprocess.run([f"{sys.executable}", "-m", "twine", "upload", f"{dist}{os.path.sep}*"])
Expand Down

0 comments on commit bf35d03

Please sign in to comment.