From 7f7703d21860ea3377acd9931c9dec584dfe29a7 Mon Sep 17 00:00:00 2001 From: Ivaylo Bachvarov Date: Thu, 13 Mar 2025 15:01:57 +0200 Subject: [PATCH 1/2] Add .python-version instead of runtime.txt --- .gitignore | 3 --- .python-version | 1 + README.md | 2 +- runtime.txt | 1 - 4 files changed, 2 insertions(+), 5 deletions(-) create mode 100644 .python-version delete mode 100644 runtime.txt diff --git a/.gitignore b/.gitignore index 3140ada6..db760767 100644 --- a/.gitignore +++ b/.gitignore @@ -81,9 +81,6 @@ target/ profile_default/ ipython_config.py -# pyenv -.python-version - # pipenv # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. # However, in case of collaboration, if having platform-specific dependencies or dependencies diff --git a/.python-version b/.python-version new file mode 100644 index 00000000..3a4f41ef --- /dev/null +++ b/.python-version @@ -0,0 +1 @@ +3.13 \ No newline at end of file diff --git a/README.md b/README.md index 493ec115..8372393d 100644 --- a/README.md +++ b/README.md @@ -341,7 +341,7 @@ To get an overview of how Heroku deployment works, we recommend reading this fir 1. `Procfile` - Comes with default `web`, `worker` and `beat` processes. - Additionally, there's a `release` phase to run migrations safely, before releasing the new build. -1. `runtime.txt` +1. `.python-version` - Simply specifies the Python version to be used. 1. `requirements.txt` - Heroku requires a root-level `requirements.txt`, so we've added that. diff --git a/runtime.txt b/runtime.txt deleted file mode 100644 index 74d315a8..00000000 --- a/runtime.txt +++ /dev/null @@ -1 +0,0 @@ -python-3.12.4 From c71feaea481ef0ad904f44c19fda7524f35855ca Mon Sep 17 00:00:00 2001 From: Ivaylo Bachvarov Date: Thu, 13 Mar 2025 15:06:32 +0200 Subject: [PATCH 2/2] Set 3.12 to .python-vesion --- .python-version | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.python-version b/.python-version index 3a4f41ef..fdcfcfdf 100644 --- a/.python-version +++ b/.python-version @@ -1 +1 @@ -3.13 \ No newline at end of file +3.12 \ No newline at end of file