From 95c21a5cb306359b17002003ec78412218c63919 Mon Sep 17 00:00:00 2001 From: "Wesley C. Hinkle" Date: Sat, 21 Jun 2025 19:42:37 -0700 Subject: [PATCH 01/10] Update README.md --- README.md | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8b35464c..3b6d454f 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,12 @@ # Example application code for the "Architecture Patterns with Python" book +>## Downstream Fixes +>I, [evokateur](https://github.com/evokateur), will push fixes that make the tests +>pass in chapter branches here. +> +>I will keep the version of Python at 3.8. This will be good for sanity checks as I'm +>[coding along](https://github.com/evokateur/python-architecture) at 3.13 + ## Chapters Each chapter has its own branch which contains all the commits for that chapter, @@ -33,11 +40,20 @@ make up make all # builds, brings containers up, runs tests ``` -## Creating a local virtualenv (optional) +## Creating a local virtualenv (~optional~ recommended) ```sh python3.8 -m venv .venv && source .venv/bin/activate # or however you like to create virtualenvs +``` +>_(I like to do it like this)_ +>``` +>pyenv shell 3.8 +>python -m venv .venv +>source .venv/bin/activate +>``` + +``` # for chapter 1 pip install pytest From e7b0974ec9d21210b0ce483998d7def8f4b43f8e Mon Sep 17 00:00:00 2001 From: "Wesley C. Hinkle" Date: Sat, 21 Jun 2025 19:52:26 -0700 Subject: [PATCH 02/10] Update README.md --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 3b6d454f..9b6fa8a2 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,10 @@ > >I will keep the version of Python at 3.8. This will be good for sanity checks as I'm >[coding along](https://github.com/evokateur/python-architecture) at 3.13 +> +>### Fixed: +> +> - https://github.com/cosmicpython/code/compare/chapter_02_repository...evokateur:python-architecture-code:chapter_02_repository ## Chapters From 9bb8defd1aec87ca97cdc225a64815878048ab59 Mon Sep 17 00:00:00 2001 From: "Wesley C. Hinkle" Date: Sat, 21 Jun 2025 20:13:02 -0700 Subject: [PATCH 03/10] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9b6fa8a2..8054d387 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,8 @@ > >### Fixed: > -> - https://github.com/cosmicpython/code/compare/chapter_02_repository...evokateur:python-architecture-code:chapter_02_repository +> - [chapter_02_repository](https://github.com/cosmicpython/code/compare/chapter_02_repository...evokateur:python-architecture-code:chapter_02_repository) +> - [chapter_04_service_layer](https://github.com/cosmicpython/code/compare/chapter_04_service_layer...evokateur:python-architecture-code:chapter_04_service_layer) ## Chapters From c0214849d9d8b3aa31632806453bfe7c22a6b397 Mon Sep 17 00:00:00 2001 From: "Wesley C. Hinkle" Date: Sat, 21 Jun 2025 20:15:57 -0700 Subject: [PATCH 04/10] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8054d387..c3b8ecab 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ # Example application code for the "Architecture Patterns with Python" book >## Downstream Fixes ->I, [evokateur](https://github.com/evokateur), will push fixes that make the tests ->pass in chapter branches here. +>I, [evokateur](https://github.com/evokateur), will push fixes (mostly having to do +>with SqlAlchemy 2.0) that make the tests pass in chapter branches here. > >I will keep the version of Python at 3.8. This will be good for sanity checks as I'm >[coding along](https://github.com/evokateur/python-architecture) at 3.13 From da58a9124e6746af6d26b773c5978155ecbd843a Mon Sep 17 00:00:00 2001 From: "Wesley C. Hinkle" Date: Wed, 25 Jun 2025 22:40:32 -0700 Subject: [PATCH 05/10] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c3b8ecab..9c240fba 100644 --- a/README.md +++ b/README.md @@ -9,8 +9,8 @@ > >### Fixed: > -> - [chapter_02_repository](https://github.com/cosmicpython/code/compare/chapter_02_repository...evokateur:python-architecture-code:chapter_02_repository) -> - [chapter_04_service_layer](https://github.com/cosmicpython/code/compare/chapter_04_service_layer...evokateur:python-architecture-code:chapter_04_service_layer) +> - [chapter_02_repository](https://github.com/evokateur/python-architecture-code/tree/chapter_02_repository) +> - [chapter_04_service_layer](https://github.com/evokateur/python-architecture-code/tree/chapter_04_service_layer) ## Chapters From ee97dd48c6a8da67f491a3888aa9663a545a9f6c Mon Sep 17 00:00:00 2001 From: "Wesley C. Hinkle" Date: Fri, 27 Jun 2025 20:17:14 -0700 Subject: [PATCH 06/10] update README --- README.md | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 9c240fba..20ac9896 100644 --- a/README.md +++ b/README.md @@ -1,16 +1,19 @@ # Example application code for the "Architecture Patterns with Python" book >## Downstream Fixes +> >I, [evokateur](https://github.com/evokateur), will push fixes (mostly having to do >with SqlAlchemy 2.0) that make the tests pass in chapter branches here. > >I will keep the version of Python at 3.8. This will be good for sanity checks as I'm >[coding along](https://github.com/evokateur/python-architecture) at 3.13 > ->### Fixed: +>### Tests Passing Branches > > - [chapter_02_repository](https://github.com/evokateur/python-architecture-code/tree/chapter_02_repository) > - [chapter_04_service_layer](https://github.com/evokateur/python-architecture-code/tree/chapter_04_service_layer) +> - [master](https://github.com/evokateur/python-architecture-code) (SqlAlchemy pinned to <2 upstream) +(fixed upstream) ## Chapters @@ -19,20 +22,17 @@ so it has the state that corresponds to the _end_ of that chapter. If you want to try and code along with a chapter, you'll want to check out the branch for the previous chapter. -https://github.com/cosmicpython/code/branches/all - + ## Exercises Branches for the exercises follow the convention `{chapter_name}_exercise`, -eg https://github.com/cosmicpython/code/tree/chapter_04_service_layer_exercise - +eg ## Requirements -* docker with docker-compose -* for chapters 1 and 2, and optionally for the rest: a local python3.8 virtualenv - +- docker with docker-compose +- for chapters 1 and 2, and optionally for the rest: a local python3.8 virtualenv ## Building the containers @@ -52,6 +52,7 @@ python3.8 -m venv .venv && source .venv/bin/activate # or however you like to cr ``` >_(I like to do it like this)_ +> >``` >pyenv shell 3.8 >python -m venv .venv @@ -75,7 +76,6 @@ pip install -e src/ - ## Running the tests ```sh @@ -94,4 +94,3 @@ pytest tests/e2e ## Makefile There are more useful commands in the makefile, have a look and try them out. - From 405ccbf8c9df99ab391f24f7af013808a0e9f80f Mon Sep 17 00:00:00 2001 From: "Wesley C. Hinkle" Date: Fri, 27 Jun 2025 20:18:02 -0700 Subject: [PATCH 07/10] oops --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index 20ac9896..759812bf 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,6 @@ > - [chapter_02_repository](https://github.com/evokateur/python-architecture-code/tree/chapter_02_repository) > - [chapter_04_service_layer](https://github.com/evokateur/python-architecture-code/tree/chapter_04_service_layer) > - [master](https://github.com/evokateur/python-architecture-code) (SqlAlchemy pinned to <2 upstream) -(fixed upstream) ## Chapters From 93fd3c5a96036d322aec6342a1231d0334fc1f83 Mon Sep 17 00:00:00 2001 From: "Wesley C. Hinkle" Date: Fri, 27 Jun 2025 20:19:59 -0700 Subject: [PATCH 08/10] Update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 759812bf..7a3e69f2 100644 --- a/README.md +++ b/README.md @@ -10,9 +10,9 @@ > >### Tests Passing Branches > -> - [chapter_02_repository](https://github.com/evokateur/python-architecture-code/tree/chapter_02_repository) -> - [chapter_04_service_layer](https://github.com/evokateur/python-architecture-code/tree/chapter_04_service_layer) -> - [master](https://github.com/evokateur/python-architecture-code) (SqlAlchemy pinned to <2 upstream) +> - [chapter_02_repository](https://github.com/evokateur/python-architecture-code/tree/chapter_02_repository) (works with SqlAlchemy 2.0) +> - [chapter_04_service_layer](https://github.com/evokateur/python-architecture-code/tree/chapter_04_service_layer) (ditto) +> - [master](https://github.com/evokateur/python-architecture-code) (SqlAlchemy pinned to <2 upstream, aha.) ## Chapters From a18bf7f56799a467052cbc8ddfd3beba1878bb10 Mon Sep 17 00:00:00 2001 From: "Wesley C. Hinkle" Date: Sat, 28 Jun 2025 23:51:36 -0700 Subject: [PATCH 09/10] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7a3e69f2..668ea1ba 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ >with SqlAlchemy 2.0) that make the tests pass in chapter branches here. > >I will keep the version of Python at 3.8. This will be good for sanity checks as I'm ->[coding along](https://github.com/evokateur/python-architecture) at 3.13 +>[coding along](https://github.com/evokateur/python-architecture) at ~3.13~ 3.12 > >### Tests Passing Branches > From 9ce255867e9d5ee332a3f81b33554bf8bdaba697 Mon Sep 17 00:00:00 2001 From: "Wesley C. Hinkle" Date: Sat, 5 Jul 2025 13:09:22 -0700 Subject: [PATCH 10/10] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 668ea1ba..9497c8b9 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ >with SqlAlchemy 2.0) that make the tests pass in chapter branches here. > >I will keep the version of Python at 3.8. This will be good for sanity checks as I'm ->[coding along](https://github.com/evokateur/python-architecture) at ~3.13~ 3.12 +>[coding along](https://github.com/evokateur/python-architecture) in 3.12 > >### Tests Passing Branches >