Skip to content

Update django-livefield to poetry#64

Merged
cnotbohm merged 3 commits intohearsaycorp:masterfrom
cnotbohm:CEL-1437
Mar 4, 2026
Merged

Update django-livefield to poetry#64
cnotbohm merged 3 commits intohearsaycorp:masterfrom
cnotbohm:CEL-1437

Conversation

@cnotbohm
Copy link
Copy Markdown
Contributor

@cnotbohm cnotbohm commented Mar 4, 2026

This PR updates the repo to poetry for build, testing, and publishing.
It also updates documents to be in MD formate
A future PR will then update the repo to have python 3.14 support and Django 5.2 support

@@ -0,0 +1,89 @@
name: Client Build, Publish, and Release
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This action follows our old process, publish to pypi first, then create a github release, but does it all manually for us

only users with write access to the repo will be able to call the action

Comment on lines +18 to +48
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
django-version: ['3.2', '4.0', '4.1', '4.2', '5.0']
services:
postgres:
image: postgres:12
ports:
- 5432:5432
options: >-
--health-cmd=pg_isready
--health-interval=10s
--health-timeout=5s
--health-retries=5
env:
POSTGRES_DB: testdb
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
mysql:
image: mysql:8
ports:
- 3306:3306
options: >-
--health-cmd="mysqladmin ping"
--health-interval=10s
--health-timeout=5s
--health-retries=5
env:
MYSQL_USER: travis
MYSQL_PASSWORD: travis
MYSQL_ALLOW_EMPTY_PASSWORD: true
MYSQL_DATABASE: test_testdb
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

runs the tests the same as the repo did before

Comment thread tests/run_tests.py
Comment on lines +11 to +31
def _db_settings():
db_engine = os.environ.get("DJANGO_DB_ENGINE", "sqlite")
if db_engine == "mysql":
return {
"ENGINE": "django.db.backends.mysql",
"NAME": os.environ["DJANGO_DB_NAME"],
"USER": os.environ["DJANGO_DB_USER"],
}
if db_engine == "postgres":
return {
"ENGINE": "django.db.backends.postgresql",
"NAME": os.environ["DJANGO_DB_NAME"],
"USER": os.environ["DJANGO_DB_USER"],
}
if db_engine == "sqlite":
return {
"ENGINE": "django.db.backends.sqlite3",
"NAME": os.path.join(REPO_ROOT, "database.db"),
}

raise ValueError(f"Unknown DB engine: {db_engine}")
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this sets up a mock DB the same way setup.py did before

@cnotbohm cnotbohm marked this pull request as ready for review March 4, 2026 21:36
@cnotbohm cnotbohm merged commit dbd124e into hearsaycorp:master Mar 4, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants