forked from introduction-to-python-bsuir-2019/PythonHomework
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
38 lines (31 loc) · 990 Bytes
/
setup.py
File metadata and controls
38 lines (31 loc) · 990 Bytes
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
import setuptools
from src import conf
from pathlib import Path
here = Path(__file__).parent
def get_install_requirements():
with open(here.joinpath('requirements.txt'), 'r') as file:
return [requirement.strip() for requirement in file]
with open(here.joinpath('README.md'), encoding='utf-8') as f:
long_description = f.read()
setuptools.setup(
name=conf.__package__,
version=conf.__version__,
license='MIT',
author=conf.__author__,
author_email=conf.__email__,
description=long_description,
long_description=conf.__description__,
long_description_content_type='text/markdown',
url=conf.__url__,
packages=setuptools.find_packages(),
include_package_data=True,
package_data={
'': ['*.jinja2', '*.yaml', '*.yml'],
},
install_requires=get_install_requirements(),
python_requires='>=3.6',
entry_points={
'console_scripts':
['%s = src.rss_reader:main' % conf.__package__]
}
)