Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
taux1c
GitHub Repository: taux1c/onlyfans-scraper
Path: blob/main/setup.py
801 views
1
r"""
2
_ __
3
___ _ __ | | _ _ / _| __ _ _ __ ___ ___ ___ _ __ __ _ _ __ ___ _ __
4
/ _ \ | '_ \ | || | | || |_ / _` || '_ \ / __| _____ / __| / __|| '__| / _` || '_ \ / _ \| '__|
5
| (_) || | | || || |_| || _|| (_| || | | |\__ \|_____|\__ \| (__ | | | (_| || |_) || __/| |
6
\___/ |_| |_||_| \__, ||_| \__,_||_| |_||___/ |___/ \___||_| \__,_|| .__/ \___||_|
7
|___/ |_|
8
"""
9
10
import os
11
import platform
12
import setuptools
13
14
with open('README.md', 'r', encoding='utf-8') as f:
15
long_description = f.read()
16
17
classifiers = [
18
'Development Status :: 5 - Production/Stable',
19
'Programming Language :: Python :: 3.8',
20
'Programming Language :: Python :: 3.9',
21
'License :: OSI Approved :: MIT License',
22
'Operating System :: OS Independent',
23
]
24
25
main = os.path.abspath(os.path.dirname(__file__))
26
27
with open(os.path.join(main, 'requirements.txt'), 'r', encoding='utf-8') as f:
28
requirements = f.read().splitlines()
29
if platform.system() != 'Windows':
30
# List of requirements that aren't needed for linux
31
remove = ['win32_setctime']
32
for requirement in requirements:
33
requirements.remove(requirement)
34
35
36
about = {}
37
with open(os.path.join(main, 'onlyfans_scraper', '__version__.py'), 'r', encoding='utf-8') as f:
38
exec(f.read(), about)
39
40
setuptools.setup(
41
name=about['__title__'],
42
version=about['__version__'],
43
author=about['__author__'],
44
author_email=about['__author_email__'],
45
description=about['__description__'],
46
long_description=long_description,
47
long_description_content_type='text/markdown',
48
url=about['__url__'],
49
license=about['__license__'],
50
packages=setuptools.find_packages(),
51
classifiers=classifiers,
52
keywords=['onlyfans', 'download', 'photos', 'videos', 'like', 'scraper', 'scraping', 'scraper'],
53
install_requires=requirements,
54
python_requires=">=3.8",
55
zip_safe=False,
56
entry_points={
57
'console_scripts': ['onlyfans-scraper=onlyfans_scraper.scraper:main']
58
},
59
project_urls={
60
'Source': 'https://github.com/taux1c/onlyfans-scraper'
61
}
62
)
63
64