From 34f40540574a31fe8f1cdfd39797df91f1f9ec31 Mon Sep 17 00:00:00 2001 From: Alex Erohin Date: Fri, 15 Mar 2024 16:02:00 +0300 Subject: [PATCH] added github tests and fixed README.md --- .github/workflows/python-package.yml | 28 ++++++++++++++++++++++++++++ README.md | 3 ++- requirements.txt | 4 ++-- setup.py | 8 ++++++-- 4 files changed, 38 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/python-package.yml diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml new file mode 100644 index 0000000..49862dd --- /dev/null +++ b/.github/workflows/python-package.yml @@ -0,0 +1,28 @@ +name: Python Package +on: + push: + pull_request: +jobs: + ci: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ['3.10', '3.11', '3.12'] + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-python@v2 + name: Setup Python ${{ matrix.python-version }} + with: + python-version: ${{ matrix.python-version }} + - name: Install pip + run: | + python -m pip install --upgrade pip + - name: Install package + run: | + pip install tplinkrouterc6u + - name: Install dependencies + run: | + pip install -r requirements.txt + - name: Test with unittest + run: | + python -m unittest discover -s ./test \ No newline at end of file diff --git a/README.md b/README.md index 1d4a719..85c1e15 100644 --- a/README.md +++ b/README.md @@ -3,9 +3,10 @@ Python package for API access and management for TP-Link Routers. See [Supported [![Pypi](https://img.shields.io/pypi/v/tplinkrouterc6u)](https://pypi.org/project/tplinkrouterc6u/) [![Downloads](https://static.pepy.tech/personalized-badge/tplinkrouterc6u?period=total&units=international_system&left_color=grey&right_color=orange&left_text=Downloads)](https://pypi.org/project/tplinkrouterc6u/) +![Python versions](https://img.shields.io/pypi/pyversions/tplinkrouterc6u) ## Installation -`pip install tplinkrouterc6u && pip install -r requirements.txt` +`pip install tplinkrouterc6u` ## Dependencies - [requests](https://pypi.org/project/requests/) diff --git a/requirements.txt b/requirements.txt index 7013d9f..6574f43 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ macaddress==2.0.2 pycryptodome==3.20.0 -requests==2.28.2 -setuptools==63.2.0 +requests==2.31.0 +setuptools==69.2.0 diff --git a/setup.py b/setup.py index 2ac313f..c20ad1a 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setuptools.setup( name="tplinkrouterc6u", - version="3.3.0", + version="3.3.1", author="Alex Erohin", author_email="alexanderErohin@yandex.ru", description="TP-Link Router API", @@ -14,9 +14,13 @@ url="https://github.com/AlexandrErohin/TP-Link-Archer-C6U", packages=setuptools.find_packages(), classifiers=[ - "Programming Language :: Python :: 3", "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)", "Operating System :: OS Independent", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: Implementation :: PyPy", ], install_requires=['requests', 'pycryptodome', 'macaddress'], python_requires='>=3.10',