-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
46 lines (40 loc) · 1.34 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
from pathlib import Path
from setuptools import setup
readme_path = Path(__file__).absolute().parent.joinpath('README.md')
with readme_path.open('r', encoding='utf-8') as fh:
long_description = fh.read()
requirements_path = Path(__file__).absolute().parent.joinpath('requirements.txt')
with requirements_path.open('r') as f:
requirements = f.readlines()
requirements = [req for req in requirements if "--hash" not in req]
requirements = [req.split("\\")[0].split(":")[0].strip() for req in requirements]
setup(
name='cinnamon',
version='1.0',
author='Federico Ruggeri',
author_email='federico.ruggeri6@unibo.it',
description='A simple high-level framework for research',
long_description=long_description,
long_description_content_type='text/markdown',
url='https://github.com/nlp-unibo/cinnamon',
project_urls={
'Bug Tracker': "https://github.com/cinnamon/issues"
},
classifiers=[
"Programming Language :: Python :: 3",
"Operating System :: OS Independent"
],
license='MIT',
packages=[
'cinnamon',
'cinnamon.utility',
],
install_requires=requirements,
python_requires=">=3.8",
entry_points={
'console_scripts': [
'cmn-setup=cinnamon.command_line:setup',
'cmn-run=cinnamon.command_line:run'
]
}
)