From cfcab36324ae7d1a2e97faf149b27ac9c3bea37a Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Sun, 5 Jun 2022 22:10:00 +0200 Subject: [PATCH 1/4] Remove Travis CI --- .travis.yml | 7 ------- README.md | 1 - 2 files changed, 8 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index b3e35ce..0000000 --- a/.travis.yml +++ /dev/null @@ -1,7 +0,0 @@ -language: python -python: - - "3.6" - - "3.7" - - "3.8" - - "3.9" -script: "python setup.py sdist && cd dist/ && tar xf hsluv-*.tar.gz && cd hsluv-*/ && python setup.py test" diff --git a/README.md b/README.md index 2e036a2..2ebf867 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,3 @@ -[![Build Status](https://travis-ci.org/hsluv/hsluv-python.svg?branch=master)](https://travis-ci.org/hsluv/hsluv-python) [![Package Version](https://img.shields.io/pypi/v/hsluv.svg)](https://pypi.python.org/pypi/hsluv/) A Python implementation of [HSLuv](https://www.hsluv.org) (revision 4). From e3479ec893cf525642bdd94f0a6dd32d897465a4 Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Sun, 5 Jun 2022 22:17:19 +0200 Subject: [PATCH 2/4] Drop support for end-of-life Python 3.6 --- setup.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/setup.py b/setup.py index a1d1dd2..5eebce2 100644 --- a/setup.py +++ b/setup.py @@ -20,13 +20,12 @@ "Operating System :: OS Independent", "Topic :: Software Development", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3 :: Only", ], - python_requires='>=3.6', + python_requires='>=3.7', setup_requires=[ 'setuptools>=38.6.0', # for long_description_content_type ], From 618138eaac7463b9e2afd6e8d28c2e27cf294f87 Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Sun, 5 Jun 2022 22:18:07 +0200 Subject: [PATCH 3/4] Add official support for Python 3.10 --- setup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.py b/setup.py index 5eebce2..b897e83 100644 --- a/setup.py +++ b/setup.py @@ -23,6 +23,7 @@ "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3 :: Only", ], python_requires='>=3.7', From d0104573fa6ed808b15425feb566f88800e8d7bb Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Sun, 5 Jun 2022 22:18:41 +0200 Subject: [PATCH 4/4] Add GitHub Actions equivalent of just-removed Travis CI --- .github/workflows/test.yml | 32 ++++++++++++++++++++++++++++++++ README.md | 1 + 2 files changed, 33 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..eb3aa58 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,32 @@ +# Copyright (c) 2022 Sebastian Pipping +# Licensed under the MIT license, see file LICENSE.txt + +name: Run the Test Suite + +on: +- pull_request +- push + +jobs: + run_test_suite: + strategy: + matrix: + python-version: [3.7, '3.10'] # no current need for in-between versions + name: Run the Test Suite + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v3 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v3 + with: + python-version: ${{ matrix.python-version }} + + - name: Run the Test Suite + run: |- + set -x + python setup.py sdist + cd dist/ + tar xf hsluv-*.tar.gz + cd hsluv-*/ + python setup.py test diff --git a/README.md b/README.md index 2ebf867..96ac227 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,4 @@ +[![Build Status](https://github.com/hsluv/hsluv-python/actions/workflows/test.yml/badge.svg)](https://github.com/hsluv/hsluv-python/actions/workflows/test.yml) [![Package Version](https://img.shields.io/pypi/v/hsluv.svg)](https://pypi.python.org/pypi/hsluv/) A Python implementation of [HSLuv](https://www.hsluv.org) (revision 4).