2016-09-18 14:38:58 +02:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
|
2017-08-11 17:50:37 +02:00
|
|
|
import re
|
2016-09-18 17:43:57 +02:00
|
|
|
import sys
|
2017-08-11 20:34:47 +02:00
|
|
|
import os
|
2016-09-18 14:38:58 +02:00
|
|
|
from setuptools import setup
|
|
|
|
|
2017-08-11 17:50:37 +02:00
|
|
|
|
2017-08-11 20:34:47 +02:00
|
|
|
SRC = os.path.abspath(os.path.dirname(__file__))
|
|
|
|
|
|
|
|
|
2017-08-11 17:50:37 +02:00
|
|
|
def get_version():
|
2018-04-05 13:03:46 +02:00
|
|
|
with open(os.path.join(SRC, 'instaloader/__init__.py')) as f:
|
2017-08-11 17:50:37 +02:00
|
|
|
for line in f:
|
|
|
|
m = re.match("__version__ = '(.*)'", line)
|
|
|
|
if m:
|
|
|
|
return m.group(1)
|
|
|
|
raise SystemExit("Could not find version string.")
|
|
|
|
|
|
|
|
|
2023-03-30 18:35:42 +02:00
|
|
|
if sys.version_info < (3, 8):
|
|
|
|
sys.exit('Instaloader requires Python >= 3.8.')
|
2016-09-18 17:43:57 +02:00
|
|
|
|
2017-08-24 15:40:41 +02:00
|
|
|
requirements = ['requests>=2.4']
|
|
|
|
|
2017-08-24 15:54:07 +02:00
|
|
|
keywords = (['instagram', 'instagram-scraper', 'instagram-client', 'instagram-feed', 'downloader', 'videos', 'photos',
|
|
|
|
'pictures', 'instagram-user-photos', 'instagram-photos', 'instagram-metadata', 'instagram-downloader',
|
|
|
|
'instagram-stories'])
|
|
|
|
|
2017-08-26 12:42:04 +02:00
|
|
|
# NOTE that many of the values defined in this file are duplicated on other places, such as the
|
|
|
|
# documentation.
|
|
|
|
|
2016-09-18 14:38:58 +02:00
|
|
|
setup(
|
|
|
|
name='instaloader',
|
2017-08-11 17:50:37 +02:00
|
|
|
version=get_version(),
|
2018-04-05 13:03:46 +02:00
|
|
|
packages=['instaloader'],
|
2020-11-19 10:32:46 +01:00
|
|
|
package_data={'instaloader': ['py.typed']},
|
2018-03-13 15:11:36 +01:00
|
|
|
url='https://instaloader.github.io/',
|
2016-09-18 14:38:58 +02:00
|
|
|
license='MIT',
|
|
|
|
author='Alexander Graf, André Koch-Kramer',
|
|
|
|
author_email='mail@agraf.me, koch-kramer@web.de',
|
2017-07-26 14:43:08 +02:00
|
|
|
description='Download pictures (or videos) along with their captions and other metadata '
|
|
|
|
'from Instagram.',
|
2017-08-11 20:34:47 +02:00
|
|
|
long_description=open(os.path.join(SRC, 'README.rst')).read(),
|
2017-08-24 15:40:41 +02:00
|
|
|
install_requires=requirements,
|
2023-03-30 18:35:42 +02:00
|
|
|
python_requires='>=3.8',
|
2018-04-05 13:03:46 +02:00
|
|
|
entry_points={'console_scripts': ['instaloader=instaloader.__main__:main']},
|
2020-11-19 10:32:46 +01:00
|
|
|
zip_safe=False,
|
2017-08-24 15:54:07 +02:00
|
|
|
keywords=keywords,
|
2016-09-18 14:38:58 +02:00
|
|
|
classifiers=[
|
|
|
|
'Development Status :: 5 - Production/Stable',
|
|
|
|
'Environment :: Console',
|
2016-09-19 19:26:59 +02:00
|
|
|
'Intended Audience :: End Users/Desktop',
|
2018-04-28 21:45:57 +02:00
|
|
|
'Intended Audience :: Developers',
|
2016-09-18 14:38:58 +02:00
|
|
|
'License :: OSI Approved :: MIT License',
|
|
|
|
'Operating System :: OS Independent',
|
2019-05-27 18:08:17 +02:00
|
|
|
'Programming Language :: Python :: 3.8',
|
2021-03-20 17:17:50 +01:00
|
|
|
'Programming Language :: Python :: 3.9',
|
2023-03-30 18:35:42 +02:00
|
|
|
'Programming Language :: Python :: 3.10',
|
|
|
|
'Programming Language :: Python :: 3.11',
|
2016-09-19 19:26:59 +02:00
|
|
|
'Programming Language :: Python :: 3 :: Only',
|
|
|
|
'Topic :: Internet',
|
|
|
|
'Topic :: Multimedia :: Graphics'
|
2016-09-18 14:38:58 +02:00
|
|
|
]
|
|
|
|
)
|