From ae90957333520c1006c4fe9d29007d9d9269acd9 Mon Sep 17 00:00:00 2001 From: Georges Toth Date: Sat, 19 Aug 2023 20:53:52 +0200 Subject: [PATCH] update metadata; badges; minimum version in docs --- .travis.yml | 26 -------------------------- README.md | 13 +++++++------ docs/index.md | 9 ++++----- pyproject.toml | 5 ++++- 4 files changed, 15 insertions(+), 38 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index a6ac12e..0000000 --- a/.travis.yml +++ /dev/null @@ -1,26 +0,0 @@ -language: python -services: docker -cache: pip - -branches: - except: - - /^v[0-9]/ - -matrix: - include: - - python: "3.7" - - python: "3.8" - - python: "3.9" - -before_install: - - image="openhab/openhab:latest-alpine" - -install: - - pip install -U pip - - pip install --upgrade-strategy eager .[test] - - docker run -d --name openhab -p 8080:8080 -e OPENHAB_HTTP_PORT=8080 -v $TRAVIS_BUILD_DIR/docker/openhab_conf:/openhab/conf $image - - python docker/test_connectivity.py - - docker exec -it openhab /openhab/runtime/bin/client -p habopen users add admin admin administrator - -script: - - pytest -v tests diff --git a/README.md b/README.md index eb42083..739d0c8 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ -[![Travis CI](https://travis-ci.com/sim0nx/python-openhab.svg?branch=master)](https://travis-ci.com/sim0nx/python-openhab) [![Documentation Status](https://readthedocs.org/projects/python-openhab/badge/?version=latest)](http://python-openhab.readthedocs.io/en/latest/?badge=latest) -[![PyPI](https://badge.fury.io/py/python-openhab.svg)](https://badge.fury.io/py/python-openhab) +![PyPI](https://img.shields.io/pypi/v/python-openhab) +![PyPI - Python Version](https://img.shields.io/pypi/pyversions/python-openhab) + # python library for accessing the openHAB REST API @@ -9,13 +10,13 @@ work in progress. # Requirements -- python >= 3.5 +- python >= 3.8 - python :: dateutil - python :: requests -- openHAB version 3 +- openHAB version 3 / 4 + +# Installation -Installation ------------- Install the latest version using pip: diff --git a/docs/index.md b/docs/index.md index eb42083..ef8d447 100644 --- a/docs/index.md +++ b/docs/index.md @@ -1,6 +1,6 @@ -[![Travis CI](https://travis-ci.com/sim0nx/python-openhab.svg?branch=master)](https://travis-ci.com/sim0nx/python-openhab) [![Documentation Status](https://readthedocs.org/projects/python-openhab/badge/?version=latest)](http://python-openhab.readthedocs.io/en/latest/?badge=latest) -[![PyPI](https://badge.fury.io/py/python-openhab.svg)](https://badge.fury.io/py/python-openhab) +![PyPI](https://img.shields.io/pypi/v/python-openhab) +![PyPI - Python Version](https://img.shields.io/pypi/pyversions/python-openhab) # python library for accessing the openHAB REST API @@ -9,13 +9,12 @@ work in progress. # Requirements -- python >= 3.5 +- python >= 3.8 - python :: dateutil - python :: requests - openHAB version 3 -Installation ------------- +# Installation Install the latest version using pip: diff --git a/pyproject.toml b/pyproject.toml index a42ad7f..a0d1f4f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -12,8 +12,11 @@ classifiers = [ "License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)", "Intended Audience :: Developers", "Operating System :: OS Independent", - "Programming Language :: Python :: 3", "Programming Language :: Python :: 3 :: Only", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", ] keywords = ["openHAB"] requires-python = ">=3.8"