Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump Python compat target to 3.8 #59

Merged
merged 1 commit into from Oct 2, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Expand Up @@ -17,7 +17,7 @@ jobs:
uses: actions/setup-python@v1
with:
# matches compat target in setup.py
python-version: '3.6'
python-version: '3.8'
- name: "Main Script"
run: |
curl -L -O https://gitlab.tiker.net/inducer/ci-support/raw/main/prepare-and-run-flake8.sh
Expand All @@ -28,7 +28,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.6', '3.8', '3.x']
python-version: ['3.8', '3.x']
steps:
- uses: actions/checkout@v2
-
Expand Down
6 changes: 1 addition & 5 deletions modepy/tools.py
Expand Up @@ -55,11 +55,7 @@
"""

from typing import Tuple, TypeVar
try:
# NOTE: only available in >=3.8
from typing import Protocol, runtime_checkable
except ImportError:
from typing_extensions import Protocol, runtime_checkable # type: ignore[misc]
from typing import Protocol, runtime_checkable

from functools import reduce
from math import gamma # noqa: F401
Expand Down
5 changes: 1 addition & 4 deletions setup.py
Expand Up @@ -36,15 +36,12 @@ def main():
],

packages=find_packages(),
python_requires="~=3.6",
python_requires="~=3.8",
install_requires=[
"numpy",
"pytools>=2013.1",
"pytest>=2.3",
"pymbolic",

"dataclasses; python_version<'3.7'",
"typing_extensions; python_version<'3.8'",
],
package_data={"modepy": ["py.typed"]},
)
Expand Down