mirror of
https://github.com/domainaware/parsedmarc.git
synced 2026-04-04 20:58:53 +00:00
Better build script
This commit is contained in:
4
.vscode/settings.json
vendored
4
.vscode/settings.json
vendored
@@ -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",
|
||||
|
||||
18
build.sh
18
build.sh
@@ -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
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user