Skip to content

Commit

Permalink
Update dependencies, support 3.12 (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
JelleZijlstra authored Jul 11, 2023
1 parent 5c623c8 commit 850522a
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 12 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.8, 3.9, "3.10", "3.11"]
python-version: [3.7, 3.8, 3.9, "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/psf/black
rev: 23.3.0
rev: 23.7.0
hooks:
- id: black
language_version: python3.9
Expand Down
4 changes: 4 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ call ``resolver.get_fully_qualified_name('collections.Set')`` to retrieve the
Changelog
---------

Unreleased

- Declare support for Python 3.12

Version 2.3.0 (April 30, 2023)

- Update bundled typeshed
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ def find_bundled_files() -> Iterable[str]:
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development",
],
python_requires=">=3.7",
Expand Down
13 changes: 7 additions & 6 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tox]
minversion=2.3.1
envlist = py37,py38,py39,py310,py311,black,mypy
envlist = py37,py38,py39,py310,py311,py312,black,mypy
isolated_build = True

[testenv]
Expand All @@ -9,14 +9,14 @@ commands =

[testenv:black]
deps =
black == 22.12.0
black == 23.7.0
commands =
black --check .

[testenv:mypy]
deps =
mypy == 0.982
types-setuptools == 65.5.0.2
mypy == 1.4.1
types-setuptools
commands =
mypy .

Expand All @@ -25,5 +25,6 @@ python =
3.7: py37
3.8: py38
3.9: py39
3.10: py310, black, mypy
3.11: py311
3.10: py310
3.11: py311, black, mypy
3.12: py312
6 changes: 2 additions & 4 deletions typeshed_client/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,10 +303,8 @@ def visit_ImportFrom(self, node: ast.ImportFrom) -> Iterable[NameInfo]:
)
if names is None:
_warn(
(
f"could not import {source_module} in"
f" {self.module_name} with {self.ctx}"
),
f"could not import {source_module} in"
f" {self.module_name} with {self.ctx}",
self.ctx,
)
continue
Expand Down

0 comments on commit 850522a

Please sign in to comment.