fix console entry point

This commit is contained in:
Casper da Costa-Luis 2019-09-19 01:29:21 +00:00
parent 46135ce627
commit ed82bf38cb
No known key found for this signature in database
GPG Key ID: 986B408043AE090D
2 changed files with 4 additions and 4 deletions

View File

@ -53,7 +53,7 @@ setup(
packages=['tqdm'] + ['tqdm.' + i for i in find_packages('tqdm')],
provides=['tqdm'],
extras_require=extras_require,
entry_points={'console_scripts': ['tqdm=tqdm._main:main'], },
entry_points={'console_scripts': ['tqdm=tqdm.cli:main'], },
package_data={'tqdm': ['CONTRIBUTING.md', 'LICENCE', 'examples/*.py',
'tqdm.1', 'requirements-dev.txt']},
python_requires='>=2.6, !=3.0.*, !=3.1.*',

View File

@ -1,7 +1,7 @@
from .main import * # NOQA
from .main import __all__ # NOQA
from .cli import * # NOQA
from .cli import __all__ # NOQA
from .std import TqdmDeprecationWarning
from warnings import warn
warn("This function will be removed in tqdm==5.0.0\n"
"Please use `tqdm.main.*` instead of `tqdm._main.*`",
"Please use `tqdm.cli.*` instead of `tqdm._main.*`",
TqdmDeprecationWarning)