Skip to content

Commit

Permalink
added github tests and fixed README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandrErohin committed Mar 15, 2024
1 parent 8568680 commit 34f4054
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 5 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
@@ -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
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/)
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -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
8 changes: 6 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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',
Expand Down

0 comments on commit 34f4054

Please sign in to comment.