Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
fopina committed Jul 14, 2020
1 parent c7a203f commit 9041eb6
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 9 deletions.
10 changes: 10 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,12 @@ startmysql:
docker run --name django-database-locks-mysql \
-e MYSQL_ROOT_PASSWORD=root \
--rm -p 8877:3306 -d \
--health-cmd "mysqladmin ping" \
--health-interval 10s \
--health-timeout 5s \
--health-retries=5 \
mysql:5
# TODO: wait for healthy

startpg:
docker inspect django-database-locks-pg | grep '"Running": true' || \
Expand All @@ -24,7 +29,12 @@ startpg:
-e POSTGRES_PASSWORD=postgres \
-e POSTGRES_DB=postgres \
--rm -p 8878:5432 -d \
--health-cmd pg_isready \
--health-interval 10s \
--health-timeout 5s \
--health-retries 5 \
postgres:10
# TODO: wait for healthy

test: startmysql
DJANGO_SETTINGS_MODULE=settings_mysql \
Expand Down
5 changes: 2 additions & 3 deletions README.rst → README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
=====================
django-database-locks
=====================
# django-bulk-update-or-create


.. image:: https://github.com/fopina/django-database-locks/workflows/tests/badge.svg
:target: https://github.com/fopina/django-database-locks/actions?query=workflow%3Atests
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
13 changes: 7 additions & 6 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
[metadata]
name = django-database-locks
version = 0.3
description = Distributed locks for Django using DB (MySQL/Postgres).
long_description = file: README.rst
name = django-bulk-update-or-create
version = 0.1
description = `bulk_update_or_create` for Django model managers
long_description = file: README.md
long_description_content_type = text/markdown
author = Filipe Pina
author_email = [email protected]
url = https://github.com/fopina/django-database-locks
download_url = https://pypi.org/project/django-database-locks/
url = https://github.com/fopina/django-bulk-update-or-create/
download_url = https://pypi.org/project/django-bulk-update-or-create/
license = BSD
license_files = LICENSE
classifiers =
Expand Down

0 comments on commit 9041eb6

Please sign in to comment.