Agregados requerimientos y separados por dev y prod

This commit is contained in:
Daniel Cortes
2020-06-07 23:10:00 -04:00
parent 0a6d9c3c8e
commit edbdcb1296
5 changed files with 5 additions and 3 deletions

View File

@@ -10,7 +10,7 @@ before_script:
test: test:
stage: test stage: test
script: script:
- pip install -r requirements.txt - pip install -r requirements.txt -r requirements-dev.text
- ./lint.sh - ./lint.sh
deploy: deploy:

View File

@@ -6,7 +6,7 @@ set -eu
# Activate venv # Activate venv
. venv/bin/activate . venv/bin/activate
# Install all requirements # Install all requirements
pip install -r requirements.txt pip install -r requirements.txt -r requirements-dev.txt
# Collect static files # Collect static files

2
requirements-dev.txt Normal file
View File

@@ -0,0 +1,2 @@
pylint # Linting
pylint-exit # Maps pylint exit codes to something sane for linux

1
requirements-prod.txt Normal file
View File

@@ -0,0 +1 @@
gunicorn # To run the server on production

View File

@@ -7,5 +7,4 @@ ratelimit # To rate limit request to musicbrainz
redis # To comunicate with redis redis # To comunicate with redis
requests # Saner request library requests # Saner request library
blake3 # To use blake3 hashing, since python seeds every hash on hashlib and is different between instances blake3 # To use blake3 hashing, since python seeds every hash on hashlib and is different between instances
gunicorn # To run the server on production
country_list # To transform country codes to their names country_list # To transform country codes to their names