-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
39 lines (28 loc) · 773 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
35
36
37
38
39
install:
pip install -r requirements.txt
build:
python -m build
clean_build:
rm -rf build/ && rm -rf dist/ && rm -rf src/KeyExtractor.egg-info/
upload_test:
twine upload -r testpypi dist/*
upload:
twine upload dist/*
build_and_upload_test:
$(MAKE) clean_build && \
$(MAKE) build && \
$(MAKE) upload_test
build_and_upload:
$(MAKE) clean_build && \
$(MAKE) build && \
$(MAKE) upload
pip_download_test:
python3 -m pip install --index-url https://test.pypi.org/simple/ --no-deps KeyExtractor
pip_install:
pip install KeyExtractor
test:
nosetests -v tests
freeze_package:
poetry export --without-hashes -f requirements.txt --output requirements.txt
test-pytest:
PYTHONPATH=./src pytest tests/ --log-cli-level=warning --cov=./ --cov-report term-missing