diff --git a/CLAUDE.md b/CLAUDE.md index 2ecff57..aa7306c 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -24,8 +24,8 @@ The project follows a modular Django app structure within the `pythonie/` direct Multiple settings files in `pythonie/pythonie/settings/`: - `base.py`: Shared settings, uses `dj_database_url` for database configuration -- `dev.py`: SQLite database, local Redis, DEBUG=True -- `tests.py`: Test-specific settings with SQLite and mock Redis +- `dev.py`: SQLite database, DEBUG=True +- `tests.py`: Test-specific settings with SQLite - `production.py`: Heroku production settings - `pgdev.py`: PostgreSQL development settings @@ -43,7 +43,6 @@ Always specify settings module: `--settings=pythonie.settings.dev` (or `tests`, - Django 6.0 - Wagtail 8.1 (CMS framework) -- Redis (caching, configured via `REDISCLOUD_URL`) - WhiteNoise (static file serving) - boto3/django-storages (S3 integration) - Delorean/python-dateutil (date handling) @@ -68,7 +67,7 @@ uv run python pythonie/manage.py runserver --settings=pythonie.settings.dev ### Docker Development (preferred) -Uses Task for most operations. Requires docker-compose with services: web, postgres, redis. +Uses Task for most operations. Requires docker-compose with services: web, postgres. ```bash # Build docker image @@ -237,17 +236,12 @@ Pages use StreamFields for flexible content blocks (heading, paragraph, video, i Django commands MUST include `--settings=pythonie.settings.`. The default in `manage.py` is `pythonie.settings` which won't work without proper environment setup. -### Redis Configuration - -Development expects Redis at `127.0.0.1:6379` or via `REDISCLOUD_URL` environment variable. Configure via `pythonie.settings.configure.configure_redis()`. - ### Environment Variables Key variables (see `development.env` / `production.env`): - `DJANGO_SECRET_KEY`: Required for production - `DJANGO_SETTINGS_MODULE`: Settings module path - `DATABASE_URL`: PostgreSQL connection (Heroku format) -- `REDISCLOUD_URL`: Redis connection - `MEETUP_KEY`: Meetup.com API key - `PGDATABASE`, `PGUSER`, `PGPASSWORD`, `PGHOST`: PostgreSQL credentials for Docker - `HEROKU_APP`: Heroku application name (set in Taskfile.yaml) @@ -258,7 +252,7 @@ Static files collected via WhiteNoise with `CompressedManifestStaticFilesStorage ### Testing Strategy -Tests use `pythonie.settings.tests` which configures SQLite and mock Redis. Run with `--verbosity=2` or `--verbosity=3` for detailed output. +Tests use `pythonie.settings.tests` which configures SQLite. Test data is generated with `model_bakery`. Run with `--verbosity=2` or `--verbosity=3` for detailed output. ### Deployment diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index a09587d..18844f1 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -68,7 +68,7 @@ task docker:build # or: make docker-build # Start services -docker-compose up -d postgres redis +docker-compose up -d postgres # Run migrations task django:migrate @@ -322,7 +322,7 @@ Place tests in `test_*.py` files within each app: ```python from django.test import TestCase -from model_mommy import mommy +from model_bakery import baker from pythonie.sponsors.models import Sponsor @@ -332,7 +332,7 @@ class SponsorTestCase(TestCase): def setUp(self): """Set up test fixtures.""" - self.sponsor = mommy.make(Sponsor, name="Test Sponsor") + self.sponsor = baker.make(Sponsor, name="Test Sponsor") def test_sponsor_str(self): """Test string representation.""" @@ -340,7 +340,7 @@ class SponsorTestCase(TestCase): def test_sponsor_creation(self): """Test sponsor can be created.""" - sponsor = mommy.make(Sponsor) + sponsor = baker.make(Sponsor) self.assertIsNotNone(sponsor.id) ``` diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md index 790aa81..6520ad5 100644 --- a/DEVELOPMENT.md +++ b/DEVELOPMENT.md @@ -26,7 +26,6 @@ - **CMS**: Wagtail 8.1 - **Python**: 3.13.11 (or any Python 3.13.x - required) - **Database**: PostgreSQL 17 (prod and dev via Docker) -- **Cache**: Redis 6.2 - **Storage**: AWS S3 (prod), Local (dev) - **Server**: Gunicorn (prod), Runserver (dev) - **Containerization**: Docker + docker-compose @@ -70,7 +69,6 @@ pythonie/ │ ├── production.py # Heroku, S3, PostgreSQL │ ├── tests.py # Tests with in-memory SQLite │ └── pgdev.py # Local PostgreSQL - ├── configure.py # Helpers (configure_redis) └── patches.py # Third-party patches (SlideShare OEmbed) ``` @@ -118,8 +116,8 @@ prek install # 2. Build Docker image task docker:build -# 3. Start PostgreSQL and Redis -docker-compose up -d postgres redis +# 3. Start PostgreSQL +docker-compose up -d postgres # 4. Create/migrate the database task django:migrate @@ -172,9 +170,6 @@ PGUSER=postgres PGPASSWORD=postgres PGHOST=postgres -# Redis -REDISCLOUD_URL=redis://redis:6379/0 - # Meetup.com (optional) MEETUP_KEY=your-meetup-api-key @@ -660,15 +655,15 @@ uv run python pythonie/manage.py test pythonie.meetups.test_meetups.MeetupTestCa ### Test Tools -**model_mommy**: Test data generation +**model_bakery**: Test data generation ```python -from model_mommy import mommy +from model_bakery import baker # Create Meetup with random data -meetup = mommy.make(Meetup) +meetup = baker.make(Meetup) # With specific values -meetup = mommy.make(Meetup, name="Test Meetup", rsvps=10) +meetup = baker.make(Meetup, name="Test Meetup", rsvps=10) ``` **unittest.mock**: Mock external APIs @@ -684,19 +679,12 @@ def test_update_meetups(self, mock_get): update() # Call function with mock ``` -**fakeredis**: Mock Redis -```python -# Automatically configured in pythonie.settings.tests -REDIS = configure_redis(None, test=True) # Returns FakeStrictRedis -``` - ### Test Configuration **Settings** (`pythonie/pythonie/settings/tests.py`): ```python DEBUG = True DATABASES = {"default": {"ENGINE": "django.db.backends.sqlite3", "NAME": ":memory:"}} -REDIS = configure_redis(None, test=True) # FakeRedis LOGGING = { "loggers": { "pythonie": {"level": "ERROR"} # Less verbose @@ -709,12 +697,12 @@ LOGGING = { **Model test example**: ```python from django.test import TestCase -from model_mommy import mommy +from model_bakery import baker from pythonie.meetups.models import Meetup class MeetupTestCase(TestCase): def setUp(self): - self.meetup = mommy.make( + self.meetup = baker.make( Meetup, name="Python Ireland Monthly Meetup", id="test-meetup-1" @@ -752,7 +740,6 @@ class HomePageTestCase(TestCase): **Addons**: - **Heroku Postgres**: Main database -- **RedisCloud**: Redis cache - **AWS S3**: Media storage (external) **Buildpacks**: @@ -773,7 +760,6 @@ web: gunicorn --chdir pythonie pythonie.wsgi --log-file - ```bash # Heroku sets these automatically: DATABASE_URL -REDISCLOUD_URL # Configure manually: heroku config:set DJANGO_SECRET_KEY=$(python -c "from django.core.management.utils import get_random_secret_key; print(get_random_secret_key())") @@ -868,35 +854,6 @@ export DJANGO_SETTINGS_MODULE=pythonie.settings.dev uv run python pythonie/manage.py runserver ``` -### Problem: Redis Connection Error - -**Error**: -``` -ConnectionError: Error 111 connecting to 127.0.0.1:6379. Connection refused. -``` - -**Solution Docker**: -```bash -# Check if Redis is running -docker-compose ps redis - -# Start Redis -docker-compose up -d redis -``` - -**Solution Local**: -```bash -# Install Redis -brew install redis # macOS - -# Start Redis -redis-server - -# Or disable Redis in dev: -# pythonie/pythonie/settings/dev.py -REDIS = None -``` - ### Problem: Meetup update returns nothing **Error**: `update()` returns 0 meetups diff --git a/README.md b/README.md index 4395885..9fa83dc 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,6 @@ This is the Python Ireland (https://python.ie) website, built with Django 6.0 an - Python 3.13, [uv](https://docs.astral.sh/uv/) and [prek](https://github.com/j178/prek) (git hooks), all pinned in `mise.toml`: run `mise install`, or see [Git Hooks](#git-hooks-prek) for other ways to install prek - Docker & Docker Compose (for containerized development - recommended) - [Task](https://taskfile.dev/) (optional but recommended) -- Redis (only for local non-Docker development) - Environment variables file as per [the instructions here](#environment-variables) ## Quick Start (Docker - Recommended) @@ -26,7 +25,7 @@ This is the Python Ireland (https://python.ie) website, built with Django 6.0 an 3. Start supporting services: ```bash - docker compose up -d postgres redis + docker compose up -d postgres ``` 4. Run database migrations: @@ -66,11 +65,9 @@ If you prefer to develop without Docker: 6. Set up the database: `uv run python pythonie/manage.py migrate --settings=pythonie.settings.dev` 7. Generate sample data: `task django:generate-sample-data` (or `uv run python pythonie/manage.py generate_sample_data --settings=pythonie.settings.dev`) 8. Create a superuser: `uv run python pythonie/manage.py createsuperuser --settings=pythonie.settings.dev` -9. Install and run Redis server locally: `redis-server` -10. Set Redis environment variable: `export REDISCLOUD_URL=127.0.0.1:6379` -11. Run the server: `uv run python pythonie/manage.py runserver --settings=pythonie.settings.dev` -12. Visit http://127.0.0.1:8000/ to see the site with sample content -13. Visit http://127.0.0.1:8000/admin/ to log in to Wagtail admin +9. Run the server: `uv run python pythonie/manage.py runserver --settings=pythonie.settings.dev` +10. Visit http://127.0.0.1:8000/ to see the site with sample content +11. Visit http://127.0.0.1:8000/admin/ to log in to Wagtail admin ## Project Structure @@ -222,13 +219,11 @@ PGDATABASE=pythonie PGUSER=postgres PGPASSWORD=pythonie PGHOST=postgres -REDISCLOUD_URL=redis://redis:6379 # Optional, for Redis integration MEETUP_KEY=your_meetup_api_key # Optional, for Meetup.com sync ``` For local development without Docker: ```bash -export REDISCLOUD_URL=127.0.0.1:6379 export MEETUP_KEY=your_meetup_api_key # Get from https://secure.meetup.com/meetup_api/key/ ``` @@ -261,10 +256,6 @@ This project uses several tools to streamline development: ## Troubleshooting -### Redis Connection Errors -- **Docker**: Redis should work automatically via `docker compose` -- **Local**: Ensure Redis is running (`redis-server`) and set `REDISCLOUD_URL=127.0.0.1:6379` - ### Database Issues - Reset with production data: `task database:reset` - Check PostgreSQL is running: `docker compose ps postgres` diff --git a/Taskfile.yaml b/Taskfile.yaml index fa4d31f..2ef5f6d 100644 --- a/Taskfile.yaml +++ b/Taskfile.yaml @@ -208,7 +208,7 @@ tasks: stack:pull: desc: Pull the docker images for the stack cmds: - - docker compose pull postgres redis + - docker compose pull postgres stack:services: desc: List the services from the docker compose file diff --git a/development.env b/development.env index f0c13cb..8dc5e94 100644 --- a/development.env +++ b/development.env @@ -3,4 +3,3 @@ PGDATABASE=pythonie PGUSER=postgres PGPASSWORD=pythonie PGHOST=postgres -REDISCLOUD_URL=redis://redis:6379 diff --git a/docker-compose.yml b/docker-compose.yml index c9f8efd..839899c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -6,7 +6,6 @@ services: command: /usr/bin/fish depends_on: - postgres - - redis env_file: - development.env environment: @@ -26,9 +25,6 @@ services: environment: POSTGRES_PASSWORD: pythonie - redis: - image: redis:6.2 - test: image: python.ie/website-dev environment: diff --git a/pyproject.toml b/pyproject.toml index 82834e7..7a997fa 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -18,12 +18,8 @@ dependencies = [ "django-storages>=1.14.6", "django-taggit>=6.1.0", "gunicorn>=26.2.0", - "pandas>=3.0.6", "psycopg[binary]>=3.3.6", - "pydantic>=2.13.5", "python-dateutil>=2.9.0.post0", - "pytz>=2026.4", - "redis>=8.1.0", "requests>=2.34.2", "wagtail>=8.1,<8.2", "whitenoise>=6.12.0", @@ -34,9 +30,8 @@ dependencies = [ dev = [ "coverage>=7.16.1", "django-debug-toolbar>=8.0.0", - "fakeredis>=2.38.0", "isort>=9.0.1", - "model_mommy>=2.0.0", + "model-bakery>=1.25.0", "pip-audit>=2.10.1", "pipdeptree>=4.2.5", "ruff==0.16.9", # pinned: ruff minor releases change the default lint rule set diff --git a/pythonie/meetups/test_meetups.py b/pythonie/meetups/test_meetups.py index ee6bd72..1159ded 100644 --- a/pythonie/meetups/test_meetups.py +++ b/pythonie/meetups/test_meetups.py @@ -1,10 +1,9 @@ -from datetime import datetime +from datetime import UTC, datetime from unittest.mock import patch from django.test import TestCase from django.utils import timezone -from model_mommy import mommy -from pytz import UTC +from model_bakery import baker from meetups import utils from meetups.models import Meetup, next_n_months @@ -22,7 +21,7 @@ class MeetupModelTests(TestCase): def test_create_meetup(self): now = timezone.now() - meetup = mommy.make(Meetup, time=now, created=now, updated=now) + meetup = baker.make(Meetup, time=now, created=now, updated=now) self.assertIsNotNone(meetup.id) self.assertIsNotNone(meetup.name) self.assertIsNotNone(meetup.description) diff --git a/pythonie/pythonie/settings/configure.py b/pythonie/pythonie/settings/configure.py deleted file mode 100644 index 8e38deb..0000000 --- a/pythonie/pythonie/settings/configure.py +++ /dev/null @@ -1,22 +0,0 @@ -import logging - -log = logging.getLogger("pythonie") - - -def configure_redis(redis_url, test=False): - if test: - log.info("Configuring redis for test") - import fakeredis - - return fakeredis.FakeStrictRedis() - - if redis_url: - from urllib.parse import urlparse - - import redis - - url = urlparse(redis_url) - log.info("Redis configured with redis_url: %s", redis_url) - return redis.Redis(host=url.hostname, port=url.port, password=url.password) - - log.warning("Redis not configured") diff --git a/pythonie/pythonie/settings/dev.py b/pythonie/pythonie/settings/dev.py index 9e09010..e61599f 100644 --- a/pythonie/pythonie/settings/dev.py +++ b/pythonie/pythonie/settings/dev.py @@ -1,7 +1,4 @@ # ruff: noqa -import os -from pythonie.settings.configure import configure_redis - from .base import * DEBUG = True @@ -23,10 +20,6 @@ } } -# assumes no DEV:REDISCLOUD_URL available but that redis-server running locally -REDIS_URL = os.environ.get("REDISCLOUD_URL", "//127.0.0.1:6379") -REDIS = configure_redis(REDIS_URL) - # CACHES = { # 'default': { # 'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache', diff --git a/pythonie/pythonie/settings/production.py b/pythonie/pythonie/settings/production.py index cd89d38..c7bdc36 100644 --- a/pythonie/pythonie/settings/production.py +++ b/pythonie/pythonie/settings/production.py @@ -3,8 +3,6 @@ import dj_database_url -from pythonie.settings.configure import configure_redis - from .base import * # Disable debug mode @@ -61,38 +59,6 @@ COMPRESS_OFFLINE = False CSRF_TRUSTED_ORIGINS = ["https://python.ie"] -REDIS_URL = os.environ.get("REDISCLOUD_URL") -REDIS = configure_redis(REDIS_URL) - -# Send notification emails as a background task using Celery, -# to prevent this from blocking web server threads -# (requires the django-celery package): -# http://celery.readthedocs.org/en/latest/configuration.html - -# import djcelery -# -# djcelery.setup_loader() -# -# CELERY_SEND_TASK_ERROR_EMAILS = True -# BROKER_URL = 'redis://' - - -# Use Redis as the cache backend for extra performance -# (requires the django-redis-cache package): -# http://wagtail.readthedocs.org/en/latest/howto/performance.html#cache - -# CACHES = { -# 'default': { -# 'BACKEND': 'redis_cache.cache.RedisCache', -# 'LOCATION': '127.0.0.1:6379', -# 'KEY_PREFIX': 'pythonie', -# 'OPTIONS': { -# 'CLIENT_CLASS': 'redis_cache.client.DefaultClient', -# } -# } -# } - - try: from .local import * # noqa except ImportError: diff --git a/pythonie/pythonie/settings/tests.py b/pythonie/pythonie/settings/tests.py index 8579c94..00ec138 100644 --- a/pythonie/pythonie/settings/tests.py +++ b/pythonie/pythonie/settings/tests.py @@ -1,6 +1,5 @@ # ruff: noqa import os -from pythonie.settings.configure import configure_redis from .base import * @@ -53,5 +52,3 @@ } } ) - -REDIS = configure_redis(None, test=True) diff --git a/pythonie/sponsors/test_sponsors.py b/pythonie/sponsors/test_sponsors.py index ea9ff96..c84dbb6 100644 --- a/pythonie/sponsors/test_sponsors.py +++ b/pythonie/sponsors/test_sponsors.py @@ -1,12 +1,12 @@ from django.test import TestCase -from model_mommy import mommy +from model_bakery import baker from sponsors.models import Sponsor, SponsorshipLevel class SponsorModelTests(TestCase): def test_create_sponsor(self): - sponsor = mommy.make(Sponsor) + sponsor = baker.make(Sponsor) self.assertIsNotNone(sponsor.id) self.assertIsNotNone(sponsor.description) self.assertIsNotNone(sponsor.name) @@ -16,7 +16,7 @@ def test_create_sponsor(self): class SponsorshipLevelModelTests(TestCase): def test_create_sponsorshiplevel(self): - sponsorship = mommy.make(SponsorshipLevel) + sponsorship = baker.make(SponsorshipLevel) self.assertIsNotNone(sponsorship.id) self.assertIsNotNone(sponsorship.name) self.assertIsNotNone(sponsorship.level) diff --git a/pythonie/vagrant/provision.sh b/pythonie/vagrant/provision.sh index 5808de2..5a51e15 100644 --- a/pythonie/vagrant/provision.sh +++ b/pythonie/vagrant/provision.sh @@ -25,8 +25,6 @@ chmod a+x $PROJECT_DIR/manage.py su - vagrant -c "$PYTHON $PROJECT_DIR/manage.py migrate --noinput && \ $PYTHON $PROJECT_DIR/manage.py update_index" -apt-get install redis-server - # Add a couple of aliases to manage.py into .bashrc cat << EOF >> /home/vagrant/.bashrc alias dj="$PYTHON $PROJECT_DIR/manage.py" diff --git a/uv.lock b/uv.lock index 4a5215d..6fa4888 100644 --- a/uv.lock +++ b/uv.lock @@ -531,19 +531,6 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/45/c8/901282279841ebb59216433be01aac825fb905e1a597de3b7b5ab8b0c43e/faker-40.39.0-py3-none-any.whl", hash = "sha256:c4c7ec2cddfaf602c5a8a2c960614946aa8c161250bd9d49a8846cd24d1ef028", size = 2066232, upload-time = "2026-09-14T16:50:16.061Z" }, ] -[[package]] -name = "fakeredis" -version = "2.38.0" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "redis" }, - { name = "sortedcontainers" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/bf/6b/ad7db311fea3a62f7e359720cc8c064f06f8f0006e65272f50d3a23d37f6/fakeredis-2.38.0.tar.gz", hash = "sha256:d2abfd24652f86501044499bf08c9d639db050f695eefc06b8b8b6f0bb24dbd6", size = 271116, upload-time = "2026-09-08T21:15:04.806Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/ec/8e/9a80a8808e8a723aacb3a5d9df07890b46b363a056b372d3cd2e655259fe/fakeredis-2.38.0-py3-none-any.whl", hash = "sha256:d9fb0518c4eaa35f1f2c94df6b4a4c97ff3ca9f43d6cc8112317a9037d244301", size = 167360, upload-time = "2026-09-08T21:15:03.219Z" }, -] - [[package]] name = "filelock" version = "4.2.6" @@ -692,15 +679,15 @@ wheels = [ ] [[package]] -name = "model-mommy" -version = "2.0.0" +name = "model-bakery" +version = "1.25.0" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "django" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/0b/71/ae2850e1a466020e10f218ef5a917bed1812b50f9f0fd794330cb0475e70/model_mommy-2.0.0.tar.gz", hash = "sha256:3d332afce941c57f1990f45b083ba13252ba74fcd1ae43fd047e5af7a70fb312", size = 30412, upload-time = "2019-10-21T22:04:00.723Z" } +sdist = { url = "https://files.pythonhosted.org/packages/d8/86/d0cce6375c1142e557e38a5d7d54f4ea670218597ef1468b767fed84978c/model_bakery-1.25.0.tar.gz", hash = "sha256:64b021c948f7da0ffdcd1629effcfde4235b75d23ccd939811e37c016d969a47", size = 31317, upload-time = "2026-11-17T14:11:25.157Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/35/69/1d588507ba30f51e5347696a42bd37d4bf5d46cfc12ad335ed9d77ccfac3/model_mommy-2.0.0-py2.py3-none-any.whl", hash = "sha256:40d6e740aad7509e696a324b94cf2b0a104da93c3d4a7924cea1be3d0eb95b4f", size = 16513, upload-time = "2019-10-21T22:03:57.103Z" }, + { url = "https://files.pythonhosted.org/packages/7f/e0/81cb3240f513fae4ca874e319af96e1fe90f6eb5370899f589a9f613fda6/model_bakery-1.25.0-py3-none-any.whl", hash = "sha256:66c335a42c9759ecf50fd3e94a0ddd7a4e5110cc4ca2736cad9abb7615c7ba51", size = 32689, upload-time = "2026-11-17T14:11:23.808Z" }, ] [[package]] @@ -833,25 +820,6 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/2e/d3/973dcb98cd52c2ab20387c63c7831c66095875845b41bc92cc0eef9e6521/nab_resolver-0.0.18-py3-none-any.whl", hash = "sha256:28a15be8b9d906e34c925be76ba138d5a84aea05d9dbaf6b77a9bd8a22c90c9b", size = 57501, upload-time = "2026-09-20T01:24:37.341Z" }, ] -[[package]] -name = "numpy" -version = "2.5.3" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/13/01/11703282db468b85f6f7b8c7f22d058de5970d5c7e60a3a8aaa313c3de36/numpy-2.5.3.tar.gz", hash = "sha256:df2d5874ff183595a4ba404edd04f6bd9b5505c1d7708573f6a6c17489a67563", size = 20791231, upload-time = "2026-09-06T16:27:47.073Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/79/e5/8fb89cd46d14e35699d13bf943a5f5f441ecee8667120a1f6105ab89e349/numpy-2.5.3-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:66a78fe4556c60aceda5916f9eacd638b18e9e681016ec302dcb4682d6d4d034", size = 16991061, upload-time = "2026-09-06T16:25:00.411Z" }, - { url = "https://files.pythonhosted.org/packages/2f/06/9dc9e48b5e5e941c8b10350c5ff2d721da42a20517d911d15544246775ff/numpy-2.5.3-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:92f30e89b8ee0ecf363033576c422b2f58fed6a80bed0aa48dff6d14c654663e", size = 12003676, upload-time = "2026-09-06T16:25:03.475Z" }, - { url = "https://files.pythonhosted.org/packages/ab/2a/98282aa5b8f58b1157d440bb6282eed47e3632a5de53a714fbab17e659fe/numpy-2.5.3-cp313-cp313-macosx_14_0_arm64.whl", hash = "sha256:f9a2353b37a1a9e78fd82b27ad7e2a32a2d036604d18f02b05e3136c62ca3b09", size = 5439695, upload-time = "2026-09-06T16:25:05.978Z" }, - { url = "https://files.pythonhosted.org/packages/a1/f9/b6533d777be9d6ffd29dc1be0867e563e6e8cc9a220ff1b716adc317f060/numpy-2.5.3-cp313-cp313-macosx_14_0_x86_64.whl", hash = "sha256:ccbc4665079665c3cf3bab4db9f6b095370cd6437d66be549b6c2a1fd19e1958", size = 6779395, upload-time = "2026-09-06T16:25:08.599Z" }, - { url = "https://files.pythonhosted.org/packages/73/85/735720d04ec197c5dcfacdfc9922667c7f1f5f496a279b7ba4d7c74c4cc7/numpy-2.5.3-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:c76d5dde9f445058f83d0c02af00557a4db91de9a9a57c0df87d1535001d654b", size = 15681750, upload-time = "2026-09-06T16:25:11.173Z" }, - { url = "https://files.pythonhosted.org/packages/3a/1b/3b16a9bc514a440a7a0883684111dcb1ef1aee960af2ca95da8fc775f124/numpy-2.5.3-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:a5fa86b80fd24bcd1aff83ad23be44ea323de3f787be8f8b15d4a65621e25321", size = 16708577, upload-time = "2026-09-06T16:25:14.171Z" }, - { url = "https://files.pythonhosted.org/packages/69/c4/386f397831b07328b639c96c5b62719346cf4baf07c68d927239752b1534/numpy-2.5.3-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:bd4cb9ad3c7889b9b3fe0a9a9fb5d2ed26f9879bff2608d9f01aed147a20d231", size = 17042047, upload-time = "2026-09-06T16:25:17.582Z" }, - { url = "https://files.pythonhosted.org/packages/5f/3e/a700ecbf36e85ae8328fd3b0e12eeddc22ed6358a64cb2bd913e0d195d65/numpy-2.5.3-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:1302b90c0e52281681b2975adfe8a860cb7b12216a27b4b0b4207c44bf7bccf0", size = 18465724, upload-time = "2026-09-06T16:25:20.949Z" }, - { url = "https://files.pythonhosted.org/packages/41/ee/38e785e88a4045f6ad1d1f2808dcdfafdca48c760260c0587bf171e29fc9/numpy-2.5.3-cp313-cp313-win32.whl", hash = "sha256:1c80eabb4035ecf4ca9cd49cde8a9fdd69a729e63e6474887d1523ade7aa277f", size = 6129003, upload-time = "2026-09-06T16:25:23.664Z" }, - { url = "https://files.pythonhosted.org/packages/f3/ec/100f2b1794ede74a9b3d7ec6b9736927f56713414c1dfe19ab6c383494bf/numpy-2.5.3-cp313-cp313-win_amd64.whl", hash = "sha256:71cad2b2a7451ab79d8f5e71b453485b6775963d5cf794179144a7463fe6e8ec", size = 12560965, upload-time = "2026-09-06T16:25:26.602Z" }, - { url = "https://files.pythonhosted.org/packages/80/b1/7dc825ca94c12acebbce4c37caa5e198695eb31424bc579679f32b1bb49d/numpy-2.5.3-cp313-cp313-win_arm64.whl", hash = "sha256:8e4dd766076855b5ff7ea52fa5f07ce26286726e0f8bff446b7739d02e6ea204", size = 10482343, upload-time = "2026-09-06T16:25:29.772Z" }, -] - [[package]] name = "openpyxl" version = "3.1.5" @@ -882,27 +850,6 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/63/34/ba1c580383c9eada3711951fef0795c80b829a078d72188184bcab9dd527/packaging-26.3-py3-none-any.whl", hash = "sha256:d7193f7c8e4e93f444fde0262bf90af30e16fa0ad0ad44cb553c87339b23cd1c", size = 129956, upload-time = "2026-08-04T18:15:27.159Z" }, ] -[[package]] -name = "pandas" -version = "3.0.6" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "numpy" }, - { name = "python-dateutil" }, - { name = "tzdata", marker = "sys_platform == 'emscripten' or sys_platform == 'win32'" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/e2/17/d7b106e05bfa642e8694451e7d3d759c6a241c5386a5d962e4f66c047e06/pandas-3.0.6.tar.gz", hash = "sha256:66b07ef7315a31bfe1089cd3d71a7de781c9dca986762d0b4fe7c0ef17465d10", size = 4667686, upload-time = "2026-09-17T23:23:18.345Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/8e/1c/143605a1f6443ad50ebda78a31e5a3a10147fec2590e931584aaa5ff0a09/pandas-3.0.6-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:9ae8073aed8e21d1a7fe263dcdc6840743549722a6738198a0a46000fa9476f2", size = 10418900, upload-time = "2026-09-17T23:21:16.594Z" }, - { url = "https://files.pythonhosted.org/packages/ea/ca/87f8548f73d452aab35e4a90f8b39ae303295e0f2ef0b4055c44d6b3f1be/pandas-3.0.6-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:60d81f9e1799b36f3739e7fff44d1fbb2e8fd5a271b3863e03de9715fccda0fa", size = 10064785, upload-time = "2026-09-17T23:21:19.677Z" }, - { url = "https://files.pythonhosted.org/packages/43/1a/d951442e5607c6e3b2462eff8f420797d428aa74b87c6ecfe4f48553626e/pandas-3.0.6-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:097090508a1dd335013d39106fc10b20f4fd4a171638e47b77d55798ed9dab6c", size = 10245290, upload-time = "2026-09-17T23:21:22.797Z" }, - { url = "https://files.pythonhosted.org/packages/50/fa/96d50e1e6cd0b08b5e2b7c838f65ae644940f75a124063380b5ef73b6866/pandas-3.0.6-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:1e92d9fa834c7d877130027cddc0cad8dcff97c1f6cca26bd6310f847228b658", size = 10757657, upload-time = "2026-09-17T23:21:25.673Z" }, - { url = "https://files.pythonhosted.org/packages/7b/12/f82d13a2cb703e1a8acee7e01fdc2b898d9cd0c00f07d1dfce63af43e350/pandas-3.0.6-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:b27c8d890e4aa2171437ae2a39de1d215e674158e4865c4023a8b31c932513b2", size = 11249114, upload-time = "2026-09-17T23:21:28.898Z" }, - { url = "https://files.pythonhosted.org/packages/1a/ce/8aef2e561a2f2c8b38c913c67373c65ba6748174e763d27c80271b24bd17/pandas-3.0.6-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:f8029ec0f1f89e4f985929ce1f6626dabf3140d61a4e9c1215afdab34eaf9a5d", size = 11820511, upload-time = "2026-09-17T23:21:32.11Z" }, - { url = "https://files.pythonhosted.org/packages/c0/bd/63cb67e6903ef6d9c2871916dbcbc09d254da0fe8b870cf62e16b21945f2/pandas-3.0.6-cp313-cp313-win_amd64.whl", hash = "sha256:f3ce8a6968045481e91a3990e797e348ce13db45ee164a7095bbc824e26c09dd", size = 9638092, upload-time = "2026-09-17T23:21:34.883Z" }, - { url = "https://files.pythonhosted.org/packages/75/2e/e7b35b712edb068d382ddc8b2bea8a04974100515ba2daa22b478b265842/pandas-3.0.6-cp313-cp313-win_arm64.whl", hash = "sha256:cc39303913e2ea129915670de5d1c9fbd647f543bb72e5543bac8baa94e9e42f", size = 8952032, upload-time = "2026-09-17T23:21:37.729Z" }, -] - [[package]] name = "pillow" version = "13.0.0" @@ -1173,12 +1120,8 @@ dependencies = [ { name = "django-storages" }, { name = "django-taggit" }, { name = "gunicorn" }, - { name = "pandas" }, { name = "psycopg", extra = ["binary"] }, - { name = "pydantic" }, { name = "python-dateutil" }, - { name = "pytz" }, - { name = "redis" }, { name = "requests" }, { name = "wagtail" }, { name = "whitenoise" }, @@ -1189,9 +1132,8 @@ dependencies = [ dev = [ { name = "coverage" }, { name = "django-debug-toolbar" }, - { name = "fakeredis" }, { name = "isort" }, - { name = "model-mommy" }, + { name = "model-bakery" }, { name = "pip-audit" }, { name = "pipdeptree" }, { name = "ruff" }, @@ -1215,12 +1157,8 @@ requires-dist = [ { name = "django-storages", specifier = ">=1.14.6" }, { name = "django-taggit", specifier = ">=6.1.0" }, { name = "gunicorn", specifier = ">=26.2.0" }, - { name = "pandas", specifier = ">=3.0.6" }, { name = "psycopg", extras = ["binary"], specifier = ">=3.3.6" }, - { name = "pydantic", specifier = ">=2.13.5" }, { name = "python-dateutil", specifier = ">=2.9.0.post0" }, - { name = "pytz", specifier = ">=2026.4" }, - { name = "redis", specifier = ">=8.1.0" }, { name = "requests", specifier = ">=2.34.2" }, { name = "wagtail", specifier = ">=8.1,<8.2" }, { name = "whitenoise", specifier = ">=6.12.0" }, @@ -1231,9 +1169,8 @@ requires-dist = [ dev = [ { name = "coverage", specifier = ">=7.16.1" }, { name = "django-debug-toolbar", specifier = ">=8.0.0" }, - { name = "fakeredis", specifier = ">=2.38.0" }, { name = "isort", specifier = ">=9.0.1" }, - { name = "model-mommy", specifier = ">=2.0.0" }, + { name = "model-bakery", specifier = ">=1.25.0" }, { name = "pip-audit", specifier = ">=2.10.1" }, { name = "pipdeptree", specifier = ">=4.2.5" }, { name = "ruff", specifier = "==0.16.9" }, @@ -1241,15 +1178,6 @@ dev = [ { name = "wagtail-factories", specifier = ">=4.5.0" }, ] -[[package]] -name = "pytz" -version = "2026.4" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/b0/ed/fa23d28713004418bbf2407127f80f385bfb0bf4e677bef02c25c27b00ee/pytz-2026.4.tar.gz", hash = "sha256:464303645bafafd72418898368b2429458f709cf1eb6a15372fbcc396b64da63", size = 318444, upload-time = "2026-09-24T03:58:40.443Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/d5/11/e3df59614bebe0ca50c905442603eda64ae7ac19811d4e4f74aa2d51ca85/pytz-2026.4-py2.py3-none-any.whl", hash = "sha256:9d514388fbc89ca0833203464272ac485b8828568ab73532f5020f17e892a0ff", size = 506747, upload-time = "2026-09-24T03:58:38.629Z" }, -] - [[package]] name = "rcssmin" version = "1.2.2" @@ -1270,15 +1198,6 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/5e/e1/fb555f831d5e5674a91444007434ba85b4ae98cfd97dd7bc9c2962c0f56b/rcssmin-1.2.2-cp313-cp313t-musllinux_1_1_x86_64.whl", hash = "sha256:742bb522d1efe0f1d362d81e00b5dc93ca2ddd1e435ed2d921cfa84fbb9f6887", size = 54858, upload-time = "2025-10-12T10:48:51.941Z" }, ] -[[package]] -name = "redis" -version = "8.1.0" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/a8/99/604f0b666d4c616d891cf77ebb9db6bb21601344c051aebf1b72b9ff915f/redis-8.1.0.tar.gz", hash = "sha256:6e1a19beef9225c83efd689c7e6b7da2d5215b1f42cd13b7fc3714d0a09c7b25", size = 5254356, upload-time = "2026-07-30T08:51:00.269Z" } -wheels = [ - { url = "https://files.pythonhosted.org/packages/66/9d/c5731f6e3608663d4d3656fd8d3aecee8b509c3082818f5a13eae925baea/redis-8.1.0-py3-none-any.whl", hash = "sha256:a4fe1aac3d3b3cc791d4b3d5931c5a956045dc951ee74d1c913ee3ac4d2ee9fb", size = 560618, upload-time = "2026-07-30T08:50:58.497Z" }, -] - [[package]] name = "requests" version = "2.34.2"