Skip to content

Commit a581eec

Browse files
authored
Merge pull request #213 from pittcsc/add-3.13
Add Python 3.13 support, drop Python 3.9 support
2 parents 435666f + 49f7200 commit a581eec

File tree

7 files changed

+928
-874
lines changed

7 files changed

+928
-874
lines changed

.github/workflows/autotest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
strategy:
1515
matrix:
16-
python: ["3.9", "3.10", "3.11", "3.12"]
16+
python: ["3.10", "3.11", "3.12", "3.13"]
1717

1818
steps:
1919
- uses: actions/checkout@v4

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ repos:
2222
rev: 24.4.2
2323
hooks:
2424
- id: black
25-
language_version: python3.12
25+
language_version: python3.13
2626
# GitHub editor is 127 chars wide, see workflows in .github/
2727
args: ["--line-length=127"]

Pipfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ pytest-cov = "*"
2121
sphinx = "*"
2222

2323
[requires]
24-
python_version = "3.12"
24+
python_version = "3.13"

Pipfile.lock

Lines changed: 882 additions & 828 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
![Build Status](https://img.shields.io/github/actions/workflow/status/pittcsc/PittAPI/autotest.yml?branch=dev)
44
![License](https://img.shields.io/badge/license-GPLv2-blue.svg)
5-
![Python Version](https://img.shields.io/badge/python-%3E%3D%203.9-green.svg)
5+
![Python Version](https://img.shields.io/badge/python-%3E%3D%203.10-green.svg)
66

77
The Pitt API is an unofficial Python API made by Ritwik Gupta at the University of Pittsburgh in an effort to get more open data from Pitt.
88

@@ -59,7 +59,7 @@ hours = dining.get_location_hours("The Eatery", datetime.datetime(2024, 4, 12))
5959
```
6060

6161
## Local Setup
62-
Install Python 3.12 and ``pipenv``.
62+
Install Python 3.13 and ``pipenv``.
6363

6464
Run ``pipenv install`` and ``pipenv shell`` to create and setup the virtual environment.
6565

pittapi/lab.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def get_one_lab_data(lab_name: str) -> Lab:
113113
elif up == 3:
114114
out_of_service_computers += 1
115115
else:
116-
raise LabAPIError(f"Unknown 'up' value for {computer_info["addr"]} in {name}: {up}")
116+
raise LabAPIError(f"Unknown 'up' value for {computer_info['addr']} in {name}: {up}")
117117

118118
return Lab(
119119
name,

requirements.txt

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,70 @@
1-
alabaster==0.7.16
2-
babel==2.15.0
3-
black==24.4.2
4-
certifi==2024.7.4
1+
alabaster==1.0.0
2+
babel==2.16.0
3+
black==24.10.0
4+
certifi==2024.12.14
55
cfgv==3.4.0
6-
charset-normalizer==3.3.2
6+
charset-normalizer==3.4.0
77
click==8.1.7
8-
coverage[toml]==7.5.4
9-
distlib==0.3.8
8+
coverage[toml]==7.6.9
9+
distlib==0.3.9
1010
docutils==0.21.2
11-
filelock==3.15.4
12-
flake8==7.1.0
13-
identify==2.5.36
14-
idna==3.7
11+
filelock==3.16.1
12+
flake8==7.1.1
13+
identify==2.6.3
14+
idna==3.10
1515
imagesize==1.4.1
1616
iniconfig==2.0.0
1717
jinja2==3.1.4
18-
markupsafe==2.1.5
18+
markupsafe==3.0.2
1919
mccabe==0.7.0
2020
mypy-extensions==1.0.0
2121
nodeenv==1.9.1
22-
packaging==24.1
22+
packaging==24.2
2323
pathspec==0.12.1
24-
platformdirs==4.2.2
24+
platformdirs==4.3.6
2525
pluggy==1.5.0
26-
pre-commit==3.7.1
27-
pycodestyle==2.12.0
26+
pre-commit==4.0.1
27+
pycodestyle==2.12.1
2828
pyflakes==3.2.0
2929
pygments==2.18.0
30-
pytest==8.2.2
31-
pytest-cov==5.0.0
32-
pyyaml==6.0.1
30+
pytest==8.3.4
31+
pytest-cov==6.0.0
32+
pyyaml==6.0.2
3333
requests==2.32.3
3434
snowballstemmer==2.2.0
35-
sphinx==7.3.7
36-
sphinxcontrib-applehelp==1.0.8
37-
sphinxcontrib-devhelp==1.0.6
38-
sphinxcontrib-htmlhelp==2.0.5
35+
sphinx==8.1.3
36+
sphinxcontrib-applehelp==2.0.0
37+
sphinxcontrib-devhelp==2.0.0
38+
sphinxcontrib-htmlhelp==2.1.0
3939
sphinxcontrib-jsmath==1.0.1
40-
sphinxcontrib-qthelp==1.0.7
41-
sphinxcontrib-serializinghtml==1.1.10
42-
urllib3==1.26.19
43-
virtualenv==20.26.3
40+
sphinxcontrib-qthelp==2.0.0
41+
sphinxcontrib-serializinghtml==2.0.0
42+
urllib3==1.26.20
43+
virtualenv==20.28.0
4444
appdirs==1.4.4
4545
beautifulsoup4==4.12.3
4646
bs4==0.0.2
4747
cssselect==1.2.0
48-
fake-useragent==1.5.1
49-
gevent==24.2.1
50-
greenlet==3.0.3
48+
fake-useragent==2.0.3
49+
gevent==24.11.1
50+
greenlet==3.1.1
5151
grequests==0.7.0
52-
importlib-metadata==8.0.0
53-
lxml==5.2.2
54-
lxml-html-clean==0.1.1
52+
importlib-metadata==8.5.0
53+
lxml==5.3.0
54+
lxml-html-clean==0.4.1
5555
parse==1.20.2
56-
pyee==11.1.0
56+
pyee==11.1.1
5757
pyppeteer==2.0.0
58-
pyquery==2.0.0
58+
pyquery==2.0.1
5959
requests-html==0.10.0
6060
responses==0.25.3
61-
setuptools==70.2.0
62-
soupsieve==2.5
63-
tqdm==4.66.4
61+
setuptools==75.6.0
62+
soupsieve==2.6
63+
tqdm==4.67.1
6464
typing==3.7.4.3
6565
typing-extensions==4.12.2
6666
w3lib==2.2.1
6767
websockets==10.4
68-
zipp==3.19.2
68+
zipp==3.21.0
6969
zope.event==5.0
70-
zope.interface==6.4.post2
70+
zope.interface==7.2

0 commit comments

Comments
 (0)