Commit graph

120 commits

Author SHA1 Message Date
bronsen
112013962d [CI debug] is the venv really active? 2025-03-14 23:00:19 +01:00
bronsen
0b164cdf1a [CI] tell pip it's ok to run as root 2025-03-14 22:59:53 +01:00
bronsen
f5aabe7fb7 Revert "[CI] attempt to improve performance of postgres service"
This reverts commit 490e983aa7.
2025-03-14 22:54:47 +01:00
bronsen
490e983aa7 [CI] attempt to improve performance of postgres service
as per suggestion from saces:
https://matrix.to/#/%23coding%3Ac-base.org/%24T3HnHRzsqyUOrzQCV8y2dtOzNsPMlb-nFooEOrZuK5E?via=c-base.org&via=matrix.org&via=hackerfleet.eu
2025-03-14 22:51:34 +01:00
bronsen
371dcf9e0f [CI] pip should never prompt for input
and we quieten it down a bit
2025-03-14 22:49:45 +01:00
bronsen
b6b7bb2aaa [CI] Turn debug OFF on ci 2025-03-14 22:36:19 +01:00
bronsen
9dd197bc98 [urls] only include django debug toolbar's urls when DEBUG is True 2025-03-14 22:35:42 +01:00
bronsen
c3cd67a78f [CI] tell django-environ about database user 2025-03-14 22:23:56 +01:00
bronsen
c151da6b8a [CI] tell service about database name 2025-03-14 22:23:56 +01:00
bronsen
bf020f57e7 [tests] make test look for .env.ci on CI 2025-03-14 22:18:31 +01:00
bronsen
69ca3e4e8c [CI] set up postgres service in workflow
also makes it use a .env.ci file that uses the correct host name
2025-03-14 22:13:31 +01:00
bronsen
676bc7d4ea [dependencies] move django-extensions into prod
We use their ModificationDateTimeField after all
2025-03-14 19:58:37 +01:00
bronsen
08e5cabdb4 [todo] remove file, items have been made into issues in the code forge at c-base 2025-03-14 14:42:41 +01:00
bronsen
6cbbf97046 [todo] add even more items
some are perhaps too ambitious for this project...
2025-03-14 14:25:37 +01:00
bronsen
ac6e09f057 [todo] move completed items to "done" section 2025-03-14 14:25:11 +01:00
bronsen
91028bb7e4 [project] bump version
so we can try a new `pdm build`
2025-03-14 14:20:21 +01:00
bronsen
2c866fe6a8 [project] tell pdm exactly where to find version info 2025-03-14 14:19:40 +01:00
bronsen
e6034e1e10 [todo] add new item about logging 2025-03-14 14:16:37 +01:00
bronsen
ef894d2b2a [CI] select test deployment when running tests on CI 2025-03-14 14:16:16 +01:00
bronsen
ecd80c291a [deployment] select .env according to env var 2025-03-14 14:15:51 +01:00
bronsen
3fdc60d9e5 [CI] add woodpecker config for use on code.c-base.org 2025-03-14 13:28:53 +01:00
bronsen
063b2959a6 [project] settings.py react to the DEPLOYMENT variable 2025-03-14 12:43:38 +01:00
bronsen
474df0342c [project] create pyproject.toml, readme, version file
`pdm build` even builds this package; no idea if it would be
installable/usable though
2025-03-14 12:37:30 +01:00
bronsen
a3a71f318d [git] add datadump to project-specific gitignore
The global gitignore is still in effect. That one was created using
https://www.toptal.com/developers/gitignore/api/python,vim,direnv,pycharm+all,rust,node,django,python,visualstudiocode
2025-03-14 12:05:12 +01:00
bronsen
3a68239291 [dependencies] ruff got an update 2025-03-14 11:15:54 +01:00
bronsen
0b57968101 [just] sync using pip-tools' pip-sync
pip-sync uninstalls packages that are not in the specified requirements
file; we want that
2025-03-14 11:13:19 +01:00
bronsen
5bd66aeae8 [collector views] prominently display Teil number 2025-03-13 20:08:54 +01:00
bronsen
550843f2a8 [project] export/import works well enough via dumpdata/loaddata 2025-03-13 19:55:49 +01:00
bronsen
c1383ca376 [dev] add django debug toolbar to dev env 2025-03-13 19:55:08 +01:00
bronsen
470e690c61 [dependencies] split them up further 2025-03-13 19:55:08 +01:00
bronsen
cd2066024f [project] add TODO list 2025-03-13 19:55:08 +01:00
bronsen
b69b65a6fa [collector admin] massively improve usability of the TeileAdmin 2025-03-13 19:17:28 +01:00
bronsen
90f23d1e1f [collector templates] remove broken form from detail.html 2025-03-13 19:17:09 +01:00
bronsen
6386d25fff [collector views] switch some views to class-based ones 2025-03-13 19:03:57 +01:00
bronsen
59596f3064 [collector views] wrap attempt to create a new Teil in a transaction 2025-03-13 18:42:14 +01:00
bronsen
f1ab7afb6f [tests] Ensure it is ok the enter the same name twice 2025-03-13 18:41:20 +01:00
bronsen
819bbfc7d9 [tests] use hypothesis to generate test data 2025-03-13 18:13:41 +01:00
bronsen
1f100d329b [pytest] create session-scoped django.test.Client fixture 2025-03-13 18:13:16 +01:00
bronsen
55be0c8370 [tests] Ensure new Teil is entered into the DB 2025-03-13 17:45:01 +01:00
bronsen
8500ebb157 [tests] Tell pytest to always create a new db and to NOT run migrations 2025-03-13 17:44:32 +01:00
bronsen
3edd39f013 [collector view] emit warning log when a Teil aready existed 2025-03-13 17:43:46 +01:00
bronsen
30f6d6c8c1 [config] load testing env when under pytest 2025-03-13 17:15:23 +01:00
bronsen
04cb10d13c [just] add testing recipe 2025-03-13 17:14:54 +01:00
bronsen
f1a24af335 [tests] Tell pytest where/how to find tests 2025-03-13 17:14:26 +01:00
bronsen
27c9a3a35b [collector] can now collect Teile and list them
If a newly entered Teil already exists, we ignore that and do nothing.

"name" could become a primary key...
2025-03-13 16:32:31 +01:00
bronsen
1870d50ccf [collector admin] register Teil model in admin 2025-03-12 23:52:36 +01:00
bronsen
6214610edc [collector view] rudimentary implementation of list and detail view 2025-03-12 23:52:18 +01:00
bronsen
d6ff246804 [codestyle] format settings module 2025-03-12 23:13:14 +01:00
bronsen
804bce4719 [django] set timezone and disable i18n 2025-03-12 23:12:41 +01:00
bronsen
15279ee99c [collector] rename model to singular form, but provide verbose_name* in Meta 2025-03-12 23:11:58 +01:00