-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Blacken code... add in modifyChildLoggersFunc
- Loading branch information
Showing
12 changed files
with
766 additions
and
342 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
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
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,36 +1,38 @@ | ||
''' | ||
""" | ||
Brief: | ||
Quick script to build this and upload it to pypi. | ||
Author(s): | ||
Charles Machalow | ||
''' | ||
""" | ||
|
||
import os | ||
import shutil | ||
import subprocess | ||
import sys | ||
|
||
THIS_FOLDER = os.path.realpath(os.path.dirname(__file__)) | ||
DIST_FOLDER = os.path.join(THIS_FOLDER, 'dist') | ||
DIST_FOLDER = os.path.join(THIS_FOLDER, "dist") | ||
|
||
|
||
def caller(c): | ||
print ('Calling: %s' % c) | ||
print("Calling: %s" % c) | ||
subprocess.call(c, shell=True) | ||
|
||
|
||
# delete dist folder | ||
try: | ||
shutil.rmtree(DIST_FOLDER) | ||
except: | ||
pass # doesn't exist | ||
pass # doesn't exist | ||
|
||
|
||
caller('\"%s\" -m pip install twine' % sys.executable) | ||
caller('"%s" -m pip install twine' % sys.executable) | ||
|
||
os.chdir(THIS_FOLDER) | ||
caller('\"%s\" setup.py sdist' % sys.executable) | ||
caller('"%s" setup.py sdist' % sys.executable) | ||
|
||
for file in os.listdir(DIST_FOLDER): | ||
if file.upper().endswith('.TAR.GZ'): | ||
if file.upper().endswith(".TAR.GZ"): | ||
break | ||
|
||
caller('\"%s\" -m twine upload \"dist/%s\" -r pypi' % (sys.executable, file)) | ||
caller('"%s" -m twine upload "dist/%s" -r pypi' % (sys.executable, file)) |
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
Oops, something went wrong.