aioitertools/makefile

42 lines
782 B
Makefile
Raw Normal View History

2018-06-27 02:56:33 +00:00
build:
2020-04-22 18:05:20 +00:00
flit build
2018-06-27 02:56:33 +00:00
dev:
2020-04-22 18:05:20 +00:00
flit install --symlink
2018-06-27 02:56:33 +00:00
setup:
python -m pip install -Ur requirements-dev.txt
2018-06-27 02:56:33 +00:00
2020-04-29 06:07:43 +00:00
.venv:
python -m venv .venv
2018-06-27 02:56:33 +00:00
source .venv/bin/activate && make setup dev
echo 'run `source .venv/bin/activate` to use virtualenv'
2020-04-29 06:07:43 +00:00
venv: .venv
2018-06-27 02:56:33 +00:00
release: lint test clean
2020-04-22 18:05:20 +00:00
flit publish
2018-06-27 02:56:33 +00:00
format:
python -m usort format aioitertools
2020-04-22 18:05:20 +00:00
python -m black aioitertools
2018-06-27 02:56:33 +00:00
lint:
2021-05-16 21:04:41 +00:00
python -m flake8 aioitertools
python -m usort check aioitertools
2020-04-22 18:05:20 +00:00
python -m black --check aioitertools
2018-06-27 02:56:33 +00:00
test:
python -m coverage run -m aioitertools.tests
python -m coverage report
python -m mypy aioitertools
2018-06-27 02:56:33 +00:00
2020-04-29 06:07:43 +00:00
html: .venv README.md docs/*
source .venv/bin/activate && sphinx-build -b html docs html
2018-06-27 02:56:33 +00:00
clean:
2022-02-07 05:21:56 +00:00
rm -rf .mypy_cache build dist html README MANIFEST *.egg-info
2020-04-22 18:05:20 +00:00
distclean: clean
2022-02-07 05:21:56 +00:00
rm -rf .venv