diff --git a/.ci-before-script.sh b/.ci-before-script.sh index 1c8e654..6cfba8d 100755 --- a/.ci-before-script.sh +++ b/.ci-before-script.sh @@ -2,7 +2,7 @@ set -ex python -m pip install --upgrade pip -pip install -r requirements_test.txt && python setup.py develop +pip install -r requirements_test.txt && pip install -e . if [ "$STEP" != "tests" ]; then exit 0 diff --git a/.ci-runs-tests.sh b/.ci-runs-tests.sh index 3e6f4fe..799b14e 100755 --- a/.ci-runs-tests.sh +++ b/.ci-runs-tests.sh @@ -4,7 +4,7 @@ env if [ "$STEP" = "tests" ]; then py.test --version export PYTHONPATH=. - python setup.py develop + pip install -e . py.test --cov=bmemcached exit 0 fi diff --git a/.github/workflows/tests-and-lint.yml b/.github/workflows/tests-and-lint.yml index 39bd99c..dcd7aa9 100644 --- a/.github/workflows/tests-and-lint.yml +++ b/.github/workflows/tests-and-lint.yml @@ -12,7 +12,7 @@ jobs: strategy: max-parallel: 4 matrix: - python-version: [3.7, 3.8, 3.9, "3.10", 3.11] + python-version: [3.8, 3.9, "3.10", 3.11, 3.12] steps: - uses: actions/checkout@v2 diff --git a/setup.py b/setup.py index ce0b628..17ebd1d 100644 --- a/setup.py +++ b/setup.py @@ -25,13 +25,11 @@ def read(filename): "Development Status :: 4 - Beta", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", - "Programming Language :: Python :: 2.7", - "Programming Language :: Python :: 3.4", - "Programming Language :: Python :: 3.5", - "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 :: 3.11", + "Programming Language :: Python :: 3.12", ], install_requires=[ "six", diff --git a/tox.ini b/tox.ini index a7d5311..e313b34 100644 --- a/tox.ini +++ b/tox.ini @@ -1,7 +1,7 @@ [tox] -envlist = py27,py34,py35,py36,py37,py38,py39,py310 +envlist = py38,py39,py310,py311,py312 [testenv] deps = -rrequirements_test.txt -commands = python setup.py develop +commands = pip install -e . py.test -s flake8