-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathsetup.py
56 lines (48 loc) · 1.7 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
47
48
49
50
51
52
53
54
55
56
'''
Setup configuration
'''
from setuptools import setup, find_packages
# To use a consistent encoding
from codecs import open
from os import path
from pip.req import parse_requirements
from pip.download import PipSession
# parse_requirements() returns generator of pip.req.InstallRequirement objects
install_reqs = parse_requirements(
'requirements/install.txt', session=PipSession()
)
reqs = [str(ir.req) for ir in install_reqs]
here = path.abspath(path.dirname(__file__))
# Get the long description from the relevant file
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
with open(path.join(here, 'CHANGES.rst'), encoding='utf-8') as f:
long_description = '%s\n\n%s' % (long_description, f.read())
setup(
name='bulby',
# Versions should comply with PEP440. For a discussion on single-sourcing
# the version across setup.py and the project code, see
# https://packaging.python.org/en/latest/single_source_version.html
version='0.0.1.dev0',
description='Manages the phillips hue lightbulbs',
long_description=long_description,
url='https://github.com/sontek/bulby.git',
author='John Anderson',
author_email='[email protected]',
license='MIT',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
],
keywords='etl extract transform load',
packages=find_packages(exclude=['docs', 'tests*']),
install_requires=reqs,
setup_requires=['setuptools-git'],
entry_points={
'paste.app_factory': [
'main=liberator:main',
],
},
)