From e2f572d608ac6f95422a6489b984c899cbefa49a Mon Sep 17 00:00:00 2001 From: Sebastian Rahlf Date: Fri, 13 Sep 2024 14:10:49 +0200 Subject: [PATCH 1/4] Add Github Action running tox --- .github/workflows/check.yml | 42 +++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/check.yml diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml new file mode 100644 index 0000000..e5b4cc4 --- /dev/null +++ b/.github/workflows/check.yml @@ -0,0 +1,42 @@ +name: check +on: + push: + pull_request: + +concurrency: + group: check-${{ github.ref }} + cancel-in-progress: true + +jobs: + test: + name: test with ${{ matrix.py }} on ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + py: + - "3.12" + - "3.11" + - "3.10" + - "3.9" + - "3.8" + - "2.8" + - "2.7" + os: + - ubuntu-latest + - macos-latest + - windows-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: Setup python for test ${{ matrix.py }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.py }} + - name: Install tox + run: python -m pip install tox-gh>=1.2 + - name: Setup test suite + run: tox -vv --notest + - name: Run test suite + run: tox --skip-pkg-install From 32f7320bde698396ba29e1c1d59c7f16932e3767 Mon Sep 17 00:00:00 2001 From: Sebastian Rahlf Date: Fri, 13 Sep 2024 14:13:37 +0200 Subject: [PATCH 2/4] Drop support for all Python version which reached end-of-life. https://devguide.python.org/versions/ --- .github/workflows/check.yml | 2 -- tox.ini | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index e5b4cc4..6466fc6 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -20,8 +20,6 @@ jobs: - "3.10" - "3.9" - "3.8" - - "2.8" - - "2.7" os: - ubuntu-latest - macos-latest diff --git a/tox.ini b/tox.ini index f253c08..2f0cca7 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py26,py27,py33,py34,py35,py36 +envlist = py38,py39,py310,py311,py312 [testenv] deps = pytest From ce223e8ef65394bb1b35efc5edc40507dcc1b7d7 Mon Sep 17 00:00:00 2001 From: Sebastian Rahlf Date: Fri, 13 Sep 2024 16:00:21 +0200 Subject: [PATCH 3/4] Remove Travis CI config. --- .travis.yml | 14 -------------- README.rst | 4 ++-- 2 files changed, 2 insertions(+), 16 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 9cb5d48..0000000 --- a/.travis.yml +++ /dev/null @@ -1,14 +0,0 @@ -sudo: false -language: python -python: - - "2.6" - - "2.7" - - "3.2" - - "3.3" - - "3.4" - - "3.5" - - "3.6" -install: - - pip install . - - pip install pytest -script: py.test diff --git a/README.rst b/README.rst index 049f899..2e25146 100644 --- a/README.rst +++ b/README.rst @@ -2,8 +2,8 @@ python-jambel ============= -.. image:: https://travis-ci.org/jambit/python-jambel.svg?branch=master - :target: https://travis-ci.org/jambit/python-jambel +.. image:: https://github.com/jambit/python-jambel/actions/workflows/check.yml/badge.svg + :target: https://github.com/jambit/python-jambel/actions/workflows/check.yml Interface to jambit's project traffic lights. From 8cdf375cf601a6328dc00eeb3d731847092e908f Mon Sep 17 00:00:00 2001 From: Sebastian Rahlf Date: Fri, 13 Sep 2024 16:03:01 +0200 Subject: [PATCH 4/4] Update setup.py. --- setup.py | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/setup.py b/setup.py index 3c8d870..7a50d29 100644 --- a/setup.py +++ b/setup.py @@ -31,18 +31,16 @@ def get_version(): ] }, classifiers=[ - 'Development Status :: 4 - Beta', + 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'Intended Audience :: System Administrators', 'License :: Other/Proprietary License', 'Operating System :: OS Independent', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.6', - 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.3', - 'Programming Language :: Python :: 3.4', - 'Programming Language :: Python :: 3.5', - 'Programming Language :: Python :: 3.6', + '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', ] )