mirror of
https://github.com/domainaware/parsedmarc.git
synced 2026-06-17 07:44:18 +00:00
3feb478793
- Fix since option to correctly work with weeks (PR #604) - Add 183 entries to `base_reverse_dns_map.csv` - Add 57 entries to `known_unknown_base_reverse_dns.txt` - Check for invalid UTF-8 bytes in `base_reverse_dns_map.csv` at build - Remove unneeded items from the `parsedmarc.resources` module at build
29 lines
531 B
Bash
Executable File
29 lines
531 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
if [ ! -d "venv" ]; then
|
|
virtualenv venv || exit
|
|
fi
|
|
|
|
. venv/bin/activate
|
|
pip install .[build]
|
|
ruff format .
|
|
ruff check .
|
|
cd docs
|
|
make clean
|
|
make html
|
|
touch build/html/.nojekyll
|
|
if [ -d "./../parsedmarc-docs" ]; then
|
|
cp -rf build/html/* ../../parsedmarc-docs/
|
|
fi
|
|
cd ..
|
|
cd parsedmarc/resources/maps
|
|
python3 sortmaps.py
|
|
echo "Checking for invalid UTF-8 bytes in base_reverse_dns_map.csv"
|
|
python3 find_bad_utf8.py base_reverse_dns_map.csv
|
|
cd ../../..
|
|
python3 tests.py
|
|
rm -rf dist/ build/
|
|
hatch build
|