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
Latest commit
38 lines (31 loc) · 990 Bytes
/
Copy pathsetup.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
importsetuptools
fromsrcimportconf
frompathlibimportPath
here=Path(__file__).parent
defget_install_requirements():
withopen(here.joinpath('requirements.txt'), 'r') asfile:
return [requirement.strip() forrequirementinfile]
withopen(here.joinpath('README.md'), encoding='utf-8') asf:
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__]
}
)