Skip to content

Commit

Permalink
Merge pull request #32 from alphatwirl/dev
Browse files Browse the repository at this point in the history
Require Python 3.10 and above
  • Loading branch information
TaiSakuma authored May 3, 2024
2 parents 366a734 + fe939be commit 933dfce
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 46 deletions.
53 changes: 26 additions & 27 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
28 changes: 9 additions & 19 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "[email protected]" },
]
authors = [{ name = "Tai Sakuma", email = "[email protected]" }]
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"
Expand All @@ -42,6 +34,4 @@ path = "atpbar/__about__.py"
tag_sign = false

[tool.hatch.build.targets.sdist]
include = [
"/atpbar",
]
include = ["/atpbar"]

0 comments on commit 933dfce

Please sign in to comment.