mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-18 05:29:38 -04:00
Merge pull request #2875 from GSA/upgrade_python_again
upgrade python to 3.13.2
This commit is contained in:
4
.github/actions/setup-project/action.yml
vendored
4
.github/actions/setup-project/action.yml
vendored
@@ -9,10 +9,10 @@ runs:
|
||||
sudo apt-get update \
|
||||
&& sudo apt-get install -y --no-install-recommends \
|
||||
libcurl4-openssl-dev
|
||||
- name: Set up Python 3.12.9
|
||||
- name: Set up Python 3.13.2
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: "3.12.9"
|
||||
python-version: "3.13.2"
|
||||
- name: Install poetry
|
||||
shell: bash
|
||||
run: pip install poetry==2.1.3
|
||||
|
||||
16
README.md
16
README.md
@@ -189,12 +189,12 @@ session to make the changes take effect.
|
||||
Now we're ready to install the Python version we need with `pyenv`, like so:
|
||||
|
||||
```sh
|
||||
pyenv install 3.12
|
||||
pyenv install 3.13
|
||||
```
|
||||
|
||||
This will install the latest version of Python 3.12.
|
||||
This will install the latest version of Python 3.13.
|
||||
|
||||
_NOTE: This project currently runs on Python 3.12.x._
|
||||
_NOTE: This project currently runs on Python 3.13.x._
|
||||
|
||||
#### [API Step] Python Dependency Installation
|
||||
|
||||
@@ -246,12 +246,12 @@ git clone git@github.com:GSA/notifications-admin.git
|
||||
|
||||
Now go into the project directory (`notifications-admin` by default), create a
|
||||
virtual environment, and set the local Python version to point to the virtual
|
||||
environment (assumes version Python `3.12.9` is what is installed on your
|
||||
environment (assumes version Python `3.13.2` is what is installed on your
|
||||
machine):
|
||||
|
||||
```sh
|
||||
cd notifications-admin
|
||||
pyenv virtualenv 3.12.9 notify-admin
|
||||
pyenv virtualenv 3.13.2 notify-admin
|
||||
pyenv local notify-admin
|
||||
```
|
||||
|
||||
@@ -284,10 +284,10 @@ If you're upgrading an existing project to a newer version of Python, you can
|
||||
follow these steps to get yourself up-to-date.
|
||||
|
||||
First, use `pyenv` to install the newer version of Python you'd like to use;
|
||||
we'll use `3.12` in our example here since we recently upgraded to this version:
|
||||
we'll use `3.13` in our example here since we recently upgraded to this version:
|
||||
|
||||
```sh
|
||||
pyenv install 3.12
|
||||
pyenv install 3.13
|
||||
```
|
||||
|
||||
Next, delete the virtual environment you previously had set up. If you followed
|
||||
@@ -302,7 +302,7 @@ environment with the newer version of Python you just installed:
|
||||
|
||||
```sh
|
||||
cd notifications-admin
|
||||
pyenv virtualenv 3.12.9 notify-admin
|
||||
pyenv virtualenv 3.13.2 notify-admin
|
||||
pyenv local notify-admin
|
||||
```
|
||||
|
||||
|
||||
918
poetry.lock
generated
918
poetry.lock
generated
File diff suppressed because it is too large
Load Diff
@@ -8,7 +8,7 @@ package-mode = false
|
||||
|
||||
[tool.poetry.dependencies]
|
||||
axe-core-python = "^0.1.0"
|
||||
python = "^3.12.9"
|
||||
python = "^3.13.2"
|
||||
ago = "~=0.1.0"
|
||||
beautifulsoup4 = "^4.13.5"
|
||||
blinker = "~=1.8"
|
||||
|
||||
@@ -1 +1 @@
|
||||
python-3.12.x
|
||||
python-3.13.x
|
||||
|
||||
Reference in New Issue
Block a user