Fixed request version, improved setup.py requirement import
This commit is contained in:
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
python-dateutil~=2.8.1
|
python-dateutil~=2.8.1
|
||||||
requests~=2.23.0
|
requests~=2.24.0
|
||||||
python-slugify~=4.0.0
|
python-slugify~=4.0.0
|
||||||
testtools==2.4.0
|
testtools==2.4.0
|
||||||
|
|||||||
@@ -3,23 +3,26 @@
|
|||||||
from os.path import abspath, dirname
|
from os.path import abspath, dirname
|
||||||
from setuptools import setup, find_packages
|
from setuptools import setup, find_packages
|
||||||
from blinkpy.helpers.constants import (
|
from blinkpy.helpers.constants import (
|
||||||
__version__, PROJECT_PACKAGE_NAME, PROJECT_LICENSE, PROJECT_URL,
|
__version__,
|
||||||
PROJECT_EMAIL, PROJECT_DESCRIPTION, PROJECT_CLASSIFIERS, PROJECT_AUTHOR,
|
PROJECT_PACKAGE_NAME,
|
||||||
|
PROJECT_LICENSE,
|
||||||
|
PROJECT_URL,
|
||||||
|
PROJECT_EMAIL,
|
||||||
|
PROJECT_DESCRIPTION,
|
||||||
|
PROJECT_CLASSIFIERS,
|
||||||
|
PROJECT_AUTHOR,
|
||||||
)
|
)
|
||||||
|
|
||||||
PROJECT_VERSION = __version__
|
PROJECT_VERSION = __version__
|
||||||
|
|
||||||
THIS_DIR = abspath(dirname(__file__))
|
THIS_DIR = abspath(dirname(__file__))
|
||||||
|
|
||||||
REQUIRES = [
|
with open(f"{THIS_DIR}/requirements.txt") as req_file:
|
||||||
"python-dateutil~=2.8.1",
|
REQUIRES = [line.rstrip() for line in req_file]
|
||||||
"requests~=2.23.0",
|
|
||||||
"python-slugify~=4.0.0",
|
|
||||||
]
|
|
||||||
|
|
||||||
PACKAGES = find_packages(exclude=['tests*', 'docs'])
|
PACKAGES = find_packages(exclude=["tests*", "docs"])
|
||||||
|
|
||||||
with open('{}/README.rst'.format(THIS_DIR), encoding='utf-8') as readme_file:
|
with open("{}/README.rst".format(THIS_DIR), encoding="utf-8") as readme_file:
|
||||||
LONG_DESCRIPTION = readme_file.read()
|
LONG_DESCRIPTION = readme_file.read()
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
@@ -31,11 +34,11 @@ setup(
|
|||||||
author_email=PROJECT_EMAIL,
|
author_email=PROJECT_EMAIL,
|
||||||
license=PROJECT_LICENSE,
|
license=PROJECT_LICENSE,
|
||||||
url=PROJECT_URL,
|
url=PROJECT_URL,
|
||||||
platforms='any',
|
platforms="any",
|
||||||
py_modules=['blinkpy'],
|
py_modules=["blinkpy"],
|
||||||
packages=PACKAGES,
|
packages=PACKAGES,
|
||||||
include_package_data=True,
|
include_package_data=True,
|
||||||
install_requires=REQUIRES,
|
install_requires=REQUIRES,
|
||||||
test_suite='tests',
|
test_suite="tests",
|
||||||
classifiers=PROJECT_CLASSIFIERS
|
classifiers=PROJECT_CLASSIFIERS,
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user