Better build script

This commit is contained in:
Sean Whalen
2022-12-23 20:20:53 -05:00
parent f82445fa06
commit 375aaf025d
3 changed files with 22 additions and 2 deletions

View File

@@ -10,6 +10,7 @@
"aspf",
"autoclass",
"automodule",
"backported",
"bellsouth",
"brakhane",
"Brightmail",
@@ -19,6 +20,7 @@
"Codecov",
"confnew",
"dateparser",
"dateutil",
"Davmail",
"DBIP",
"deflist",
@@ -68,6 +70,7 @@
"Munge",
"ndjson",
"newkey",
"nojekyll",
"nondigest",
"nosecureimap",
"nosniff",
@@ -83,6 +86,7 @@
"quickstart",
"Reindex",
"replyto",
"reversename",
"Rollup",
"Rpdm",
"SAMEORIGIN",

View File

@@ -1,4 +1,20 @@
#!/usr/bin/env bash
set -e
if [ ! -d "venv" ]; then
virtualenv venv || exit
fi
. venv/bin/activate
pip3 install -U -r requirements.txt && cd docs && make html && cp -r build/html/* ../../parsedmarc-docs/ && cd .. && flake8 parsedmarc && flake8 tests.py && python3 tests.py && rm -rf dist/ build/ && hatch build
pip install -U -r requirements.txt
cd docs
make clean
make html
touch build/html/.nojekyll
cp -rf build/html/* ../../parsedmarc-docs/
cd ..
flake8 parsedmarc
python3 tests.py
rm -rf dist/ build/
hatch build

View File

@@ -62,7 +62,7 @@ class EmailParserError(RuntimeError):
class DownloadError(RuntimeError):
"""Rasied when an error occurs when downloading a file"""
"""Raised when an error occurs when downloading a file"""
def decode_base64(data):