Skip to content

Commit

Permalink
upgrade python requires >= 3.8
Browse files Browse the repository at this point in the history
import importlib.metadata doesn't work with the importlib_metadata
backport.
  • Loading branch information
dhimmel committed Mar 31, 2022
1 parent 4c31d04 commit 14873e1
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 11 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ jobs:
- windows-latest
- macOS-latest
python-version:
- "3.7"
- "3.8"
- "3.10"
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Setup Graphviz
Expand All @@ -32,6 +32,6 @@ jobs:
if: matrix.os != 'windows-latest'
run: pip install ".[viz]"
- name: Run pre-commit
uses: pre-commit/action@v2.0.0
uses: pre-commit/action@v2.0.3
- name: Test with pytest
run: pytest --color=yes
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,24 @@ repos:
- id: check-case-conflict
- id: check-yaml
- repo: https://github.com/asottile/pyupgrade
rev: v2.31.0
rev: v2.31.1
hooks:
- id: pyupgrade
args: [--py37-plus]
args: [--py38-plus]
- repo: https://github.com/timothycrosley/isort
rev: 5.10.1
hooks:
- id: isort
- repo: https://github.com/python/black
rev: 22.1.0
rev: 22.3.0
hooks:
- id: black
- repo: https://gitlab.com/pycqa/flake8
rev: 3.9.2
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.931
rev: v0.942
hooks:
- id: mypy
args: ["--strict", "--show-error-codes"]
Expand Down
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ use_parentheses = true
line_length = 88

[tool.black]
target-version = ['py37', 'py38', 'py39', 'py310']
target-version = ['py38', 'py39', 'py310']

# https://mypy.readthedocs.io/en/stable/config_file.html#using-a-pyproject-toml-file
[tool.mypy]
Expand All @@ -36,7 +36,6 @@ module = [
"setuptools.*",
"pandas.*",
"pytest.*",
"_pytest.*",
"pygraphviz.*",
]
ignore_missing_imports = true
3 changes: 1 addition & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,9 @@ keywords =
packages = nxontology
zip_safe = False
include_package_data = True
python_requires = >=3.7
python_requires = >=3.8
install_requires =
fsspec[http]
importlib_metadata; python_version < '3.8'
networkx>=2
pronto>=2.4.0

Expand Down

0 comments on commit 14873e1

Please sign in to comment.