diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 2f88e7b..c7ebcdd 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -13,13 +13,16 @@ jobs: build: runs-on: ubuntu-latest + strategy: + matrix: + python-version: [3.6, 3.7, 3.8, 3.9] steps: - uses: actions/checkout@v2 - - name: Set up Python 3.8 + - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v2 with: - python-version: 3.8 + python-version: ${{ matrix.python-version }} - name: Install dependencies run: | python -m pip install --upgrade pip diff --git a/Makefile b/Makefile index 7d742f0..7e10890 100644 --- a/Makefile +++ b/Makefile @@ -6,6 +6,10 @@ package: pypi: make clean python setup.py sdist; twine upload dist/* --skip-existing +.PHONY: test +test: + python -m pytest + python -m flake8 . .PHONY: clean clean: find ./* -name '*.pyc' -exec rm {} \; diff --git a/README.md b/README.md index f151370..dafe9e9 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,10 @@ A python wrapper to the Cisco ACI REST-API. +## Python Version + +We support Python 3.6 and up. Python 2 is not supported and there is no plan to add support for it. + ## Installation ``pip install aciclient`` diff --git a/setup.py b/setup.py index 4175862..5d00edf 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ long_description = f.read() setup(name='aciClient', - version='1.1', + version='1.2', description='aci communication helper class', url='http://www.netcloud.ch', author='mze', @@ -17,4 +17,5 @@ install_requires=['requests>=2.25.0 , <3', 'pyOpenSSL>=19.1.0, <20'], long_description=long_description, long_description_content_type='text/markdown', + python_requires=">=3.6", zip_safe=False) diff --git a/test/test_aci.py b/test/test_aci.py index eecb4a6..d158afa 100644 --- a/test/test_aci.py +++ b/test/test_aci.py @@ -6,14 +6,11 @@ """AciClient Testing """ -# from requests import RequestException from aciClient.aci import ACI import pytest -# - __BASE_URL = 'testing-apic.ncdev.ch'