-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
64 lines (55 loc) · 1.92 KB
/
setup.py
File metadata and controls
64 lines (55 loc) · 1.92 KB
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
59
60
61
62
63
64
""" Setuptools configuration for project packaging """
from typing import List
from setuptools import setup, find_packages
# Extract version from main package
from botlet import __version__ as version
# Extract descriptions from README file
def _read_description() -> str:
with open('README.md') as readme:
readme.readline()
return readme.readline().rstrip()
def _read_long_description() -> str:
with open('README.md') as readme:
return readme.read()
# Extract install dependencies from requirements file
def _read_requirements(filename: str) -> List[str]:
with open(filename) as requirements_file:
return [line for line in requirements_file.read().splitlines() if line and not line.lstrip().startswith('#')]
# Send setup information
setup(
name='botlet',
version=version,
author='Christoph "Youka" Spanknebel',
author_email='spanknebel.christoph@t-online.de',
url='https://youka.io',
description=_read_description(),
long_description=_read_long_description(),
long_description_content_type='text/markdown',
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 3',
'Topic :: Communications :: Chat',
'Topic :: Home Automation',
'Topic :: Office/Business',
'Topic :: System :: Monitoring'
],
keywords=['bot', 'automation', 'assistant'],
license='Apache-2.0',
platforms=['any'],
packages=find_packages(include=('botlet', 'botlet.*',)),
package_data={
'botlet.config': ['*.ini']
},
install_requires=_read_requirements('requirements.txt'),
extras_require={
'dev': _read_requirements('requirements-dev.txt')
},
entry_points={
'console_scripts':[
'botlet=botlet.cli:main'
]
},
python_requires='>=3.7.3'
)