-
Notifications
You must be signed in to change notification settings - Fork 17
/
Makefile
46 lines (33 loc) · 848 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
43
44
45
46
files = stock_pandas test *.py
test_files = *
# test_files = cum_append
export STOCK_PANDAS_BUILDING = 1
export STOCK_PANDAS_UPLOADING = 1
test:
STOCK_PANDAS_COW=1 pytest -s -v test/test_$(test_files).py --doctest-modules --cov stock_pandas --cov-config=.coveragerc --cov-report term-missing
lint:
ruff check $(files)
fix:
ruff check --fix $(files)
install:
pip install -U .[dev]
pip install -U -r docs/requirements.txt
report:
codecov
build: stock_pandas
rm -rf dist
make build-ext
python setup.py sdist bdist_wheel
build-ext:
python setup.py build_ext --inplace
# Used to test build_ext without cython
build-ext-no-cython:
python setup.py build_ext --inplace
build-doc:
sphinx-build -b html docs build_docs
upload:
twine upload --config-file ~/.pypirc -r pypi dist/*
publish:
make build
make upload
.PHONY: test build