-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
34 lines (23 loc) · 832 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
.DEFAULT_GOAL=ls
ls: # List available commands
@grep '^[^#[:space:]].*:' Makefile
freeze: # Show installed dependencies
@pip freeze
format: # Black format and isort imports
@black . && isort .
install: # Install py dependencies
@pip install -e ".[tests]"
install-pipenv: # Install py dependencies using pipenv
@pipenv install -e ".[tests]"
run: # Fetch data, convert it to yaml, and then save it in invenio_subjects_cessda/vocabularies/cessda_voc.yaml
@DEBUGGER=True python main.py
test: # Run tests
@bash run-tests.sh
install-package-tools-pipenv: # Install twine using pipenv
@pipenv install twine
install-package-tools: # Install twine
@pip install twine
package-check: # Check package if it pass pypi tests
@twine check dist/*
package: # Package to tar.gz file for uploading to pypi
@python setup.py sdist