Skip to content

Commit

Permalink
5.1.6 Release
Browse files Browse the repository at this point in the history
  • Loading branch information
kotazzz committed Jan 29, 2021
1 parent 1b6456e commit 841e189
Show file tree
Hide file tree
Showing 14 changed files with 37 additions and 22 deletions.
6 changes: 6 additions & 0 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
NewLifeUtils 5.1.6:
- Fix: LM - rea() print up (-------)
- Fix: batch install global option (-------)
- Fix: cstm fix (-------)
- Removal: batch uninstall global option (-------)
- Change: parse_args regex change (-------
)
NewLifeUtils 5.1.5:
- Fix: LM - rea() not working (-------)

Expand Down
2 changes: 1 addition & 1 deletion NewLifeUtils.egg-info/PKG-INFO
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: NewLifeUtils
Version: 5.1.5
Version: 5.1.6
Summary: View changelog.txt at https://raw.githubusercontent.com/NewLife1324/NewLifeUtils-Dev/main/CHANGELOG.txt
Home-page: https://github.com/NewLife1324/NewLifeUtils-Dev
Author: New Life
Expand Down
5 changes: 2 additions & 3 deletions NewLifeUtils/LoggerModule.py
Original file line number Diff line number Diff line change
Expand Up @@ -1062,7 +1062,6 @@ def to_format(pattern, args):


def out(text):

now = datetime.datetime.now()
if enable_file_fog:
if not file_exist("log"):
Expand Down Expand Up @@ -1099,7 +1098,7 @@ def out(text):
{"message": message, "tag": tag_check(tag, tip_default_tag)},
)
)
cstm = lambda pattern, text, args: out(to_format(pattern, **args))
cstm = lambda pattern, args: out(to_format(pattern, args))

rea = lambda message, tag="", completion=None: read(message, tag, completion)

Expand Down Expand Up @@ -1210,7 +1209,7 @@ def smart_input(text="", completes=None, end="\n"):
readed = input()

out(
MCC.up(2)
MCC.up()
+ ACC.RESET
+ MCC.ERASE_ALL_LINE
+ to_format(
Expand Down
6 changes: 4 additions & 2 deletions NewLifeUtils/StringUtilModule.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,12 @@ def parse_args(readed):
# [\"\'][a-zA-ZА-Яа-яЁё\d\s[\]{}()@\\\.:;,-]*[\"\']|[a-zA-ZA-ZА-Яа-яЁё\d\.[\]{}()@\\\.:;,-]+
# [\"][a-zA-ZА-Яа-яЁё\d\s[\]{}()@\\\.:;,\'-]*[\"]|[a-zA-ZA-ZА-Яа-яЁё\d\.[\]{}()@\\\.:;,\'-]+
# [\"][a-zA-ZА-Яа-яЁё\d\s[\]{}()@\\\.:;,\'-/]*[\"]|[a-zA-ZA-ZА-Яа-яЁё\d\.[\]{}()@\\\.:;,\'-/]+
# [\"][a-zA-ZА-Яа-яЁё\d\s[\]{}()@#_=%?\*\\\.:;,\'-/]*[\"]|[a-zA-ZA-ZА-Яа-яЁё\d\.[\]{}()@\\\.:;,\'-/]+ (NOW)
# [\"][a-zA-ZА-Яа-яЁё\d\s[\]{}()@#_=%?\*\\\.:;,\'-/]*[\"]|[a-zA-ZA-ZА-Яа-яЁё\d\.[\]{}()@\\\.:;,\'-/]+
# [\"][a-zA-ZA-ZА-Яа-яЁё\d.[\]{}()@\\:;,\'\-\/!?#$%^&*_+№\d]*[\"]|[a-zA-ZA-ZА-Яа-яЁё\d.[\]{}()@\\:;,\'\-\/!?#$%^&*_+№]+
# [\"][a-zA-ZA-ZА-Яа-яЁё\d.[\]{}()<>@\\:;,\'\-\/!?#$%^&*_+№\d]*[\"]|[a-zA-ZA-ZА-Яа-яЁё\d.[\]{}()@\\:;,\'\-\/!?#$%^&*_+№<>]+ (NOW)

res = re.findall(
r"[\"][a-zA-ZА-Яа-яЁё\d\s[\]{}()@#_=%?*\\.:;,\'-/]*[\"]|[a-zA-ZA-ZА-Яа-яЁё\d.[\]{}()@\\:;,\'-/]+",
r"[\"][a-zA-ZA-ZА-Яа-яЁё\d.[\]{}()<>@\\:;,\'\-\/!?#$%^&*_+№\d]*[\"]|[a-zA-ZA-ZА-Яа-яЁё\d.[\]{}()@\\:;,\'\-\/!?#$%^&*_+№<>]+",
readed,
re.MULTILINE,
)
Expand Down
2 changes: 1 addition & 1 deletion NewLifeUtils/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "5.1.5"
__version__ = "5.1.6"
Binary file modified NewLifeUtils/__pycache__/__init__.cpython-39.pyc
Binary file not shown.
5 changes: 2 additions & 3 deletions build/lib/NewLifeUtils/LoggerModule.py
Original file line number Diff line number Diff line change
Expand Up @@ -1062,7 +1062,6 @@ def to_format(pattern, args):


def out(text):

now = datetime.datetime.now()
if enable_file_fog:
if not file_exist("log"):
Expand Down Expand Up @@ -1099,7 +1098,7 @@ def out(text):
{"message": message, "tag": tag_check(tag, tip_default_tag)},
)
)
cstm = lambda pattern, text, args: out(to_format(pattern, **args))
cstm = lambda pattern, args: out(to_format(pattern, args))

rea = lambda message, tag="", completion=None: read(message, tag, completion)

Expand Down Expand Up @@ -1210,7 +1209,7 @@ def smart_input(text="", completes=None, end="\n"):
readed = input()

out(
MCC.up(2)
MCC.up()
+ ACC.RESET
+ MCC.ERASE_ALL_LINE
+ to_format(
Expand Down
6 changes: 4 additions & 2 deletions build/lib/NewLifeUtils/StringUtilModule.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,12 @@ def parse_args(readed):
# [\"\'][a-zA-ZА-Яа-яЁё\d\s[\]{}()@\\\.:;,-]*[\"\']|[a-zA-ZA-ZА-Яа-яЁё\d\.[\]{}()@\\\.:;,-]+
# [\"][a-zA-ZА-Яа-яЁё\d\s[\]{}()@\\\.:;,\'-]*[\"]|[a-zA-ZA-ZА-Яа-яЁё\d\.[\]{}()@\\\.:;,\'-]+
# [\"][a-zA-ZА-Яа-яЁё\d\s[\]{}()@\\\.:;,\'-/]*[\"]|[a-zA-ZA-ZА-Яа-яЁё\d\.[\]{}()@\\\.:;,\'-/]+
# [\"][a-zA-ZА-Яа-яЁё\d\s[\]{}()@#_=%?\*\\\.:;,\'-/]*[\"]|[a-zA-ZA-ZА-Яа-яЁё\d\.[\]{}()@\\\.:;,\'-/]+ (NOW)
# [\"][a-zA-ZА-Яа-яЁё\d\s[\]{}()@#_=%?\*\\\.:;,\'-/]*[\"]|[a-zA-ZA-ZА-Яа-яЁё\d\.[\]{}()@\\\.:;,\'-/]+
# [\"][a-zA-ZA-ZА-Яа-яЁё\d.[\]{}()@\\:;,\'\-\/!?#$%^&*_+№\d]*[\"]|[a-zA-ZA-ZА-Яа-яЁё\d.[\]{}()@\\:;,\'\-\/!?#$%^&*_+№]+
# [\"][a-zA-ZA-ZА-Яа-яЁё\d.[\]{}()<>@\\:;,\'\-\/!?#$%^&*_+№\d]*[\"]|[a-zA-ZA-ZА-Яа-яЁё\d.[\]{}()@\\:;,\'\-\/!?#$%^&*_+№<>]+ (NOW)

res = re.findall(
r"[\"][a-zA-ZА-Яа-яЁё\d\s[\]{}()@#_=%?*\\.:;,\'-/]*[\"]|[a-zA-ZA-ZА-Яа-яЁё\d.[\]{}()@\\:;,\'-/]+",
r"[\"][a-zA-ZA-ZА-Яа-яЁё\d.[\]{}()<>@\\:;,\'\-\/!?#$%^&*_+№\d]*[\"]|[a-zA-ZA-ZА-Яа-яЁё\d.[\]{}()@\\:;,\'\-\/!?#$%^&*_+№<>]+",
readed,
re.MULTILINE,
)
Expand Down
2 changes: 1 addition & 1 deletion build/lib/NewLifeUtils/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "5.1.5"
__version__ = "5.1.6"
Binary file added dist/NewLifeUtils-5.1.6-py3-none-any.whl
Binary file not shown.
Binary file added dist/NewLifeUtils-5.1.6-py3.9.egg
Binary file not shown.
Binary file added dist/NewLifeUtils-5.1.6.tar.gz
Binary file not shown.
18 changes: 9 additions & 9 deletions menu.bat
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ ECHO + 2 - Start compile for Tests + CTEST +
ECHO + 3 - Publish to real + PREAL +
ECHO + 4 - Publish to test + PTEST +
ECHO + 5 - Install to global + INGLB +
ECHO + 6 - Uninstall from global + UNGLB +
ECHO + - Uninstall from global + UNGLB +
ECHO + 7 - Install to env + INENV +
ECHO + 8 - Uninstall from env + UNENV +
ECHO + 9 - Run test from env + RTEST +
Expand All @@ -29,7 +29,6 @@ IF %M%==2 GOTO CTEST
IF %M%==3 GOTO PREAL
IF %M%==4 GOTO PTEST
IF %M%==5 GOTO INGLB
IF %M%==6 GOTO UNGLB
IF %M%==7 GOTO INENV
IF %M%==8 GOTO UNENV
IF %M%==9 GOTO RTEST
Expand All @@ -38,6 +37,11 @@ IF %M%==- GOTO INEWE
IF %M%=='' GOTO EOF
GOTO MENU
:CPIPY
ECHO STARTING CLEAR ----------------------
RD dist /s /q
RD build /s /q
RD "NewLifeUtils.egg-info" /s /q
ECHO FINISHING CLEAR ---------------------
python setup.py sdist bdist_wheel
GOTO MENU
:CTEST
Expand All @@ -50,16 +54,12 @@ GOTO MENU
twine upload --repository testpypi dist/*
GOTO MENU
:INGLB
pip uninstall newlifeutils --yes
ECHO FINISHING UNINSTALL -----------------
python setup.py install
GOTO MENU
:UNGLB
python setup.py uninstall
GOTO MENU
:INENV
env\Scripts\python setup.py install
GOTO MENU
:UNENV
env\Scripts\python setup.py uninstall
env\Scripts\python setup.py install --upgrade
GOTO MENU
:RTEST
env\Scripts\python test.py
Expand Down

0 comments on commit 841e189

Please sign in to comment.