mirror of
https://github.com/domainaware/parsedmarc.git
synced 2026-02-17 07:03:58 +00:00
obey style guide and make build.sh more readable
The script build.sh should be more readable now, and a little less error-prone as it creates the parsedmarc-docs directory if it is missing
This commit is contained in:
17
build.sh
17
build.sh
@@ -1,4 +1,19 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
. venv/bin/activate
|
||||
pip install -U -r requirements.txt && rstcheck --report warning README.rst && cd docs && make html && touch _build/html/.nojekyll && cp -rf _build/html/* ../../parsedmarc-docs/ && cd .. && flake8 parsedmarc && flake8 tests.py && rm -rf dist/ build/ && python3 setup.py sdist && python3 setup.py bdist_wheel
|
||||
|
||||
pip install -U -r requirements.txt
|
||||
rstcheck --report warning README.rst
|
||||
cd docs
|
||||
make html
|
||||
touch _build/html/.nojekyll
|
||||
mkdir -p ../../parsedmarc-docs/
|
||||
cp -rf _build/html/* ../../parsedmarc-docs/
|
||||
cd ..
|
||||
flake8 parsedmarc
|
||||
flake8 tests.py
|
||||
rm -rf dist/ build/
|
||||
python3 setup.py sdist
|
||||
python3 setup.py bdist_wheel
|
||||
|
||||
Reference in New Issue
Block a user