Skip to content
This repository was archived by the owner on Feb 14, 2023. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# This Makefile is based on the Makefile defined in the Python Best Practices repository:
# https://git.datapunt.amsterdam.nl/Datapunt/python-best-practices/blob/master/dependency_management/
#
# VERSION = 2020.01.29
.PHONY = help pip-tools install requirements update
PYTHON = python3
dc = docker-compose -p timetell

help: ## Show this help.
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//'

pip-tools:
pip install pip-tools

install: pip-tools ## Install requirements and sync venv with expected state as defined in requirements.txt
pip-sync requirements.txt

requirements: pip-tools ## Upgrade requirements (in requirements.in) to latest versions and compile requirements.txt
pip-compile --upgrade --output-file requirements.txt requirements.in

upgrade: requirements install ## Run 'requirements' and 'install' targets
7 changes: 7 additions & 0 deletions requirements.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Django
djangorestframework
psycopg2-binary
django-filter
django-cors-headers
flake8
coverage
20 changes: 20 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#
# This file is autogenerated by pip-compile
# To update, run:
#
# pip-compile --output-file=requirements.txt requirements.in
#
asgiref==3.2.3 # via django
coverage==5.0.3 # via -r requirements.in
django-cors-headers==3.2.1 # via -r requirements.in
django-filter==2.2.0 # via -r requirements.in
django==3.0.3 # via -r requirements.in, django-cors-headers, django-filter, djangorestframework
djangorestframework==3.11.0 # via -r requirements.in
entrypoints==0.3 # via flake8
flake8==3.7.9 # via -r requirements.in
mccabe==0.6.1 # via flake8
psycopg2-binary==2.8.4 # via -r requirements.in
pycodestyle==2.5.0 # via flake8
pyflakes==2.1.1 # via flake8
pytz==2019.3 # via django
sqlparse==0.3.0 # via django
21 changes: 21 additions & 0 deletions src/importer/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# This Makefile is based on the Makefile defined in the Python Best Practices repository:
# https://git.datapunt.amsterdam.nl/Datapunt/python-best-practices/blob/master/dependency_management/
#
# VERSION = 2020.01.29
.PHONY = help pip-tools install requirements update
PYTHON = python3
dc = docker-compose -p timetell

help: ## Show this help.
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//'

pip-tools:
pip install pip-tools

install: pip-tools ## Install requirements and sync venv with expected state as defined in requirements.txt
pip-sync requirements.txt

requirements: pip-tools ## Upgrade requirements (in requirements.in) to latest versions and compile requirements.txt
pip-compile --upgrade --output-file requirements.txt requirements.in

upgrade: requirements install ## Run 'requirements' and 'install' targets
2 changes: 1 addition & 1 deletion src/importer/env-datapunt-dev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ set -x

export DATABASE_NAME=timetell
export DATABASE_USER=timetell
export DATABASE_PASSWORD=timetell
export DATABASE_PASSWORD=insecure
export DATABASE_HOST=localhost
export DATABASE_PORT=5444

Expand Down
12 changes: 12 additions & 0 deletions src/importer/requirements.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
aiohttp
async-timeout
asyncio
asyncpg
attrs
chardet
idna

multidict
typing-extensions
uvloop
yarl
29 changes: 17 additions & 12 deletions src/importer/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
aiohttp==3.5.4
async-timeout==3.0.1
asyncio==3.4.3
asyncpg==0.18.3
attrs==19.1.0
chardet==3.0.4
idna==2.8
idna-ssl==1.1.0
multidict==4.5.2
typing-extensions==3.7.4
uvloop==0.12.2
yarl==1.3.0
#
# This file is autogenerated by pip-compile
# To update, run:
#
# pip-compile --output-file=requirements.txt requirements.in
#
aiohttp==3.6.2 # via -r requirements.in
async-timeout==3.0.1 # via -r requirements.in, aiohttp
asyncio==3.4.3 # via -r requirements.in
asyncpg==0.20.1 # via -r requirements.in
attrs==19.3.0 # via -r requirements.in, aiohttp
chardet==3.0.4 # via -r requirements.in, aiohttp
idna==2.9 # via -r requirements.in, yarl
multidict==4.7.5 # via -r requirements.in, aiohttp, yarl
typing-extensions==3.7.4.1 # via -r requirements.in
uvloop==0.14.0 # via -r requirements.in
yarl==1.4.2 # via -r requirements.in, aiohttp
7 changes: 0 additions & 7 deletions src/requirements.txt

This file was deleted.