-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
57 lines (51 loc) · 1.78 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
import sys
from distutils.core import setup
VERSI_PYTHON_SAAT_INI = sys.version_info[:2]
VERSI_PYTHON_YANG_DIPERLUKAN =(3, 7)
if VERSI_PYTHON_SAAT_INI < VERSI_PYTHON_YANG_DIPERLUKAN:
sys.stderr.write(
"""
============================
Versi Python Tidak Di Dukung
============================
Versi Python yang di perlukan untuk menginstall fbthon adalah {}.{}+
Tapi seperti nya kakak mencoba menginstall fbthon menggunakan python versi {}.{}.
Untuk mengatasi masalah ini, kakak bisa coba upgrade versi python yang sedang kakak gunakan :)
""".format(*(VERSI_PYTHON_YANG_DIPERLUKAN + VERSI_PYTHON_SAAT_INI))
)
sys.exit(1)
with open('README.md','r',encoding = 'utf-8') as doc:
readme = doc.read()
setup(
name = 'fbthon',
packages = ['fbthon'],
version = '0.0.2',
license='MIT',
description = 'Simple Facebook scraper',
long_description=readme,
long_description_content_type="text/markdown",
author = 'Rahmat adha',
author_email = 'rahmadadha11@gmail.com',
url = 'https://github.com/MR-X-Junior/fbthon',
keywords = ['facebook-scraper', 'facebook-parser', 'facebook-scraper-without-apikey'],
python_requires=">=3.7",
install_requires=[
'requests_toolbelt',
'requests',
'bs4',
],
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Topic :: Software Development :: Build Tools',
'License :: OSI Approved :: MIT License',
'Natural Language :: Indonesian',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3 :: Only'
],
)