Skip to content

Commit

Permalink
build: Add Python 3.13 to devcontainer (#48)
Browse files Browse the repository at this point in the history
Also adds Python 3.13 to the list of supported Python versions in
pyproject.toml.
  • Loading branch information
jordan-gillard authored Jan 11, 2025
1 parent 83185e1 commit eccfe2d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
10 changes: 6 additions & 4 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,18 @@ RUN apt-get update && apt-get install -y \
python3.9 python3.9-dev python3.9-venv \
python3.10 python3.10-dev python3.10-venv \
python3.11 python3.11-dev python3.11-venv \
python3.12 python3.12-dev python3.12-venv curl
python3.12 python3.12-dev python3.12-venv \
python3.13 python3.13-dev python3.13-venv \
curl

# This installs pip for the primary version of Python we'll use
# for development
RUN curl -sS https://bootstrap.pypa.io/get-pip.py | python3.12
RUN curl -sS https://bootstrap.pypa.io/get-pip.py | python3.13

# Set default python executable for when users run python or python3
# on the command line
RUN ln -sf /usr/bin/python3.12 /usr/bin/python
RUN ln -sf /usr/bin/python3.12 /usr/bin/python3
RUN ln -sf /usr/bin/python3.13 /usr/bin/python
RUN ln -sf /usr/bin/python3.13 /usr/bin/python3

# Install pipx, poetry, and tox
RUN python -m pip install --upgrade pip \
Expand Down
11 changes: 6 additions & 5 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@
"customizations": {
"vscode": {
"settings": {
"python.defaultInterpreterPath": "/usr/bin/python3.12"
"python.defaultInterpreterPath": "/usr/bin/python3.13"
},
"extensions": [
"ms-python.python",
"ms-python.vscode-pylance",
"ms-python.debugpy",
"mechatroner.rainbow-csv",
"ms-azuretools.vscode-docker",
"mechatroner.rainbow-csv"
"ms-python.black-formatter",
"ms-python.debugpy",
"ms-python.python",
"ms-python.vscode-pylance"
]
}
},
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Office/Business :: Financial",
]
keywords=["scraper", "edgar", "finance", "sec"]
Expand Down

0 comments on commit eccfe2d

Please sign in to comment.