From fe939be2de21220d031be976fa1ee9417494323d Mon Sep 17 00:00:00 2001 From: Tai Sakuma Date: Fri, 3 May 2024 19:03:18 -0400 Subject: [PATCH] Require Python 3.10 and above --- .github/workflows/test.yml | 53 +++++++++++++++++++------------------- pyproject.toml | 28 +++++++------------- 2 files changed, 35 insertions(+), 46 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5c678dc..b956f89 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -3,41 +3,40 @@ name: Test on: push: branches: - - '**' + - "**" pull_request: branches: - - '**' + - "**" jobs: build: - runs-on: ubuntu-latest strategy: matrix: - python-version: ['3.6', '3.7', '3.8', '3.9'] + python-version: ["3.10", "3.11", "3.12"] jupyter: ["true", "false"] steps: - - uses: actions/checkout@v2 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 - with: - python-version: ${{ matrix.python-version }} - - name: Install dependencies - env: - JUPYTER: ${{ matrix.jupyter }} - run: | - python -m pip install --upgrade pip - python -m pip install -e '.[tests]' - if "$JUPYTER"; then - python -m pip install -e '.[jupyter]'; - fi - python -m pip list - - name: Test with pytest - run: | - pytest -vv --cov --cov-report=xml - - name: Upload coverage to Codecov - uses: codecov/codecov-action@v1 - with: - fail_ci_if_error: true - verbose: true + - uses: actions/checkout@v2 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + env: + JUPYTER: ${{ matrix.jupyter }} + run: | + python -m pip install --upgrade pip + python -m pip install -e '.[tests]' + if "$JUPYTER"; then + python -m pip install -e '.[jupyter]'; + fi + python -m pip list + - name: Test with pytest + run: | + pytest -vv --cov --cov-report=xml + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v1 + with: + fail_ci_if_error: true + verbose: true diff --git a/pyproject.toml b/pyproject.toml index 050768d..cf31841 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,31 +7,23 @@ name = "atpbar" dynamic = ["version"] description = "Progress bars for threading and multiprocessing tasks" readme = "README.md" +requires-python = ">=3.10" license = "" -authors = [ - { name = "Tai Sakuma", email = "tai.sakuma@gmail.com" }, -] +authors = [{ name = "Tai Sakuma", email = "tai.sakuma@gmail.com" }] classifiers = [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "Intended Audience :: End Users/Desktop", "License :: OSI Approved :: BSD License", - "Programming Language :: Python :: 3.6", - "Programming Language :: Python :: 3.7", - "Programming Language :: Python :: 3.8", - "Programming Language :: Python :: 3.9", + "Programming Language :: Python", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", ] [project.optional-dependencies] -jupyter = [ - "ipywidgets>=8.1", - "jupyter>=1.0", -] -tests = [ - "pytest-console-scripts>=1.4", - "pytest-cov>=5.0", - "pytest>=8.2", -] +jupyter = ["ipywidgets>=8.1", "jupyter>=1.0"] +tests = ["pytest-console-scripts>=1.4", "pytest-cov>=5.0", "pytest>=8.2"] [project.urls] Homepage = "https://github.com/alphatwirl/atpbar" @@ -42,6 +34,4 @@ path = "atpbar/__about__.py" tag_sign = false [tool.hatch.build.targets.sdist] -include = [ - "/atpbar", -] +include = ["/atpbar"]