From fb2a6deb72fde8821591aa039271e7635ecfd8cf Mon Sep 17 00:00:00 2001 From: eliflores Date: Fri, 19 Apr 2024 18:56:44 +0200 Subject: [PATCH 1/3] ci(deps): Update versions for CircleCI browser tools --- .circleci/config.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 51ee5a22..325ace08 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,10 +1,10 @@ version: 2.1 orbs: - browser-tools: circleci/browser-tools@1.2.1 + browser-tools: circleci/browser-tools@1.4.8 jobs: test: docker: - - image: cimg/python:3.9-browsers + - image: cimg/python:3.12.3-browsers environment: PIPENV_VENV_IN_PROJECT: true working_directory: ~/mignonnesaurus-blog From 897c1284fc002689ba13593c9aa09db312a3712e Mon Sep 17 00:00:00 2001 From: eliflores Date: Fri, 19 Apr 2024 19:05:52 +0200 Subject: [PATCH 2/3] chore(deps): bump the python version to 3.12.3 And introduce asdf to manage the python version(s) in a local dev environment. --- .tool-versions | 1 + Pipfile | 2 +- README.md | 11 +++++++---- 3 files changed, 9 insertions(+), 5 deletions(-) create mode 100644 .tool-versions diff --git a/.tool-versions b/.tool-versions new file mode 100644 index 00000000..1d7a709a --- /dev/null +++ b/.tool-versions @@ -0,0 +1 @@ +python 3.12.3 diff --git a/Pipfile b/Pipfile index 13f51c8c..cdccc907 100644 --- a/Pipfile +++ b/Pipfile @@ -36,4 +36,4 @@ setuptools = "==69.5.1" [dev-packages] [requires] -python_version = "3.9" +python_version = "3.12" diff --git a/README.md b/README.md index bcd1a76f..3f3bf06a 100644 --- a/README.md +++ b/README.md @@ -34,11 +34,14 @@ I :yellow_heart: the [Django Girls Tutorial](https://tutorial.djangogirls.org/en ### How to run the project locally? -1. Make sure you have [GNU Make](https://www.gnu.org/software/make/) installed on your machine. +1. Install the version of Python the [.tool-versions](.tool-versions) file. + * You may want to use [asdf](https://asdf-vm.com/) for this purpose. + +2. Make sure you have [GNU Make](https://www.gnu.org/software/make/) installed on your machine. * A [Makefile](Makefile) was added to the project to simplify some tasks. -2. The project uses [pipenv](https://github.com/pypa/pipenv) to manage the Python dependencies and facilitate the - workflow when working with a virtualenv. So, please [install pipenv](https://github.com/pypa/pipenv#installation) +3. The project uses [pipenv](https://github.com/pypa/pipenv) to manage the Python dependencies and facilitate the + workflow when working with a virtualenv. You'll need to [install pipenv](https://github.com/pypa/pipenv#installation) before getting started: ```bash brew install pipenv @@ -63,7 +66,7 @@ make runserver ### Test suite -All the tests that are run as part of CI are in the [tests](tests) folder and you can run them locally with: +All the tests that are run as part of CI are in the [tests](tests) folder, and you can run them locally with: ```bash python manage.py test tests From 1c8043b84a34c9dd3860c6505e2369bd4129727b Mon Sep 17 00:00:00 2001 From: eliflores Date: Fri, 19 Apr 2024 19:07:20 +0200 Subject: [PATCH 3/3] chore: ignore .idea files --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index 478bdd5b..f2cb7431 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,5 @@ db.sqlite3 htmlcov coverage.xml geckodriver.log + +.idea