From d64317a7e91f6b5311fc12049bdb6e66da7ed0a4 Mon Sep 17 00:00:00 2001 From: Michael Kennedy Date: Wed, 28 Aug 2024 09:20:52 -0700 Subject: [PATCH] Update to latest versions of libraries and patch up some changes needed for the code. --- .../first_site/requirements.txt | 20 +++++------ .../final/requirements.txt | 20 +++++------ app/ch06_routing/final/requirements.txt | 20 +++++------ app/ch06_routing/starter/requirements.txt | 20 +++++------ .../final/requirements.txt | 20 +++++------ .../starter/requirements.txt | 20 +++++------ app/ch09_sqlalchemy/final/requirements.txt | 24 ++++++------- app/ch09_sqlalchemy/starter/requirements.txt | 20 +++++------ .../final/pypi_org/views/package_views.py | 2 +- .../final/requirements.txt | 30 +++++++--------- .../starter/requirements.txt | 24 ++++++------- .../final/pypi_org/views/package_views.py | 2 +- app/ch11_migrations/final/requirements.txt | 34 ++++++++----------- .../starter/pypi_org/views/package_views.py | 2 +- app/ch11_migrations/starter/requirements.txt | 30 +++++++--------- .../final/pypi_org/views/package_views.py | 2 +- app/ch12-forms/final/requirements.txt | 34 ++++++++----------- .../starter/pypi_org/views/package_views.py | 2 +- app/ch12-forms/starter/requirements.txt | 34 ++++++++----------- .../packages/pagedetails_viewmodel.py | 2 +- app/ch13-validation/final/requirements.txt | 34 ++++++++----------- .../starter/pypi_org/views/package_views.py | 2 +- app/ch13-validation/starter/requirements.txt | 34 ++++++++----------- .../packages/pagedetails_viewmodel.py | 2 +- app/ch14_testing/final/requirements.txt | 34 ++++++++----------- .../packages/pagedetails_viewmodel.py | 2 +- app/ch14_testing/starter/requirements.txt | 34 ++++++++----------- .../packages/pagedetails_viewmodel.py | 2 +- app/ch15_deploy/final/requirements.txt | 34 ++++++++----------- .../packages/pagedetails_viewmodel.py | 2 +- app/ch15_deploy/starter/requirements.txt | 34 ++++++++----------- 31 files changed, 248 insertions(+), 328 deletions(-) diff --git a/app/ch04_first_site/first_site_final/first_site/requirements.txt b/app/ch04_first_site/first_site_final/first_site/requirements.txt index 12e1f645..1603e3f2 100644 --- a/app/ch04_first_site/first_site_final/first_site/requirements.txt +++ b/app/ch04_first_site/first_site_final/first_site/requirements.txt @@ -1,22 +1,18 @@ -# -# This file is autogenerated by pip-compile with Python 3.12 -# by the following command: -# -# pip-compile requirements.piptools -# -blinker==1.7.0 +# This file was autogenerated by uv via the following command: +# uv pip compile requirements.piptools --output-file requirements.txt +blinker==1.8.2 # via flask click==8.1.7 # via flask -flask==3.0.0 +flask==3.0.3 # via -r requirements.piptools -itsdangerous==2.1.2 +itsdangerous==2.2.0 # via flask -jinja2==3.1.2 +jinja2==3.1.4 # via flask -markupsafe==2.1.3 +markupsafe==2.1.5 # via # jinja2 # werkzeug -werkzeug==3.0.1 +werkzeug==3.0.4 # via flask diff --git a/app/ch05_jinja_templates/final/requirements.txt b/app/ch05_jinja_templates/final/requirements.txt index 12e1f645..1603e3f2 100644 --- a/app/ch05_jinja_templates/final/requirements.txt +++ b/app/ch05_jinja_templates/final/requirements.txt @@ -1,22 +1,18 @@ -# -# This file is autogenerated by pip-compile with Python 3.12 -# by the following command: -# -# pip-compile requirements.piptools -# -blinker==1.7.0 +# This file was autogenerated by uv via the following command: +# uv pip compile requirements.piptools --output-file requirements.txt +blinker==1.8.2 # via flask click==8.1.7 # via flask -flask==3.0.0 +flask==3.0.3 # via -r requirements.piptools -itsdangerous==2.1.2 +itsdangerous==2.2.0 # via flask -jinja2==3.1.2 +jinja2==3.1.4 # via flask -markupsafe==2.1.3 +markupsafe==2.1.5 # via # jinja2 # werkzeug -werkzeug==3.0.1 +werkzeug==3.0.4 # via flask diff --git a/app/ch06_routing/final/requirements.txt b/app/ch06_routing/final/requirements.txt index 12e1f645..1603e3f2 100644 --- a/app/ch06_routing/final/requirements.txt +++ b/app/ch06_routing/final/requirements.txt @@ -1,22 +1,18 @@ -# -# This file is autogenerated by pip-compile with Python 3.12 -# by the following command: -# -# pip-compile requirements.piptools -# -blinker==1.7.0 +# This file was autogenerated by uv via the following command: +# uv pip compile requirements.piptools --output-file requirements.txt +blinker==1.8.2 # via flask click==8.1.7 # via flask -flask==3.0.0 +flask==3.0.3 # via -r requirements.piptools -itsdangerous==2.1.2 +itsdangerous==2.2.0 # via flask -jinja2==3.1.2 +jinja2==3.1.4 # via flask -markupsafe==2.1.3 +markupsafe==2.1.5 # via # jinja2 # werkzeug -werkzeug==3.0.1 +werkzeug==3.0.4 # via flask diff --git a/app/ch06_routing/starter/requirements.txt b/app/ch06_routing/starter/requirements.txt index 12e1f645..1603e3f2 100644 --- a/app/ch06_routing/starter/requirements.txt +++ b/app/ch06_routing/starter/requirements.txt @@ -1,22 +1,18 @@ -# -# This file is autogenerated by pip-compile with Python 3.12 -# by the following command: -# -# pip-compile requirements.piptools -# -blinker==1.7.0 +# This file was autogenerated by uv via the following command: +# uv pip compile requirements.piptools --output-file requirements.txt +blinker==1.8.2 # via flask click==8.1.7 # via flask -flask==3.0.0 +flask==3.0.3 # via -r requirements.piptools -itsdangerous==2.1.2 +itsdangerous==2.2.0 # via flask -jinja2==3.1.2 +jinja2==3.1.4 # via flask -markupsafe==2.1.3 +markupsafe==2.1.5 # via # jinja2 # werkzeug -werkzeug==3.0.1 +werkzeug==3.0.4 # via flask diff --git a/app/ch08_adding_our_design/final/requirements.txt b/app/ch08_adding_our_design/final/requirements.txt index 12e1f645..1603e3f2 100644 --- a/app/ch08_adding_our_design/final/requirements.txt +++ b/app/ch08_adding_our_design/final/requirements.txt @@ -1,22 +1,18 @@ -# -# This file is autogenerated by pip-compile with Python 3.12 -# by the following command: -# -# pip-compile requirements.piptools -# -blinker==1.7.0 +# This file was autogenerated by uv via the following command: +# uv pip compile requirements.piptools --output-file requirements.txt +blinker==1.8.2 # via flask click==8.1.7 # via flask -flask==3.0.0 +flask==3.0.3 # via -r requirements.piptools -itsdangerous==2.1.2 +itsdangerous==2.2.0 # via flask -jinja2==3.1.2 +jinja2==3.1.4 # via flask -markupsafe==2.1.3 +markupsafe==2.1.5 # via # jinja2 # werkzeug -werkzeug==3.0.1 +werkzeug==3.0.4 # via flask diff --git a/app/ch08_adding_our_design/starter/requirements.txt b/app/ch08_adding_our_design/starter/requirements.txt index 12e1f645..1603e3f2 100644 --- a/app/ch08_adding_our_design/starter/requirements.txt +++ b/app/ch08_adding_our_design/starter/requirements.txt @@ -1,22 +1,18 @@ -# -# This file is autogenerated by pip-compile with Python 3.12 -# by the following command: -# -# pip-compile requirements.piptools -# -blinker==1.7.0 +# This file was autogenerated by uv via the following command: +# uv pip compile requirements.piptools --output-file requirements.txt +blinker==1.8.2 # via flask click==8.1.7 # via flask -flask==3.0.0 +flask==3.0.3 # via -r requirements.piptools -itsdangerous==2.1.2 +itsdangerous==2.2.0 # via flask -jinja2==3.1.2 +jinja2==3.1.4 # via flask -markupsafe==2.1.3 +markupsafe==2.1.5 # via # jinja2 # werkzeug -werkzeug==3.0.1 +werkzeug==3.0.4 # via flask diff --git a/app/ch09_sqlalchemy/final/requirements.txt b/app/ch09_sqlalchemy/final/requirements.txt index c38d2828..f4803bb6 100644 --- a/app/ch09_sqlalchemy/final/requirements.txt +++ b/app/ch09_sqlalchemy/final/requirements.txt @@ -1,26 +1,22 @@ -# -# This file is autogenerated by pip-compile with Python 3.11 -# by the following command: -# -# pip-compile requirements.piptools -# -blinker==1.7.0 +# This file was autogenerated by uv via the following command: +# uv pip compile requirements.piptools --output-file requirements.txt +blinker==1.8.2 # via flask click==8.1.7 # via flask -flask==3.0.0 +flask==3.0.3 # via -r requirements.piptools -itsdangerous==2.1.2 +itsdangerous==2.2.0 # via flask -jinja2==3.1.2 +jinja2==3.1.4 # via flask -markupsafe==2.1.3 +markupsafe==2.1.5 # via # jinja2 # werkzeug -sqlalchemy==2.0.23 +sqlalchemy==2.0.32 # via -r requirements.piptools -typing-extensions==4.9.0 +typing-extensions==4.12.2 # via sqlalchemy -werkzeug==3.0.1 +werkzeug==3.0.4 # via flask diff --git a/app/ch09_sqlalchemy/starter/requirements.txt b/app/ch09_sqlalchemy/starter/requirements.txt index 12e1f645..1603e3f2 100644 --- a/app/ch09_sqlalchemy/starter/requirements.txt +++ b/app/ch09_sqlalchemy/starter/requirements.txt @@ -1,22 +1,18 @@ -# -# This file is autogenerated by pip-compile with Python 3.12 -# by the following command: -# -# pip-compile requirements.piptools -# -blinker==1.7.0 +# This file was autogenerated by uv via the following command: +# uv pip compile requirements.piptools --output-file requirements.txt +blinker==1.8.2 # via flask click==8.1.7 # via flask -flask==3.0.0 +flask==3.0.3 # via -r requirements.piptools -itsdangerous==2.1.2 +itsdangerous==2.2.0 # via flask -jinja2==3.1.2 +jinja2==3.1.4 # via flask -markupsafe==2.1.3 +markupsafe==2.1.5 # via # jinja2 # werkzeug -werkzeug==3.0.1 +werkzeug==3.0.4 # via flask diff --git a/app/ch10_using_sqlachemy/final/pypi_org/views/package_views.py b/app/ch10_using_sqlachemy/final/pypi_org/views/package_views.py index 92d9109a..4589fe56 100644 --- a/app/ch10_using_sqlachemy/final/pypi_org/views/package_views.py +++ b/app/ch10_using_sqlachemy/final/pypi_org/views/package_views.py @@ -21,7 +21,7 @@ def package_details(package_name: str): is_latest = True if package.releases: - latest_release = package.releases[0] + latest_release = package.releases latest_version = latest_release.version_text return { diff --git a/app/ch10_using_sqlachemy/final/requirements.txt b/app/ch10_using_sqlachemy/final/requirements.txt index 090ec616..d532261b 100644 --- a/app/ch10_using_sqlachemy/final/requirements.txt +++ b/app/ch10_using_sqlachemy/final/requirements.txt @@ -1,36 +1,32 @@ -# -# This file is autogenerated by pip-compile with Python 3.11 -# by the following command: -# -# pip-compile requirements.piptools -# -blinker==1.7.0 +# This file was autogenerated by uv via the following command: +# uv pip compile requirements.piptools --output-file requirements.txt +blinker==1.8.2 # via flask click==8.1.7 # via flask -flask==3.0.0 +flask==3.0.3 # via -r requirements.piptools -itsdangerous==2.1.2 +itsdangerous==2.2.0 # via flask -jinja2==3.1.2 +jinja2==3.1.4 # via flask -markupsafe==2.1.3 +markupsafe==2.1.5 # via # jinja2 # werkzeug -progressbar2==4.2.0 +progressbar2==4.4.2 # via -r requirements.piptools -python-dateutil==2.8.2 +python-dateutil==2.9.0.post0 # via -r requirements.piptools -python-utils==3.8.1 +python-utils==3.8.2 # via progressbar2 six==1.16.0 # via python-dateutil -sqlalchemy==2.0.23 +sqlalchemy==2.0.32 # via -r requirements.piptools -typing-extensions==4.9.0 +typing-extensions==4.12.2 # via # python-utils # sqlalchemy -werkzeug==3.0.1 +werkzeug==3.0.4 # via flask diff --git a/app/ch10_using_sqlachemy/starter/requirements.txt b/app/ch10_using_sqlachemy/starter/requirements.txt index c38d2828..f4803bb6 100644 --- a/app/ch10_using_sqlachemy/starter/requirements.txt +++ b/app/ch10_using_sqlachemy/starter/requirements.txt @@ -1,26 +1,22 @@ -# -# This file is autogenerated by pip-compile with Python 3.11 -# by the following command: -# -# pip-compile requirements.piptools -# -blinker==1.7.0 +# This file was autogenerated by uv via the following command: +# uv pip compile requirements.piptools --output-file requirements.txt +blinker==1.8.2 # via flask click==8.1.7 # via flask -flask==3.0.0 +flask==3.0.3 # via -r requirements.piptools -itsdangerous==2.1.2 +itsdangerous==2.2.0 # via flask -jinja2==3.1.2 +jinja2==3.1.4 # via flask -markupsafe==2.1.3 +markupsafe==2.1.5 # via # jinja2 # werkzeug -sqlalchemy==2.0.23 +sqlalchemy==2.0.32 # via -r requirements.piptools -typing-extensions==4.9.0 +typing-extensions==4.12.2 # via sqlalchemy -werkzeug==3.0.1 +werkzeug==3.0.4 # via flask diff --git a/app/ch11_migrations/final/pypi_org/views/package_views.py b/app/ch11_migrations/final/pypi_org/views/package_views.py index 92d9109a..4589fe56 100644 --- a/app/ch11_migrations/final/pypi_org/views/package_views.py +++ b/app/ch11_migrations/final/pypi_org/views/package_views.py @@ -21,7 +21,7 @@ def package_details(package_name: str): is_latest = True if package.releases: - latest_release = package.releases[0] + latest_release = package.releases latest_version = latest_release.version_text return { diff --git a/app/ch11_migrations/final/requirements.txt b/app/ch11_migrations/final/requirements.txt index af454bba..8a6a1923 100644 --- a/app/ch11_migrations/final/requirements.txt +++ b/app/ch11_migrations/final/requirements.txt @@ -1,44 +1,40 @@ -# -# This file is autogenerated by pip-compile with Python 3.11 -# by the following command: -# -# pip-compile requirements.piptools -# -alembic==1.13.0 +# This file was autogenerated by uv via the following command: +# uv pip compile requirements.piptools --output-file requirements.txt +alembic==1.13.2 # via -r requirements.piptools -blinker==1.7.0 +blinker==1.8.2 # via flask click==8.1.7 # via flask -flask==3.0.0 +flask==3.0.3 # via -r requirements.piptools -itsdangerous==2.1.2 +itsdangerous==2.2.0 # via flask -jinja2==3.1.2 +jinja2==3.1.4 # via flask -mako==1.3.0 +mako==1.3.5 # via alembic -markupsafe==2.1.3 +markupsafe==2.1.5 # via # jinja2 # mako # werkzeug -progressbar2==4.2.0 +progressbar2==4.4.2 # via -r requirements.piptools -python-dateutil==2.8.2 +python-dateutil==2.9.0.post0 # via -r requirements.piptools -python-utils==3.8.1 +python-utils==3.8.2 # via progressbar2 six==1.16.0 # via python-dateutil -sqlalchemy==2.0.23 +sqlalchemy==2.0.32 # via # -r requirements.piptools # alembic -typing-extensions==4.9.0 +typing-extensions==4.12.2 # via # alembic # python-utils # sqlalchemy -werkzeug==3.0.1 +werkzeug==3.0.4 # via flask diff --git a/app/ch11_migrations/starter/pypi_org/views/package_views.py b/app/ch11_migrations/starter/pypi_org/views/package_views.py index 92d9109a..4589fe56 100644 --- a/app/ch11_migrations/starter/pypi_org/views/package_views.py +++ b/app/ch11_migrations/starter/pypi_org/views/package_views.py @@ -21,7 +21,7 @@ def package_details(package_name: str): is_latest = True if package.releases: - latest_release = package.releases[0] + latest_release = package.releases latest_version = latest_release.version_text return { diff --git a/app/ch11_migrations/starter/requirements.txt b/app/ch11_migrations/starter/requirements.txt index 090ec616..d532261b 100644 --- a/app/ch11_migrations/starter/requirements.txt +++ b/app/ch11_migrations/starter/requirements.txt @@ -1,36 +1,32 @@ -# -# This file is autogenerated by pip-compile with Python 3.11 -# by the following command: -# -# pip-compile requirements.piptools -# -blinker==1.7.0 +# This file was autogenerated by uv via the following command: +# uv pip compile requirements.piptools --output-file requirements.txt +blinker==1.8.2 # via flask click==8.1.7 # via flask -flask==3.0.0 +flask==3.0.3 # via -r requirements.piptools -itsdangerous==2.1.2 +itsdangerous==2.2.0 # via flask -jinja2==3.1.2 +jinja2==3.1.4 # via flask -markupsafe==2.1.3 +markupsafe==2.1.5 # via # jinja2 # werkzeug -progressbar2==4.2.0 +progressbar2==4.4.2 # via -r requirements.piptools -python-dateutil==2.8.2 +python-dateutil==2.9.0.post0 # via -r requirements.piptools -python-utils==3.8.1 +python-utils==3.8.2 # via progressbar2 six==1.16.0 # via python-dateutil -sqlalchemy==2.0.23 +sqlalchemy==2.0.32 # via -r requirements.piptools -typing-extensions==4.9.0 +typing-extensions==4.12.2 # via # python-utils # sqlalchemy -werkzeug==3.0.1 +werkzeug==3.0.4 # via flask diff --git a/app/ch12-forms/final/pypi_org/views/package_views.py b/app/ch12-forms/final/pypi_org/views/package_views.py index 2587b704..e634d845 100644 --- a/app/ch12-forms/final/pypi_org/views/package_views.py +++ b/app/ch12-forms/final/pypi_org/views/package_views.py @@ -22,7 +22,7 @@ def package_details(package_name: str): is_latest = True if package.releases: - latest_release = package.releases[0] + latest_release = package.releases latest_version = latest_release.version_text return { diff --git a/app/ch12-forms/final/requirements.txt b/app/ch12-forms/final/requirements.txt index 662fe297..c7dbe9a5 100644 --- a/app/ch12-forms/final/requirements.txt +++ b/app/ch12-forms/final/requirements.txt @@ -1,46 +1,42 @@ -# -# This file is autogenerated by pip-compile with Python 3.11 -# by the following command: -# -# pip-compile requirements.piptools -# -alembic==1.13.0 +# This file was autogenerated by uv via the following command: +# uv pip compile requirements.piptools --output-file requirements.txt +alembic==1.13.2 # via -r requirements.piptools -blinker==1.7.0 +blinker==1.8.2 # via flask click==8.1.7 # via flask -flask==3.0.0 +flask==3.0.3 # via -r requirements.piptools -itsdangerous==2.1.2 +itsdangerous==2.2.0 # via flask -jinja2==3.1.2 +jinja2==3.1.4 # via flask -mako==1.3.0 +mako==1.3.5 # via alembic -markupsafe==2.1.3 +markupsafe==2.1.5 # via # jinja2 # mako # werkzeug passlib==1.7.4 # via -r requirements.piptools -progressbar2==4.2.0 +progressbar2==4.4.2 # via -r requirements.piptools -python-dateutil==2.8.2 +python-dateutil==2.9.0.post0 # via -r requirements.piptools -python-utils==3.8.1 +python-utils==3.8.2 # via progressbar2 six==1.16.0 # via python-dateutil -sqlalchemy==2.0.23 +sqlalchemy==2.0.32 # via # -r requirements.piptools # alembic -typing-extensions==4.9.0 +typing-extensions==4.12.2 # via # alembic # python-utils # sqlalchemy -werkzeug==3.0.1 +werkzeug==3.0.4 # via flask diff --git a/app/ch12-forms/starter/pypi_org/views/package_views.py b/app/ch12-forms/starter/pypi_org/views/package_views.py index 92d9109a..4589fe56 100644 --- a/app/ch12-forms/starter/pypi_org/views/package_views.py +++ b/app/ch12-forms/starter/pypi_org/views/package_views.py @@ -21,7 +21,7 @@ def package_details(package_name: str): is_latest = True if package.releases: - latest_release = package.releases[0] + latest_release = package.releases latest_version = latest_release.version_text return { diff --git a/app/ch12-forms/starter/requirements.txt b/app/ch12-forms/starter/requirements.txt index af454bba..8a6a1923 100644 --- a/app/ch12-forms/starter/requirements.txt +++ b/app/ch12-forms/starter/requirements.txt @@ -1,44 +1,40 @@ -# -# This file is autogenerated by pip-compile with Python 3.11 -# by the following command: -# -# pip-compile requirements.piptools -# -alembic==1.13.0 +# This file was autogenerated by uv via the following command: +# uv pip compile requirements.piptools --output-file requirements.txt +alembic==1.13.2 # via -r requirements.piptools -blinker==1.7.0 +blinker==1.8.2 # via flask click==8.1.7 # via flask -flask==3.0.0 +flask==3.0.3 # via -r requirements.piptools -itsdangerous==2.1.2 +itsdangerous==2.2.0 # via flask -jinja2==3.1.2 +jinja2==3.1.4 # via flask -mako==1.3.0 +mako==1.3.5 # via alembic -markupsafe==2.1.3 +markupsafe==2.1.5 # via # jinja2 # mako # werkzeug -progressbar2==4.2.0 +progressbar2==4.4.2 # via -r requirements.piptools -python-dateutil==2.8.2 +python-dateutil==2.9.0.post0 # via -r requirements.piptools -python-utils==3.8.1 +python-utils==3.8.2 # via progressbar2 six==1.16.0 # via python-dateutil -sqlalchemy==2.0.23 +sqlalchemy==2.0.32 # via # -r requirements.piptools # alembic -typing-extensions==4.9.0 +typing-extensions==4.12.2 # via # alembic # python-utils # sqlalchemy -werkzeug==3.0.1 +werkzeug==3.0.4 # via flask diff --git a/app/ch13-validation/final/pypi_org/viewmodels/packages/pagedetails_viewmodel.py b/app/ch13-validation/final/pypi_org/viewmodels/packages/pagedetails_viewmodel.py index 09f47c6f..62bdca3d 100644 --- a/app/ch13-validation/final/pypi_org/viewmodels/packages/pagedetails_viewmodel.py +++ b/app/ch13-validation/final/pypi_org/viewmodels/packages/pagedetails_viewmodel.py @@ -16,7 +16,7 @@ def __init__(self, package_name: str): self.is_latest = True if self.package and self.package.releases: - self.latest_release = self.package.releases[0] + self.latest_release = self.package.releases self.latest_version = self.latest_release.version_text self.release_version = self.latest_release diff --git a/app/ch13-validation/final/requirements.txt b/app/ch13-validation/final/requirements.txt index 662fe297..c7dbe9a5 100644 --- a/app/ch13-validation/final/requirements.txt +++ b/app/ch13-validation/final/requirements.txt @@ -1,46 +1,42 @@ -# -# This file is autogenerated by pip-compile with Python 3.11 -# by the following command: -# -# pip-compile requirements.piptools -# -alembic==1.13.0 +# This file was autogenerated by uv via the following command: +# uv pip compile requirements.piptools --output-file requirements.txt +alembic==1.13.2 # via -r requirements.piptools -blinker==1.7.0 +blinker==1.8.2 # via flask click==8.1.7 # via flask -flask==3.0.0 +flask==3.0.3 # via -r requirements.piptools -itsdangerous==2.1.2 +itsdangerous==2.2.0 # via flask -jinja2==3.1.2 +jinja2==3.1.4 # via flask -mako==1.3.0 +mako==1.3.5 # via alembic -markupsafe==2.1.3 +markupsafe==2.1.5 # via # jinja2 # mako # werkzeug passlib==1.7.4 # via -r requirements.piptools -progressbar2==4.2.0 +progressbar2==4.4.2 # via -r requirements.piptools -python-dateutil==2.8.2 +python-dateutil==2.9.0.post0 # via -r requirements.piptools -python-utils==3.8.1 +python-utils==3.8.2 # via progressbar2 six==1.16.0 # via python-dateutil -sqlalchemy==2.0.23 +sqlalchemy==2.0.32 # via # -r requirements.piptools # alembic -typing-extensions==4.9.0 +typing-extensions==4.12.2 # via # alembic # python-utils # sqlalchemy -werkzeug==3.0.1 +werkzeug==3.0.4 # via flask diff --git a/app/ch13-validation/starter/pypi_org/views/package_views.py b/app/ch13-validation/starter/pypi_org/views/package_views.py index 2587b704..e634d845 100644 --- a/app/ch13-validation/starter/pypi_org/views/package_views.py +++ b/app/ch13-validation/starter/pypi_org/views/package_views.py @@ -22,7 +22,7 @@ def package_details(package_name: str): is_latest = True if package.releases: - latest_release = package.releases[0] + latest_release = package.releases latest_version = latest_release.version_text return { diff --git a/app/ch13-validation/starter/requirements.txt b/app/ch13-validation/starter/requirements.txt index 662fe297..c7dbe9a5 100644 --- a/app/ch13-validation/starter/requirements.txt +++ b/app/ch13-validation/starter/requirements.txt @@ -1,46 +1,42 @@ -# -# This file is autogenerated by pip-compile with Python 3.11 -# by the following command: -# -# pip-compile requirements.piptools -# -alembic==1.13.0 +# This file was autogenerated by uv via the following command: +# uv pip compile requirements.piptools --output-file requirements.txt +alembic==1.13.2 # via -r requirements.piptools -blinker==1.7.0 +blinker==1.8.2 # via flask click==8.1.7 # via flask -flask==3.0.0 +flask==3.0.3 # via -r requirements.piptools -itsdangerous==2.1.2 +itsdangerous==2.2.0 # via flask -jinja2==3.1.2 +jinja2==3.1.4 # via flask -mako==1.3.0 +mako==1.3.5 # via alembic -markupsafe==2.1.3 +markupsafe==2.1.5 # via # jinja2 # mako # werkzeug passlib==1.7.4 # via -r requirements.piptools -progressbar2==4.2.0 +progressbar2==4.4.2 # via -r requirements.piptools -python-dateutil==2.8.2 +python-dateutil==2.9.0.post0 # via -r requirements.piptools -python-utils==3.8.1 +python-utils==3.8.2 # via progressbar2 six==1.16.0 # via python-dateutil -sqlalchemy==2.0.23 +sqlalchemy==2.0.32 # via # -r requirements.piptools # alembic -typing-extensions==4.9.0 +typing-extensions==4.12.2 # via # alembic # python-utils # sqlalchemy -werkzeug==3.0.1 +werkzeug==3.0.4 # via flask diff --git a/app/ch14_testing/final/pypi_org/viewmodels/packages/pagedetails_viewmodel.py b/app/ch14_testing/final/pypi_org/viewmodels/packages/pagedetails_viewmodel.py index 09f47c6f..62bdca3d 100644 --- a/app/ch14_testing/final/pypi_org/viewmodels/packages/pagedetails_viewmodel.py +++ b/app/ch14_testing/final/pypi_org/viewmodels/packages/pagedetails_viewmodel.py @@ -16,7 +16,7 @@ def __init__(self, package_name: str): self.is_latest = True if self.package and self.package.releases: - self.latest_release = self.package.releases[0] + self.latest_release = self.package.releases self.latest_version = self.latest_release.version_text self.release_version = self.latest_release diff --git a/app/ch14_testing/final/requirements.txt b/app/ch14_testing/final/requirements.txt index 662fe297..c7dbe9a5 100644 --- a/app/ch14_testing/final/requirements.txt +++ b/app/ch14_testing/final/requirements.txt @@ -1,46 +1,42 @@ -# -# This file is autogenerated by pip-compile with Python 3.11 -# by the following command: -# -# pip-compile requirements.piptools -# -alembic==1.13.0 +# This file was autogenerated by uv via the following command: +# uv pip compile requirements.piptools --output-file requirements.txt +alembic==1.13.2 # via -r requirements.piptools -blinker==1.7.0 +blinker==1.8.2 # via flask click==8.1.7 # via flask -flask==3.0.0 +flask==3.0.3 # via -r requirements.piptools -itsdangerous==2.1.2 +itsdangerous==2.2.0 # via flask -jinja2==3.1.2 +jinja2==3.1.4 # via flask -mako==1.3.0 +mako==1.3.5 # via alembic -markupsafe==2.1.3 +markupsafe==2.1.5 # via # jinja2 # mako # werkzeug passlib==1.7.4 # via -r requirements.piptools -progressbar2==4.2.0 +progressbar2==4.4.2 # via -r requirements.piptools -python-dateutil==2.8.2 +python-dateutil==2.9.0.post0 # via -r requirements.piptools -python-utils==3.8.1 +python-utils==3.8.2 # via progressbar2 six==1.16.0 # via python-dateutil -sqlalchemy==2.0.23 +sqlalchemy==2.0.32 # via # -r requirements.piptools # alembic -typing-extensions==4.9.0 +typing-extensions==4.12.2 # via # alembic # python-utils # sqlalchemy -werkzeug==3.0.1 +werkzeug==3.0.4 # via flask diff --git a/app/ch14_testing/starter/pypi_org/viewmodels/packages/pagedetails_viewmodel.py b/app/ch14_testing/starter/pypi_org/viewmodels/packages/pagedetails_viewmodel.py index 09f47c6f..62bdca3d 100644 --- a/app/ch14_testing/starter/pypi_org/viewmodels/packages/pagedetails_viewmodel.py +++ b/app/ch14_testing/starter/pypi_org/viewmodels/packages/pagedetails_viewmodel.py @@ -16,7 +16,7 @@ def __init__(self, package_name: str): self.is_latest = True if self.package and self.package.releases: - self.latest_release = self.package.releases[0] + self.latest_release = self.package.releases self.latest_version = self.latest_release.version_text self.release_version = self.latest_release diff --git a/app/ch14_testing/starter/requirements.txt b/app/ch14_testing/starter/requirements.txt index 662fe297..c7dbe9a5 100644 --- a/app/ch14_testing/starter/requirements.txt +++ b/app/ch14_testing/starter/requirements.txt @@ -1,46 +1,42 @@ -# -# This file is autogenerated by pip-compile with Python 3.11 -# by the following command: -# -# pip-compile requirements.piptools -# -alembic==1.13.0 +# This file was autogenerated by uv via the following command: +# uv pip compile requirements.piptools --output-file requirements.txt +alembic==1.13.2 # via -r requirements.piptools -blinker==1.7.0 +blinker==1.8.2 # via flask click==8.1.7 # via flask -flask==3.0.0 +flask==3.0.3 # via -r requirements.piptools -itsdangerous==2.1.2 +itsdangerous==2.2.0 # via flask -jinja2==3.1.2 +jinja2==3.1.4 # via flask -mako==1.3.0 +mako==1.3.5 # via alembic -markupsafe==2.1.3 +markupsafe==2.1.5 # via # jinja2 # mako # werkzeug passlib==1.7.4 # via -r requirements.piptools -progressbar2==4.2.0 +progressbar2==4.4.2 # via -r requirements.piptools -python-dateutil==2.8.2 +python-dateutil==2.9.0.post0 # via -r requirements.piptools -python-utils==3.8.1 +python-utils==3.8.2 # via progressbar2 six==1.16.0 # via python-dateutil -sqlalchemy==2.0.23 +sqlalchemy==2.0.32 # via # -r requirements.piptools # alembic -typing-extensions==4.9.0 +typing-extensions==4.12.2 # via # alembic # python-utils # sqlalchemy -werkzeug==3.0.1 +werkzeug==3.0.4 # via flask diff --git a/app/ch15_deploy/final/pypi_org/viewmodels/packages/pagedetails_viewmodel.py b/app/ch15_deploy/final/pypi_org/viewmodels/packages/pagedetails_viewmodel.py index 09f47c6f..62bdca3d 100644 --- a/app/ch15_deploy/final/pypi_org/viewmodels/packages/pagedetails_viewmodel.py +++ b/app/ch15_deploy/final/pypi_org/viewmodels/packages/pagedetails_viewmodel.py @@ -16,7 +16,7 @@ def __init__(self, package_name: str): self.is_latest = True if self.package and self.package.releases: - self.latest_release = self.package.releases[0] + self.latest_release = self.package.releases self.latest_version = self.latest_release.version_text self.release_version = self.latest_release diff --git a/app/ch15_deploy/final/requirements.txt b/app/ch15_deploy/final/requirements.txt index 662fe297..c7dbe9a5 100644 --- a/app/ch15_deploy/final/requirements.txt +++ b/app/ch15_deploy/final/requirements.txt @@ -1,46 +1,42 @@ -# -# This file is autogenerated by pip-compile with Python 3.11 -# by the following command: -# -# pip-compile requirements.piptools -# -alembic==1.13.0 +# This file was autogenerated by uv via the following command: +# uv pip compile requirements.piptools --output-file requirements.txt +alembic==1.13.2 # via -r requirements.piptools -blinker==1.7.0 +blinker==1.8.2 # via flask click==8.1.7 # via flask -flask==3.0.0 +flask==3.0.3 # via -r requirements.piptools -itsdangerous==2.1.2 +itsdangerous==2.2.0 # via flask -jinja2==3.1.2 +jinja2==3.1.4 # via flask -mako==1.3.0 +mako==1.3.5 # via alembic -markupsafe==2.1.3 +markupsafe==2.1.5 # via # jinja2 # mako # werkzeug passlib==1.7.4 # via -r requirements.piptools -progressbar2==4.2.0 +progressbar2==4.4.2 # via -r requirements.piptools -python-dateutil==2.8.2 +python-dateutil==2.9.0.post0 # via -r requirements.piptools -python-utils==3.8.1 +python-utils==3.8.2 # via progressbar2 six==1.16.0 # via python-dateutil -sqlalchemy==2.0.23 +sqlalchemy==2.0.32 # via # -r requirements.piptools # alembic -typing-extensions==4.9.0 +typing-extensions==4.12.2 # via # alembic # python-utils # sqlalchemy -werkzeug==3.0.1 +werkzeug==3.0.4 # via flask diff --git a/app/ch15_deploy/starter/pypi_org/viewmodels/packages/pagedetails_viewmodel.py b/app/ch15_deploy/starter/pypi_org/viewmodels/packages/pagedetails_viewmodel.py index 09f47c6f..62bdca3d 100644 --- a/app/ch15_deploy/starter/pypi_org/viewmodels/packages/pagedetails_viewmodel.py +++ b/app/ch15_deploy/starter/pypi_org/viewmodels/packages/pagedetails_viewmodel.py @@ -16,7 +16,7 @@ def __init__(self, package_name: str): self.is_latest = True if self.package and self.package.releases: - self.latest_release = self.package.releases[0] + self.latest_release = self.package.releases self.latest_version = self.latest_release.version_text self.release_version = self.latest_release diff --git a/app/ch15_deploy/starter/requirements.txt b/app/ch15_deploy/starter/requirements.txt index 662fe297..c7dbe9a5 100644 --- a/app/ch15_deploy/starter/requirements.txt +++ b/app/ch15_deploy/starter/requirements.txt @@ -1,46 +1,42 @@ -# -# This file is autogenerated by pip-compile with Python 3.11 -# by the following command: -# -# pip-compile requirements.piptools -# -alembic==1.13.0 +# This file was autogenerated by uv via the following command: +# uv pip compile requirements.piptools --output-file requirements.txt +alembic==1.13.2 # via -r requirements.piptools -blinker==1.7.0 +blinker==1.8.2 # via flask click==8.1.7 # via flask -flask==3.0.0 +flask==3.0.3 # via -r requirements.piptools -itsdangerous==2.1.2 +itsdangerous==2.2.0 # via flask -jinja2==3.1.2 +jinja2==3.1.4 # via flask -mako==1.3.0 +mako==1.3.5 # via alembic -markupsafe==2.1.3 +markupsafe==2.1.5 # via # jinja2 # mako # werkzeug passlib==1.7.4 # via -r requirements.piptools -progressbar2==4.2.0 +progressbar2==4.4.2 # via -r requirements.piptools -python-dateutil==2.8.2 +python-dateutil==2.9.0.post0 # via -r requirements.piptools -python-utils==3.8.1 +python-utils==3.8.2 # via progressbar2 six==1.16.0 # via python-dateutil -sqlalchemy==2.0.23 +sqlalchemy==2.0.32 # via # -r requirements.piptools # alembic -typing-extensions==4.9.0 +typing-extensions==4.12.2 # via # alembic # python-utils # sqlalchemy -werkzeug==3.0.1 +werkzeug==3.0.4 # via flask