Skip to content

Commit

Permalink
fix: update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
en9inerd committed Apr 26, 2024
1 parent 42a4684 commit f71b6f8
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 52 deletions.
1 change: 0 additions & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ pylint = "*"
pynt = "*"
pynt-contrib = "*"
pytest = "*"
python-semantic-release = "*"
checksumdir = "*"
vulture = "*"

Expand Down
79 changes: 34 additions & 45 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,64 +1,53 @@
-i https://pypi.org/simple
annotated-types==0.6.0; python_version >= '3.8'
astroid==3.0.1; python_full_version >= '3.8.0'
black==23.11.0; python_version >= '3.8'
certifi==2023.7.22; python_version >= '3.6'
astroid==3.1.0; python_full_version >= '3.8.0'
backports.tarfile==1.1.1; python_version < '3.12'
black==24.4.2; python_version >= '3.8'
certifi==2024.2.2; python_version >= '3.6'
charset-normalizer==3.3.2; python_full_version >= '3.7.0'
checksumdir==1.2.0; python_version >= '3.6' and python_version < '4.0'
click==8.1.7; python_version >= '3.7'
detect-secrets==1.4.0
dill==0.3.7; python_version >= '3.11'
docutils==0.20.1; python_version >= '3.7'
dotty-dict==1.3.1; python_version >= '3.5' and python_version < '4.0'
gitdb==4.0.11; python_version >= '3.7'
gitpython==3.1.40; python_version >= '3.7'
idna==3.4; python_version >= '3.5'
importlib-metadata==6.8.0; python_version >= '3.8'
importlib-resources==6.1.1; python_version >= '3.8'
dill==0.3.8; python_version >= '3.11'
docutils==0.21.2; python_version >= '3.9'
idna==3.7; python_version >= '3.5'
importlib-metadata==7.1.0; python_version >= '3.8'
iniconfig==2.0.0; python_version >= '3.7'
isort==5.12.0; python_full_version >= '3.8.0'
jaraco.classes==3.3.0; python_version >= '3.8'
jinja2==3.1.2; python_version >= '3.7'
keyring==24.2.0; python_version >= '3.8'
isort==5.13.2; python_full_version >= '3.8.0'
jaraco.classes==3.4.0; python_version >= '3.8'
jaraco.context==5.3.0; python_version >= '3.8'
jaraco.functools==4.0.1; python_version >= '3.8'
keyring==25.1.0; python_version >= '3.8'
markdown-it-py==3.0.0; python_version >= '3.8'
markupsafe==2.1.3; python_version >= '3.7'
mccabe==0.7.0; python_version >= '3.6'
mdurl==0.1.2; python_version >= '3.7'
more-itertools==10.1.0; python_version >= '3.8'
mypy==1.6.1; python_version >= '3.8'
more-itertools==10.2.0; python_version >= '3.8'
mypy==1.10.0; python_version >= '3.8'
mypy-extensions==1.0.0; python_version >= '3.5'
nh3==0.2.14
packaging==23.2; python_version >= '3.7'
pathspec==0.11.2; python_version >= '3.7'
pkginfo==1.9.6; python_version >= '3.6'
platformdirs==3.11.0; python_version >= '3.7'
pluggy==1.3.0; python_version >= '3.8'
pydantic==2.5.0b1; python_version >= '3.7'
pydantic-core==2.14.1; python_version >= '3.7'
pygments==2.16.1; python_version >= '3.7'
pylint==3.0.2; python_full_version >= '3.8.0'
nh3==0.2.17
packaging==24.0; python_version >= '3.7'
pathspec==0.12.1; python_version >= '3.8'
pkginfo==1.10.0; python_version >= '3.6'
platformdirs==4.2.1; python_version >= '3.8'
pluggy==1.5.0; python_version >= '3.8'
pygments==2.17.2; python_version >= '3.7'
pylint==3.1.0; python_full_version >= '3.8.0'
pynt==0.8.2
pynt-contrib==0.2.0
pytest==7.4.3; python_version >= '3.7'
python-gitlab==3.15.0; python_full_version >= '3.7.0'
python-semantic-release==8.3.0; python_version >= '3.7'
pytest==8.1.1; python_version >= '3.8'
pyyaml==6.0.1; python_version >= '3.6'
readme-renderer==42.0; python_version >= '3.8'
readme-renderer==43.0; python_version >= '3.8'
requests==2.31.0; python_version >= '3.7'
requests-toolbelt==1.0.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
rfc3986==2.0.0; python_version >= '3.7'
rich==13.6.0; python_full_version >= '3.7.0'
shellingham==1.5.4; python_version >= '3.7'
smmap==5.0.1; python_version >= '3.7'
toml==0.10.2; python_version >= '2.6' and python_version not in '3.0, 3.1, 3.2'
tomlkit==0.12.2; python_version >= '3.7'
twine==4.0.2; python_version >= '3.7'
typing-extensions==4.8.0; python_version >= '3.8'
urllib3==2.0.7; python_version >= '3.7'
vulture==2.10; python_version >= '3.8'
zipp==3.17.0; python_version >= '3.8'
rich==13.7.1; python_full_version >= '3.7.0'
tomlkit==0.12.4; python_version >= '3.7'
twine==5.0.0; python_version >= '3.8'
typing-extensions==4.11.0; python_version >= '3.8'
urllib3==2.2.1; python_version >= '3.8'
vulture==2.11; python_version >= '3.8'
zipp==3.18.1; python_version >= '3.8'
docopt==0.6.2
pyaes==1.6.1
pyasn1==0.5.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4, 3.5'
pyasn1==0.6.0; python_version >= '3.8'
rsa==4.9; python_version >= '3.6' and python_version < '4'
telethon==1.32.0; python_version >= '3.5'
telethon==1.35.0; python_version >= '3.5'
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
-i https://pypi.org/simple
docopt==0.6.2
pyaes==1.6.1
pyasn1==0.5.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4, 3.5'
pyasn1==0.6.0; python_version >= '3.8'
rsa==4.9; python_version >= '3.6' and python_version < '4'
telethon==1.32.0; python_version >= '3.5'
telethon==1.35.0; python_version >= '3.5'
3 changes: 1 addition & 2 deletions tgeraser/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
Code so python -m will executed
"""

import asyncio
from . import core

if __name__ == "__main__":
asyncio.run(core.main())
core.entry()
11 changes: 9 additions & 2 deletions tgeraser/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,19 @@
from .utils import cast_to_int, get_credentials


def signal_handler():
print("\nCtrl+C captured, exiting...")
sys.stdout.flush()
os._exit(0)


async def main() -> None:
"""
Entry function
"""
loop = asyncio.get_running_loop()
loop.add_signal_handler(signal.SIGINT, signal_handler)

arguments = docopt(__doc__, version=VERSION)
if arguments["--limit"]:
arguments["--limit"] = cast_to_int(arguments["--limit"], "limit")
Expand Down Expand Up @@ -97,8 +106,6 @@ async def main() -> None:
else:
break
await client.disconnect()
except asyncio.CancelledError as err:
print("\n\nCancelled by user.\n", file=sys.stderr)
except Exception as err:
raise TgEraserException(err) from err

Expand Down

0 comments on commit f71b6f8

Please sign in to comment.