-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
42 lines (35 loc) · 941 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
40
41
42
SHELL=/bin/bash -o pipefail
# Run tests
test:
@pip install .[test]
@PYTHONPATH=src/ pytest \
--cov src/v2_samplesheet_maker \
--capture=no | \
tee coverage_report.txt
# Run build
build_package:
@pip install .[build]
@python3 -m build
# Install package
install:
@pip install .
# Push to test pypi
push_test_pypi:
@pip install .[deploy]
@python3 -m twine upload --repository testpypi dist/* --verbose
# Install from test pypi
install_test_pypi:
@pip install \
--index-url https://test.pypi.org/simple/ \
--extra-index-url https://pypi.org/simple/ \
v2-samplesheet-maker==${V2_SAMPLESHEET_MAKER_VERSION}
@v2-samplesheet-maker --help
# Install to pypi
push_pypi:
@pip install .[deploy]
@python3 -m twine upload --repository pypi dist/* --verbose
install_pypi:
@pip install \
--index-url https://pypi.org/simple/ \
v2-samplesheet-maker==${V2_SAMPLESHEET_MAKER_VERSION}
@v2-samplesheet-maker --help