summaryrefslogtreecommitdiff
path: root/setup.py
blob: 2feb20093bc6f0911bc2cc2aa45105adc95d905b (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
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 not None:
    version = '{}+{}'.format(version, gitrev)

setup(
    name="unbiased",
    version=version,
    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',
        ],
    },
)