2013-10-26 19:59:26 +00:00
|
|
|
#!/usr/bin/env python
|
2015-01-24 13:23:14 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
2015-10-11 16:55:34 +00:00
|
|
|
import os
|
2016-04-03 20:18:49 +00:00
|
|
|
try:
|
2018-07-31 08:46:41 +00:00
|
|
|
from setuptools import setup, find_packages
|
2016-04-03 20:18:49 +00:00
|
|
|
except ImportError:
|
|
|
|
from distutils.core import setup
|
2018-07-31 08:46:41 +00:00
|
|
|
|
|
|
|
def find_packages(where='.'):
|
|
|
|
# os.walk -> list[(dirname, list[subdirs], list[files])]
|
|
|
|
return [folder.replace("/", ".").lstrip(".")
|
|
|
|
for (folder, _, fils) in os.walk(where)
|
|
|
|
if "__init__.py" in fils]
|
2015-11-01 16:01:18 +00:00
|
|
|
import sys
|
2016-10-31 02:19:29 +00:00
|
|
|
from io import open as io_open
|
2016-06-05 14:50:29 +00:00
|
|
|
|
2018-01-29 00:47:30 +00:00
|
|
|
# Get version from tqdm/_version.py
|
|
|
|
__version__ = None
|
2018-07-31 08:46:41 +00:00
|
|
|
src_dir = os.path.abspath(os.path.dirname(__file__))
|
|
|
|
version_file = os.path.join(src_dir, 'tqdm', '_version.py')
|
2018-01-29 00:47:30 +00:00
|
|
|
with io_open(version_file, mode='r') as fd:
|
|
|
|
exec(fd.read())
|
2015-10-15 13:47:02 +00:00
|
|
|
|
|
|
|
# Executing makefile commands if specified
|
2015-10-15 20:36:45 +00:00
|
|
|
if sys.argv[1].lower().strip() == 'make':
|
2019-01-21 00:01:17 +00:00
|
|
|
import pymake
|
2015-10-15 20:36:45 +00:00
|
|
|
# Filename of the makefile
|
2018-07-31 08:46:41 +00:00
|
|
|
fpath = os.path.join(src_dir, 'Makefile')
|
2019-01-21 00:01:17 +00:00
|
|
|
pymake.main(['-f', fpath] + sys.argv[2:])
|
2019-01-19 23:38:47 +00:00
|
|
|
# Stop to avoid setup.py raising non-standard command error
|
2015-11-01 16:01:18 +00:00
|
|
|
sys.exit(0)
|
|
|
|
|
2019-01-21 00:01:17 +00:00
|
|
|
extras_require = {}
|
|
|
|
requirements_dev = os.path.join(src_dir, 'requirements-dev.txt')
|
|
|
|
with io_open(requirements_dev, mode='r') as fd:
|
|
|
|
extras_require['dev'] = [i.strip().split('#', 1)[0].strip()
|
|
|
|
for i in fd.read().strip().split('\n')]
|
|
|
|
|
2015-11-01 16:01:18 +00:00
|
|
|
README_rst = ''
|
2018-07-31 08:46:41 +00:00
|
|
|
fndoc = os.path.join(src_dir, 'README.rst')
|
2016-12-31 08:36:57 +00:00
|
|
|
with io_open(fndoc, mode='r', encoding='utf-8') as fd:
|
2015-11-01 16:01:18 +00:00
|
|
|
README_rst = fd.read()
|
2015-04-16 23:01:18 +00:00
|
|
|
setup(
|
|
|
|
name='tqdm',
|
2015-10-11 10:18:26 +00:00
|
|
|
version=__version__,
|
2016-12-31 08:36:57 +00:00
|
|
|
description='Fast, Extensible Progress Meter',
|
2019-01-21 00:01:17 +00:00
|
|
|
long_description=README_rst,
|
2016-12-31 08:36:57 +00:00
|
|
|
license='MPLv2.0, MIT Licences',
|
2015-06-06 13:35:28 +00:00
|
|
|
url='https://github.com/tqdm/tqdm',
|
2015-10-11 13:01:59 +00:00
|
|
|
maintainer='tqdm developers',
|
|
|
|
maintainer_email='python.tqdm@gmail.com',
|
2015-11-01 16:01:18 +00:00
|
|
|
platforms=['any'],
|
2018-07-31 08:46:41 +00:00
|
|
|
packages=['tqdm'] + ['tqdm.' + i for i in find_packages('tqdm')],
|
2019-01-21 00:01:17 +00:00
|
|
|
provides=['tqdm'],
|
|
|
|
extras_require=extras_require,
|
2016-04-03 20:53:00 +00:00
|
|
|
entry_points={'console_scripts': ['tqdm=tqdm._main:main'], },
|
2018-10-20 21:07:25 +00:00
|
|
|
package_data={'tqdm': ['CONTRIBUTING.md', 'LICENCE', 'examples/*.py',
|
2019-01-21 00:01:17 +00:00
|
|
|
'tqdm.1', 'requirements-dev.txt']},
|
2018-05-21 14:34:20 +00:00
|
|
|
python_requires='>=2.6, !=3.0.*, !=3.1.*',
|
2015-11-01 16:01:18 +00:00
|
|
|
classifiers=[
|
|
|
|
# Trove classifiers
|
2018-08-17 20:54:53 +00:00
|
|
|
# (https://pypi.org/pypi?%3Aaction=list_classifiers)
|
2015-04-16 23:01:18 +00:00
|
|
|
'Development Status :: 5 - Production/Stable',
|
2015-10-11 10:42:07 +00:00
|
|
|
'Environment :: Console',
|
2018-01-29 00:47:30 +00:00
|
|
|
'Environment :: MacOS X',
|
|
|
|
'Environment :: Other Environment',
|
|
|
|
'Environment :: Win32 (MS Windows)',
|
|
|
|
'Environment :: X11 Applications',
|
2015-10-11 10:42:07 +00:00
|
|
|
'Framework :: IPython',
|
2019-05-20 17:02:58 +00:00
|
|
|
'Framework :: Jupyter',
|
2018-01-29 00:47:30 +00:00
|
|
|
'Intended Audience :: Developers',
|
|
|
|
'Intended Audience :: Education',
|
|
|
|
'Intended Audience :: End Users/Desktop',
|
|
|
|
'Intended Audience :: Other Audience',
|
|
|
|
'Intended Audience :: System Administrators',
|
|
|
|
'License :: OSI Approved :: MIT License',
|
|
|
|
'License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)',
|
2019-05-20 17:02:58 +00:00
|
|
|
'Operating System :: MacOS',
|
2015-10-11 10:42:07 +00:00
|
|
|
'Operating System :: MacOS :: MacOS X',
|
2019-05-20 17:02:58 +00:00
|
|
|
'Operating System :: Microsoft',
|
|
|
|
'Operating System :: Microsoft :: MS-DOS',
|
2018-01-29 00:47:30 +00:00
|
|
|
'Operating System :: Microsoft :: Windows',
|
2015-12-29 15:37:02 +00:00
|
|
|
'Operating System :: POSIX',
|
|
|
|
'Operating System :: POSIX :: BSD',
|
|
|
|
'Operating System :: POSIX :: BSD :: FreeBSD',
|
2018-01-29 00:47:30 +00:00
|
|
|
'Operating System :: POSIX :: Linux',
|
2015-12-29 15:37:02 +00:00
|
|
|
'Operating System :: POSIX :: SunOS/Solaris',
|
2019-05-20 17:02:58 +00:00
|
|
|
'Operating System :: Unix',
|
2015-10-11 10:42:07 +00:00
|
|
|
'Programming Language :: Python',
|
2015-04-16 23:01:18 +00:00
|
|
|
'Programming Language :: Python :: 2',
|
|
|
|
'Programming Language :: Python :: 2.6',
|
|
|
|
'Programming Language :: Python :: 2.7',
|
|
|
|
'Programming Language :: Python :: 3',
|
|
|
|
'Programming Language :: Python :: 3.2',
|
|
|
|
'Programming Language :: Python :: 3.3',
|
|
|
|
'Programming Language :: Python :: 3.4',
|
2016-01-13 11:00:28 +00:00
|
|
|
'Programming Language :: Python :: 3.5',
|
2017-01-16 09:48:29 +00:00
|
|
|
'Programming Language :: Python :: 3.6',
|
2018-01-29 00:47:30 +00:00
|
|
|
'Programming Language :: Python :: 3.7',
|
|
|
|
'Programming Language :: Python :: Implementation',
|
2016-01-13 11:00:28 +00:00
|
|
|
'Programming Language :: Python :: Implementation :: IronPython',
|
2018-01-29 00:47:30 +00:00
|
|
|
'Programming Language :: Python :: Implementation :: PyPy',
|
2019-05-20 17:02:58 +00:00
|
|
|
'Programming Language :: Unix Shell',
|
2018-01-29 00:47:30 +00:00
|
|
|
'Topic :: Desktop Environment',
|
2019-01-21 00:01:17 +00:00
|
|
|
'Topic :: Education :: Computer Aided Instruction (CAI)',
|
2018-01-29 00:47:30 +00:00
|
|
|
'Topic :: Education :: Testing',
|
|
|
|
'Topic :: Office/Business',
|
|
|
|
'Topic :: Other/Nonlisted Topic',
|
2019-01-21 00:01:17 +00:00
|
|
|
'Topic :: Software Development :: Build Tools',
|
2015-04-16 23:01:18 +00:00
|
|
|
'Topic :: Software Development :: Libraries',
|
2015-10-11 10:18:26 +00:00
|
|
|
'Topic :: Software Development :: Libraries :: Python Modules',
|
2019-01-21 00:01:17 +00:00
|
|
|
'Topic :: Software Development :: Pre-processors',
|
2015-10-11 10:18:26 +00:00
|
|
|
'Topic :: Software Development :: User Interfaces',
|
2019-01-21 00:01:17 +00:00
|
|
|
'Topic :: System :: Installation/Setup',
|
2018-01-29 00:47:30 +00:00
|
|
|
'Topic :: System :: Logging',
|
2015-10-11 10:18:26 +00:00
|
|
|
'Topic :: System :: Monitoring',
|
2018-01-29 00:47:30 +00:00
|
|
|
'Topic :: System :: Shells',
|
2015-10-11 10:18:26 +00:00
|
|
|
'Topic :: Terminals',
|
2018-01-29 00:47:30 +00:00
|
|
|
'Topic :: Utilities'
|
2015-04-16 23:01:18 +00:00
|
|
|
],
|
2015-11-01 16:01:18 +00:00
|
|
|
keywords='progressbar progressmeter progress bar meter'
|
|
|
|
' rate eta console terminal time',
|
2015-10-13 20:49:20 +00:00
|
|
|
test_suite='nose.collector',
|
|
|
|
tests_require=['nose', 'flake8', 'coverage'],
|
2015-04-16 23:01:18 +00:00
|
|
|
)
|