-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
58 lines (51 loc) · 1.43 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
58
import os
from setuptools import find_packages
here = os.path.abspath(os.path.dirname(__file__))
about = {}
with open(os.path.join(here, 'bbcli', '__version__.py'), 'r') as f:
exec(f.read(), about)
with open('README.md', 'r') as f:
readme = f.read()
requires = [
'Click>=8.1',
'colorama',
'requests',
'python-dotenv',
'beautifulsoup4',
'lxml>=4.8.0',
'shellingham',
'anytree',
'html2text',
'python-dateutil',
'tabulate==0.8.9',
'pwinput',
'Markdown==3.3.6',
'markdownify==0.11.2'
]
def setup_package():
metadata = dict(
name=about['__title__'],
version=about['__version__'],
description=about['__description__'],
long_description=readme,
long_description_content_type='text/markdown',
url=about['__url__'],
author=about['__authors__'],
author_email=about['__author_emails__'],
license=about['__license__'],
packages=find_packages(),
include_package_data=True,
install_requires=requires,
entry_points={
'console_scripts': [
'bb=bbcli.__main__:main', # the cli() function runs inside the bbcli.py. cli is the command that is used to run the command
],
}
)
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(**metadata)
if __name__ == '__main__':
setup_package()