Updated README badges to dev branch, improved setup script
This commit is contained in:
+1
-1
@@ -133,7 +133,7 @@ Ultimately, this class is just a wrapper for each individual camera in order to
|
||||
|
||||
The ``BlinkURLHandler`` class expects to be initialized with the region id found in the ``Blink.get_auth_token()`` function. The class will then create the necessary links required for various communication.
|
||||
|
||||
.. |Build Status| image:: https://travis-ci.org/fronzbot/blinkpy.svg?branch=master
|
||||
.. |Build Status| image:: https://travis-ci.org/fronzbot/blinkpy.svg?branch=dev
|
||||
:target: https://travis-ci.org/fronzbot/blinkpy
|
||||
.. |Coverage Status| image:: https://coveralls.io/repos/github/fronzbot/blinkpy/badge.svg?branch=master
|
||||
:target: https://coveralls.io/github/fronzbot/blinkpy?branch=master
|
||||
|
||||
@@ -1,22 +1,29 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from os.path import abspath, dirname, join
|
||||
from setuptools import setup, find_packages
|
||||
from pip.req import parse_requirements
|
||||
from blinkpy.helpers.constants import (
|
||||
__version__, PROJECT_PACKAGE_NAME, PROJECT_LICENSE, PROJECT_URL,
|
||||
PROJECT_EMAIL, PROJECT_DESCRIPTION, PROJECT_CLASSIFIERS, PROJECT_AUTHOR,
|
||||
PROJECT_LONG_DESCRIPTION
|
||||
)
|
||||
|
||||
REQUIRES = [
|
||||
'requests>=2.12.4'
|
||||
]
|
||||
this_dir = abspath(dirname(__file__))
|
||||
|
||||
PACKAGES = find_packages()
|
||||
install_reqs = parse_requirements('{}/requirements.txt'.format(this_dir), session=False)
|
||||
test_reqs = parse_requirements('{}/requirements_test.txt'.format(this_dir), session=False)
|
||||
REQUIRES = [str(ir.req) for ir in install_reqs]
|
||||
TEST_REQUIRES = [str(ir.req) for ir in test_reqs]
|
||||
|
||||
PACKAGES = find_packages(exclue=['tests*'])
|
||||
|
||||
with open('{}/README.rst'.format(this_dir), encoding='utf-8') as readme_file:
|
||||
long_descriptin = readme_file.read()
|
||||
|
||||
setup(
|
||||
name = PROJECT_PACKAGE_NAME,
|
||||
version = __version__,
|
||||
description = PROJECT_DESCRIPTION,
|
||||
long_description = PROJECT_LONG_DESCRIPTION,
|
||||
long_description = long_description,
|
||||
author = PROJECT_AUTHOR,
|
||||
author_email = PROJECT_EMAIL,
|
||||
license = PROJECT_LICENSE,
|
||||
@@ -24,6 +31,7 @@ setup(
|
||||
platforms = 'any',
|
||||
py_modules = ['blinkpy'],
|
||||
packages=PACKAGES,
|
||||
include_package_data = True,
|
||||
install_requires = REQUIRES,
|
||||
test_suite = 'tests',
|
||||
classifiers = PROJECT_CLASSIFIERS
|
||||
|
||||
Reference in New Issue
Block a user