Have setuptools setup.py for serious distribution

This is a) cooler and b) a requirement for deploying it on PyPI.

It removes need of __all__ shit (which is hard to keep updated), and
allows installing instaloader easily as a global module and executable.
Additionally it removes __init__.py.
This commit is contained in:
Alexander Graf
2016-09-18 14:38:58 +02:00
parent 70c91e000e
commit c2957e389f
5 changed files with 65 additions and 28 deletions

30
setup.py Executable file
View File

@@ -0,0 +1,30 @@
#!/usr/bin/env python3
from setuptools import setup
setup(
name='instaloader',
version='1.0.1',
py_modules=['instaloader'],
url='https://github.com/Thammus/instaloader',
license='MIT',
author='Alexander Graf, André Koch-Kramer',
author_email='mail@agraf.me, koch-kramer@web.de',
description='Download pictures and captions from Instagram',
install_requires=['requests>=2.4'],
python_requires='>=3.3',
entry_points={'console_scripts': ['instaloader=instaloader:main']},
zip_safe=True,
keywords='instagram downloader',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6'
'Topic :: Internet'
]
)