From be4c4192e35dedfa48688ca6b9e63832cf37bc7a Mon Sep 17 00:00:00 2001 From: Nikhil Dhandre Date: Wed, 28 Sep 2022 16:20:54 +0530 Subject: [PATCH] Remove older python support --- .github/workflows/deploy.yml | 7 +++---- .github/workflows/tests.yml | 27 +++++++++++++++++---------- noxfile.py | 2 +- setup.py | 6 +----- xrectsel/console.py | 3 ++- 5 files changed, 24 insertions(+), 21 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 179b127..bc7a74c 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -14,12 +14,11 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout to master - uses: actions/checkout@master - + uses: actions/checkout@v3 - name: Setup python - uses: actions/setup-python@v1 + uses: actions/setup-python@v3 with: - python-version: '3.8' + python-version: '3.x' architecture: 'x64' - name: Build Package and Check diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 104b925..b1853e7 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,6 +1,13 @@ name: Tests -on: [push, pull_request] +on: + push: + branches: + - master + pull_request: + types: ["opened", "synchronize", "reopened"] + create: + jobs: pre-commit: @@ -9,12 +16,12 @@ jobs: steps: - name: Checkout to master - uses: actions/checkout@master + uses: actions/checkout@v3 - name: Setup python - uses: actions/setup-python@v1 + uses: actions/setup-python@v3 with: - python-version: '3.8' + python-version: '3.x' architecture: 'x64' - name: Pre-Commit Checks @@ -33,13 +40,13 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [ '3.5', '3.6', '3.7', '3.8' ] + python-version: [ "3.8", "3.9", "3.10" ] steps: - name: Checkout to master - uses: actions/checkout@master + uses: actions/checkout@v3 - name: Setup Python-${{ matrix.python-version }} - uses: actions/setup-python@v1 + uses: actions/setup-python@v3 with: python-version: ${{ matrix.python-version }} architecture: x64 @@ -70,12 +77,12 @@ jobs: steps: - name: Checkout to master - uses: actions/checkout@master + uses: actions/checkout@v3 - name: Setup python - uses: actions/setup-python@v1 + uses: actions/setup-python@v3 with: - python-version: '3.8' + python-version: '3.x' architecture: 'x64' - name: Setup test environment diff --git a/noxfile.py b/noxfile.py index b6d9be9..6816dfa 100644 --- a/noxfile.py +++ b/noxfile.py @@ -10,7 +10,7 @@ def pre_commit(session): session.run("pre-commit", "run", "-a") -@nox.session(python=["3.5", "3.6", "3.7", "3.8"]) +@nox.session(python=["3.8", "3.9", "3.10"]) def tests(session): """Run unit test over different python env with code coverage""" session.install("pytest", "pytest-cov", "-e", ".") diff --git a/setup.py b/setup.py index 82a07a0..4ac2c67 100644 --- a/setup.py +++ b/setup.py @@ -14,11 +14,7 @@ "Intended Audience :: Developers", "Topic :: Utilities", "Topic :: Software Development :: User Interfaces", - "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", ], description="Geometry of a rectangular screen region", setup_requires=["setuptools_scm"], diff --git a/xrectsel/console.py b/xrectsel/console.py index a7e9267..792085e 100644 --- a/xrectsel/console.py +++ b/xrectsel/console.py @@ -40,7 +40,8 @@ help="Select cursor foreground color", ) @click.option( - "-cb", "--cursor-background", + "-cb", + "--cursor-background", default=(0, 0, 0), type=click.Tuple([int, int, int]), help="Select cursor background color",