summaryrefslogtreecommitdiff
path: root/setup.py
blob: 625bc00c2d3e3d76e018eb26c771d986767a7e6a (plain)
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
import os
from setuptools import setup

buildnum = os.environ.get('TRAVIS_BUILD_NUMBER')
if buildnum is None:
    version = '0.dev0'
else:
    version = buildnum
gitrev = os.environ.get('TRAVIS_COMMIT')
if gitrev is None:
    description = ''
else:
    description = gitrev

setup(
    name="unbiased",
    version=version,
    description=description,
    packages=['unbiased', 'unbiased.sources'],
    package_data={
        'unbiased': [
            'html_template/*.html',
            'html_template/*.css',
            'html_template/*.ico',
            'html_template/*.png',
        ],
    },
    install_requires=[
        'jinja2',
        'Pillow',
        'requests',
        'lxml',
        'beautifulsoup4',
    ],
    entry_points={
        'console_scripts': [
            'unbiased = unbiased.main:main',
        ],
    },
)