-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
41 lines (36 loc) · 1.28 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
import pip
from setuptools import setup
from pip.req import parse_requirements
# parse_requirements() returns generator of pip.req.InstallRequirement objects
# pip 6 introduces the *required* session argument
try:
install_reqs = parse_requirements("requirements.txt", session=pip.download.PipSession())
except AttributeError:
install_reqs = parse_requirements("requirements.txt")
# reqs is a list of requirement
# e.g. ['django==1.5.1', 'mezzanine==1.4.6']
reqs = [str(ir.req) for ir in install_reqs]
VERSION = "0.1.3"
print(reqs)
setup(
name='docon',
packages=['docon'], # this must be the same as the name above
version=VERSION,
description="""
A sentiment analysis server implementation. Designed to be \
extendable, so new algorithms and sources can be used.
""",
author='J. Fernando Sanchez',
author_email='[email protected]',
url='https://github.com/gsi-upm/docon', # use the URL to the github repo
download_url='https://github.com/gsi-upm/docon/archive/{}.tar.gz'
.format(VERSION),
keywords=['conversion', 'templates', 'flask', 'celery', 'eurosentiment', 'nif', 'gsi'],
classifiers=[],
install_requires=reqs,
include_package_data=True,
entry_points="""
[console_scripts]
docon=docon.cli:run_cli
"""
)