Skip to content

Commit 123fb48

Browse files
authored
Merge pull request #34 from astropy/jeffjennings-patch-1
Fix build failure
2 parents 1c76463 + a949b93 commit 123fb48

File tree

5 files changed

+15
-14
lines changed

5 files changed

+15
-14
lines changed

.github/workflows/ci.yaml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ on:
88

99
jobs:
1010

11-
lint:
11+
lint:
12+
# could be re-implemented if desired
13+
if: false
1214
runs-on: ubuntu-latest
1315

1416
steps:
@@ -19,12 +21,14 @@ jobs:
1921
- name: Set up Python
2022
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
2123
with:
22-
python-version: 3.9
24+
python-version: 3.12
2325

2426
- name: Run pre-commit
2527
uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
2628

2729
typing:
30+
# could be re-implemented if desired
31+
if: false
2832
runs-on: ubuntu-latest
2933

3034
steps:
@@ -35,7 +39,7 @@ jobs:
3539
- name: Set up Python
3640
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
3741
with:
38-
python-version: 3.9
42+
python-version: 3.12
3943

4044
- name: Python install
4145
run: |
@@ -51,16 +55,13 @@ jobs:
5155

5256
- name: Run mypy
5357
run: tox -e typing
54-
58+
5559
test:
5660
runs-on: ubuntu-latest
5761

5862
strategy:
5963
matrix:
60-
python-version:
61-
- 3.7
62-
- 3.8
63-
- 3.9
64+
python-version: ['3.10', '3.11', '3.12', '3.13']
6465

6566
steps:
6667
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v4.1.0
3+
rev: v4.6.0
44
hooks:
55
- id: trailing-whitespace
66
- id: check-toml
@@ -22,7 +22,7 @@ repos:
2222
hooks:
2323
- id: black
2424

25-
- repo: https://gitlab.com/pycqa/flake8
25+
- repo: https://github.com/PyCQA/flake8
2626
rev: "4.0.1"
2727
hooks:
2828
- id: flake8

astropylibrarian/algolia/records.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from urllib.parse import urlparse, urlunparse
1717

1818
from more_itertools import chunked
19-
from pydantic import UUID4, BaseModel, Field, HttpUrl, validator
19+
from pydantic.v1 import UUID4, BaseModel, Field, HttpUrl, validator
2020

2121
if TYPE_CHECKING:
2222
from astropylibrarian.keywords import KeywordDb

astropylibrarian/reducers/jupyterbook.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from typing import TYPE_CHECKING, Any, Dict, Iterator, List, Optional
77
from urllib.parse import urljoin, urlparse, urlunparse
88

9-
from pydantic import BaseModel, HttpUrl, validator
9+
from pydantic.v1 import BaseModel, HttpUrl, validator
1010

1111
from astropylibrarian.algolia.records import GuideRecord
1212
from astropylibrarian.reducers.utils import iter_sphinx_sections

setup.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ install_requires =
2727
# Pinning next two to match Algolia docs
2828
# https://www.algolia.com/doc/api-client/advanced/asynchronous-environments/python/language=python
2929
aiohttp>=2.0,<4.0
30-
async_timeout>=<4.0
30+
async_timeout>=4.0.3
3131
PyYAML
3232
pydantic
3333
typer
@@ -37,7 +37,7 @@ install_requires =
3737
dev =
3838
pytest>=6.1
3939
pytest-doctestplus
40-
types-pkg_resources
40+
types-setuptools
4141
types-PyYAML
4242
4343
[options.entry_points]

0 commit comments

Comments
 (0)