Skip to content

Commit

Permalink
no message
Browse files Browse the repository at this point in the history
  • Loading branch information
LAPTOP-7V78BBO2\ydf19 committed Dec 23, 2021
1 parent 492f4d7 commit 5193ce2
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 3 deletions.
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@

setup(
name='nb_log', #
version="6.4",
version="6.5",
description=(
'very sharp color display,monkey patch bulitin print and high-performance multiprocess safe roating file handler,other handlers includeing dintalk ,email,kafka,elastic and so on '
),
keywords=("logging", "logger", "multiprocess file handler", "color handler"),
keywords=["logging", "logger", "multiprocess file handler", "color handler"],
# long_description=open('README.md', 'r',encoding='utf8').read(),
long_description_content_type="text/markdown",
long_description=open(filepath, 'r', encoding='utf8').read(),
Expand Down Expand Up @@ -65,7 +65,7 @@
python setup.py sdist & twine upload dist/nb_log-6.0.tar.gz
python setup.py sdist & python -m twine upload dist/nb_log-6.4.tar.gz
python setup.py sdist ; python -m twine upload dist/nb_log-6.5.tar.gz
twine upload dist/*
Expand Down
48 changes: 48 additions & 0 deletions tests/git_nb_log_github.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
import subprocess

import time

def getstatusoutput(cmd):
try:
data = subprocess.check_output(cmd, shell=True, universal_newlines=True,
stderr=subprocess.STDOUT, encoding='utf8') # 必須設置為utf8, 不然报错了。
exitcode = 0
except subprocess.CalledProcessError as ex:
data = ex.output
exitcode = ex.returncode
if data[-1:] == '\n':
data = data[:-1]
return exitcode, data

def do_cmd(cmd_strx):
print(f'执行 {cmd_strx}')
retx = getstatusoutput(cmd_strx)
print(retx[0])
# if retx[0] !=0:
# raise ValueError('要检查git提交')
print(retx[1], '\n')
return retx

t0 = time.time()

do_cmd('git pull')

do_cmd('git diff')

do_cmd('git add ../.')

do_cmd('git commit -m commit')



do_cmd('git push github')

# print(subprocess.getstatusoutput('git push github'))
print(f'spend_time {time.time() - t0}')
time.sleep(100000)






0 comments on commit 5193ce2

Please sign in to comment.