Skip to content

Commit

Permalink
Merge pull request #213 from pittcsc/add-3.13
Browse files Browse the repository at this point in the history
Add Python 3.13 support, drop Python 3.9 support
  • Loading branch information
azharichenko authored Dec 23, 2024
2 parents 435666f + 49f7200 commit a581eec
Show file tree
Hide file tree
Showing 7 changed files with 928 additions and 874 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/autotest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python: ["3.9", "3.10", "3.11", "3.12"]
python: ["3.10", "3.11", "3.12", "3.13"]

steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ repos:
rev: 24.4.2
hooks:
- id: black
language_version: python3.12
language_version: python3.13
# GitHub editor is 127 chars wide, see workflows in .github/
args: ["--line-length=127"]
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ pytest-cov = "*"
sphinx = "*"

[requires]
python_version = "3.12"
python_version = "3.13"
1,710 changes: 882 additions & 828 deletions Pipfile.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

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

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.

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

## Local Setup
Install Python 3.12 and ``pipenv``.
Install Python 3.13 and ``pipenv``.

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

Expand Down
2 changes: 1 addition & 1 deletion pittapi/lab.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def get_one_lab_data(lab_name: str) -> Lab:
elif up == 3:
out_of_service_computers += 1
else:
raise LabAPIError(f"Unknown 'up' value for {computer_info["addr"]} in {name}: {up}")
raise LabAPIError(f"Unknown 'up' value for {computer_info['addr']} in {name}: {up}")

return Lab(
name,
Expand Down
80 changes: 40 additions & 40 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,70 +1,70 @@
alabaster==0.7.16
babel==2.15.0
black==24.4.2
certifi==2024.7.4
alabaster==1.0.0
babel==2.16.0
black==24.10.0
certifi==2024.12.14
cfgv==3.4.0
charset-normalizer==3.3.2
charset-normalizer==3.4.0
click==8.1.7
coverage[toml]==7.5.4
distlib==0.3.8
coverage[toml]==7.6.9
distlib==0.3.9
docutils==0.21.2
filelock==3.15.4
flake8==7.1.0
identify==2.5.36
idna==3.7
filelock==3.16.1
flake8==7.1.1
identify==2.6.3
idna==3.10
imagesize==1.4.1
iniconfig==2.0.0
jinja2==3.1.4
markupsafe==2.1.5
markupsafe==3.0.2
mccabe==0.7.0
mypy-extensions==1.0.0
nodeenv==1.9.1
packaging==24.1
packaging==24.2
pathspec==0.12.1
platformdirs==4.2.2
platformdirs==4.3.6
pluggy==1.5.0
pre-commit==3.7.1
pycodestyle==2.12.0
pre-commit==4.0.1
pycodestyle==2.12.1
pyflakes==3.2.0
pygments==2.18.0
pytest==8.2.2
pytest-cov==5.0.0
pyyaml==6.0.1
pytest==8.3.4
pytest-cov==6.0.0
pyyaml==6.0.2
requests==2.32.3
snowballstemmer==2.2.0
sphinx==7.3.7
sphinxcontrib-applehelp==1.0.8
sphinxcontrib-devhelp==1.0.6
sphinxcontrib-htmlhelp==2.0.5
sphinx==8.1.3
sphinxcontrib-applehelp==2.0.0
sphinxcontrib-devhelp==2.0.0
sphinxcontrib-htmlhelp==2.1.0
sphinxcontrib-jsmath==1.0.1
sphinxcontrib-qthelp==1.0.7
sphinxcontrib-serializinghtml==1.1.10
urllib3==1.26.19
virtualenv==20.26.3
sphinxcontrib-qthelp==2.0.0
sphinxcontrib-serializinghtml==2.0.0
urllib3==1.26.20
virtualenv==20.28.0
appdirs==1.4.4
beautifulsoup4==4.12.3
bs4==0.0.2
cssselect==1.2.0
fake-useragent==1.5.1
gevent==24.2.1
greenlet==3.0.3
fake-useragent==2.0.3
gevent==24.11.1
greenlet==3.1.1
grequests==0.7.0
importlib-metadata==8.0.0
lxml==5.2.2
lxml-html-clean==0.1.1
importlib-metadata==8.5.0
lxml==5.3.0
lxml-html-clean==0.4.1
parse==1.20.2
pyee==11.1.0
pyee==11.1.1
pyppeteer==2.0.0
pyquery==2.0.0
pyquery==2.0.1
requests-html==0.10.0
responses==0.25.3
setuptools==70.2.0
soupsieve==2.5
tqdm==4.66.4
setuptools==75.6.0
soupsieve==2.6
tqdm==4.67.1
typing==3.7.4.3
typing-extensions==4.12.2
w3lib==2.2.1
websockets==10.4
zipp==3.19.2
zipp==3.21.0
zope.event==5.0
zope.interface==6.4.post2
zope.interface==7.2

0 comments on commit a581eec

Please sign in to comment.