Skip to content

Commit

Permalink
Merge pull request #25 from kairoaraujo/release_v0.1.5b1
Browse files Browse the repository at this point in the history
Release v0.1.5b1
  • Loading branch information
kairoaraujo authored Oct 31, 2022
2 parents 64cfdb5 + dc19a04 commit 2fb7a48
Show file tree
Hide file tree
Showing 13 changed files with 312 additions and 320 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-python@v1
with:
python-version: '3.7'
python-version: '3.9'

# Publishes the new version in PyPi test
- name: Build the distribution
Expand All @@ -24,4 +24,4 @@ jobs:
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.pypi_password }}
password: ${{ secrets.pypi_password }}
4 changes: 2 additions & 2 deletions .github/workflows/test_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-python@v1
with:
python-version: '3.7'
python-version: '3.9'

# Publishes the new version in PyPi test
- name: Build the distribution
Expand All @@ -26,4 +26,4 @@ jobs:
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.test_pypi_password }}
repository_url: https://test.pypi.org/legacy/
repository_url: https://test.pypi.org/legacy/
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-python@v1
with:
python-version: '3.7'
python-version: '3.9'

# Install dependencies
- name: Install tox and coverage
run: pip install tox coverage

# Runs Python tests
- name: Run Python tests
run: make py37-tests
run: make py39-tests

# Uploads the coverage
- name: Upload coverage to Codecov
Expand Down
12 changes: 3 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,10 @@ all-tests:
tox -r
coverage xml

py36-tests:
tox -re py36,pep8

py37-tests:
tox -re py37,pep8
py39-tests:
tox -re py39,pep8
coverage xml

py38-tests:
tox -re py38,pep8

publish:
pip install 'twine>=1.5.0'
python setup.py sdist bdist_wheel
Expand All @@ -26,4 +20,4 @@ publish:
docs:
sphinx-apidoc -o docs/source/ kodaksmarthome/
cd docs && make clean && make html
@echo "\033[95m\n\nBuild successful! View the docs homepage at docs/_build/html/index.html.\n\033[0m"
@echo "\033[95m\n\nBuild successful! View the docs homepage at docs/_build/html/index.html.\n\033[0m"
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ codecov = "*"
requests = "*"

[requires]
python_version = "3.7"
python_version = "3.9"
494 changes: 251 additions & 243 deletions Pipfile.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# Python Kodak Smart Home


Python Kodak Smart Home is a library written in Python 3 (>=3.7) that works as API for
Python Kodak Smart Home is a library written in Python 3 (>=3.9) that works as API for
[Kodak Smart Home Portal](https://kodaksmarthome.com).

This API uses the credentials from Kodak Smart Home Portal to fetch devices
Expand Down
72 changes: 36 additions & 36 deletions dev-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,47 +10,47 @@

-i https://pypi.org/simple
alabaster==0.7.12
appdirs==1.4.4
attrs==21.2.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'
babel==2.9.1; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
certifi==2021.5.30
chardet==4.0.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'
codecov==2.1.11
coverage==5.5
distlib==0.3.2
docutils==0.16; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'
filelock==3.0.12
flake8==3.9.2
idna==2.10; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
imagesize==1.2.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
importlib-metadata==4.5.0; python_version < '3.8'
attrs==22.1.0; python_version >= '3.5'
babel==2.10.3; python_version >= '3.6'
certifi==2022.9.24; python_full_version >= '3.6.0'
charset-normalizer==2.1.1; python_full_version >= '3.6.0'
codecov==2.1.12
coverage==6.5.0
distlib==0.3.6
docutils==0.17.1; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'
exceptiongroup==1.0.0; python_version < '3.11'
filelock==3.8.0; python_version >= '3.7'
flake8==5.0.4
idna==3.4; python_version >= '3.5'
imagesize==1.4.1; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
importlib-metadata==5.0.0; python_version < '3.10'
iniconfig==1.1.1
jinja2==3.0.1; python_version >= '3.6'
markupsafe==2.0.1; python_version >= '3.6'
mccabe==0.6.1
packaging==20.9; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
pluggy==0.13.1; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
py==1.10.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
pycodestyle==2.7.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
pyflakes==2.3.1; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
pygments==2.9.0; python_version >= '3.5'
pyparsing==2.4.7; python_version >= '2.6' and python_version not in '3.0, 3.1, 3.2, 3.3'
pytest==6.2.4
pytz==2021.1
requests==2.25.1
jinja2==3.1.2; python_version >= '3.7'
markupsafe==2.1.1; python_version >= '3.7'
mccabe==0.7.0; python_version >= '3.6'
packaging==21.3; python_version >= '3.6'
platformdirs==2.5.2; python_version >= '3.7'
pluggy==1.0.0; python_version >= '3.6'
py==1.11.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'
pycodestyle==2.9.1; python_version >= '3.6'
pyflakes==2.5.0; python_version >= '3.6'
pygments==2.13.0; python_version >= '3.6'
pyparsing==3.0.9; python_full_version >= '3.6.8'
pytest==7.2.0
pytz==2022.5
requests==2.28.1
six==1.16.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
snowballstemmer==2.1.0
sphinx-rtd-theme==0.5.2
sphinx==4.0.2
snowballstemmer==2.2.0
sphinx-rtd-theme==1.0.0
sphinx==5.3.0
sphinxcontrib-applehelp==1.0.2; python_version >= '3.5'
sphinxcontrib-devhelp==1.0.2; python_version >= '3.5'
sphinxcontrib-htmlhelp==2.0.0; python_version >= '3.6'
sphinxcontrib-jsmath==1.0.1; python_version >= '3.5'
sphinxcontrib-qthelp==1.0.3; python_version >= '3.5'
sphinxcontrib-serializinghtml==1.1.5; python_version >= '3.5'
toml==0.10.2; python_version >= '2.6' and python_version not in '3.0, 3.1, 3.2, 3.3'
tox==3.23.1
typing-extensions==3.10.0.0; python_version < '3.8'
urllib3==1.26.5; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4' and python_version < '4'
virtualenv==20.4.7; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
zipp==3.4.1; python_version >= '3.6'
tomli==2.0.1; python_version < '3.11' and python_version >= '3.7'
tox==3.27.0
urllib3==1.26.12; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4, 3.5' and python_version < '4'
virtualenv==20.16.6; python_version >= '3.6'
zipp==3.10.0; python_version >= '3.7'
11 changes: 1 addition & 10 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1 @@
-i https://pypi.org/simple
requests==2.22.0
sphinx-rtd-theme==0.4.3
sphinx==2.3.1
sphinxcontrib-applehelp==1.0.1
sphinxcontrib-devhelp==1.0.1
sphinxcontrib-htmlhelp==1.0.2
sphinxcontrib-jsmath==1.0.1
sphinxcontrib-qthelp==1.0.2
sphinxcontrib-serializinghtml==1.1.3
-r ../dev-requirements.txt
6 changes: 3 additions & 3 deletions kodaksmarthome/__version__.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Copyright (c) 2019, 2020 Kairo de Araujo
Copyright (c) 2019-2022 Kairo de Araujo
"""

__title__ = "python-kodaksmarthome"
__description__ = "Python Kodak SmartHome API"
__url__ = "https://github.com/kairoaraujo/kodak_smarthome_api"
__version__ = "0.1.3beta2"
__version__ = "0.1.5beta1"
__author__ = "Kairo de Araujo"
__author_email__ = "kairo@dearaujo.nl"
__license__ = "Apache 2.0"
__copyright__ = "Copyright 2019, 2020 Kairo de Araujo"
__copyright__ = "Copyright 2019-2022 Kairo de Araujo"
10 changes: 5 additions & 5 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
#

-i https://pypi.org/simple
certifi==2021.5.30
chardet==4.0.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'
idna==2.10; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
requests==2.25.1
urllib3==1.26.5; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4' and python_version < '4'
certifi==2022.9.24; python_full_version >= '3.6.0'
charset-normalizer==2.1.1; python_full_version >= '3.6.0'
idna==3.4; python_version >= '3.5'
requests==2.28.1
urllib3==1.26.12; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4, 3.5' and python_version < '4'
7 changes: 3 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def run_tests(self):
package_data={"": ["LICENSE", "NOTICE"], "kodaksmarthome": ["*.pem"]},
package_dir={"kodaksmarthome": "kodaksmarthome"},
include_package_data=True,
python_requires=">=3.6",
python_requires=">=3.9",
install_requires=requires,
license=about["__license__"],
zip_safe=False,
Expand All @@ -83,9 +83,8 @@ def run_tests(self):
"Natural Language :: English",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
],
Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py36,py37,py38,pep8
envlist = py39,310,pep8

[flake8]
exclude = kodak_smarthome_api/__init__.py,venv,.venv,settings.py,.git,.tox,dist,docs,*lib/python*,*egg,build,tools
Expand All @@ -11,4 +11,4 @@ commands = flake8 --ignore=F401,W503
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/dev-requirements.txt

commands = coverage run -m pytest --pdb -vvv -s tests
commands = coverage run -m pytest --pdb -vvv -s tests

0 comments on commit 2fb7a48

Please sign in to comment.