-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
43 lines (30 loc) · 982 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
include ../../tools/coverage.mk
install: package-data
pip install .
install-dev: package-data
pip install -e .[test]
docs/install: package-data
pip install -e .[docs]
docs/local:
pdoc src/cellxgene_ontology_guide
docs/build:
pdoc --output-dir docs/ src/cellxgene_ontology_guide
uninstall:
pip uninstall -y cellxgene-ontology-guide
clean: uninstall
rm -rf ./build ./src/cellxgene_ontology_guide.egg-info ./src/cellxgene_ontology_guide/data ./LICENSE
package-data:
cp ../../LICENSE ./LICENSE
cp -r ../../ontology-assets/ ./src/cellxgene_ontology_guide/data
touch ./src/cellxgene_ontology_guide/data/__init__.py
build: package-data
python -m pip install --upgrade pip
pip install build twine
python -m build
release/testpypi: build
python -m twine upload --repository testpypi dist/*
release/pypi: build
# Manually release in case CI/CD pipeline is not working in ./.github/workflows/release.yml
python -m twine upload dist/*
unit-tests:
python -m pytest