Skip to content

Commit

Permalink
chore: update dependencies related to ci and python (#817)
Browse files Browse the repository at this point in the history
* ci(deps): Update versions for CircleCI browser tools

* chore(deps): bump the python version to 3.12.3

And introduce asdf to manage the python version(s) in a local dev environment.

* chore: ignore .idea files
  • Loading branch information
eliflores authored Apr 19, 2024
1 parent d581fc6 commit 531f6e0
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ db.sqlite3
htmlcov
coverage.xml
geckodriver.log

.idea
1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python 3.12.3
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ setuptools = "==69.5.1"
[dev-packages]

[requires]
python_version = "3.9"
python_version = "3.12"
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 531f6e0

Please sign in to comment.