mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-22 09:26:37 +03:00
Somewhat improve packaging situation (#1605)
This commit is contained in:
parent
e7f174cdc8
commit
4ce2c0017a
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -12,6 +12,7 @@
|
||||||
# Builds and testing
|
# Builds and testing
|
||||||
__pycache__/
|
__pycache__/
|
||||||
/dist/
|
/dist/
|
||||||
|
/build/
|
||||||
/*.egg-info/
|
/*.egg-info/
|
||||||
/readthedocs/_build/
|
/readthedocs/_build/
|
||||||
/.tox/
|
/.tox/
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
include LICENSE
|
|
||||||
include README.rst
|
|
||||||
|
|
||||||
recursive-include telethon *
|
|
14
setup.py
14
setup.py
|
@ -165,8 +165,14 @@ def main(argv):
|
||||||
print('Packaging for PyPi aborted, importing the module failed.')
|
print('Packaging for PyPi aborted, importing the module failed.')
|
||||||
return
|
return
|
||||||
|
|
||||||
for x in ('build', 'dist', 'Telethon.egg-info'):
|
remove_dirs = ['__pycache__', 'build', 'dist', 'Telethon.egg-info']
|
||||||
|
for root, _dirs, _files in os.walk(LIBRARY_DIR, topdown=False):
|
||||||
|
# setuptools is including __pycache__ for some reason (#1605)
|
||||||
|
if root.endswith('/__pycache__'):
|
||||||
|
remove_dirs.append(root)
|
||||||
|
for x in remove_dirs:
|
||||||
shutil.rmtree(x, ignore_errors=True)
|
shutil.rmtree(x, ignore_errors=True)
|
||||||
|
|
||||||
run('python3 setup.py sdist', shell=True)
|
run('python3 setup.py sdist', shell=True)
|
||||||
run('python3 setup.py bdist_wheel', shell=True)
|
run('python3 setup.py bdist_wheel', shell=True)
|
||||||
run('twine upload dist/*', shell=True)
|
run('twine upload dist/*', shell=True)
|
||||||
|
@ -218,11 +224,13 @@ def main(argv):
|
||||||
|
|
||||||
'Programming Language :: Python :: 3',
|
'Programming Language :: Python :: 3',
|
||||||
'Programming Language :: Python :: 3.5',
|
'Programming Language :: Python :: 3.5',
|
||||||
'Programming Language :: Python :: 3.6'
|
'Programming Language :: Python :: 3.6',
|
||||||
|
'Programming Language :: Python :: 3.7',
|
||||||
|
'Programming Language :: Python :: 3.8',
|
||||||
],
|
],
|
||||||
keywords='telegram api chat client library messaging mtproto',
|
keywords='telegram api chat client library messaging mtproto',
|
||||||
packages=find_packages(exclude=[
|
packages=find_packages(exclude=[
|
||||||
'telethon_*', 'run_tests.py', 'try_telethon.py'
|
'telethon_*', 'tests'
|
||||||
]),
|
]),
|
||||||
install_requires=['pyaes', 'rsa'],
|
install_requires=['pyaes', 'rsa'],
|
||||||
extras_require={
|
extras_require={
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
# Versions should comply with PEP440.
|
# Versions should comply with PEP440.
|
||||||
# This line is parsed in setup.py:
|
# This line is parsed in setup.py:
|
||||||
__version__ = '1.17.4'
|
__version__ = '1.17.5'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user