setup.py 1 KB
Newer Older
1
from setuptools import setup
J. Fernando Sánchez's avatar
J. Fernando Sánchez committed
2
3
4
5
6
7
8
9
10
from pip.req import parse_requirements

# parse_requirements() returns generator of pip.req.InstallRequirement objects
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]

11
VERSION = "0.3.1"
J. Fernando Sánchez's avatar
J. Fernando Sánchez committed
12
13

print(reqs)
14

15
setup(
J. Fernando Sánchez's avatar
J. Fernando Sánchez committed
16
17
    name='senpy',
    packages=['senpy'],  # this must be the same as the name above
J. Fernando Sánchez's avatar
J. Fernando Sánchez committed
18
    version=VERSION,
J. Fernando Sánchez's avatar
J. Fernando Sánchez committed
19
    description='''
20
21
22
    A sentiment analysis server implementation. Designed to be \
extendable, so new algorithms and sources can be used.
    ''',
J. Fernando Sánchez's avatar
J. Fernando Sánchez committed
23
24
25
    author='J. Fernando Sanchez',
    author_email='balkian@gmail.com',
    url='https://github.com/balkian/senpy',  # use the URL to the github repo
J. Fernando Sánchez's avatar
J. Fernando Sánchez committed
26
    download_url='https://github.com/balkian/senpy/archive/{}.tar.gz'.format(VERSION),
J. Fernando Sánchez's avatar
J. Fernando Sánchez committed
27
28
    keywords=['eurosentiment', 'sentiment', 'emotions', 'nif'],  # arbitrary keywords
    classifiers=[],
J. Fernando Sánchez's avatar
J. Fernando Sánchez committed
29
30
    install_requires=reqs,
    include_package_data = True,
31
)