modernize stack with makefile

This commit is contained in:
ari committed 2020-10-12 18:42:00 -04:00
1 parent 7e24c64b5b
commit 5b9bbcacbf
9 files changed
+24 -64

No files matched your search

+1 -1
View File
@@ -1,7 +1,7 @@
root = true
[*]
indent_style = space
indent_style = tab
indent_size = 4
end_of_line = lf
charset = utf-8
+22
View File
@@ -0,0 +1,22 @@
install-development:
python3 -m venv venv
./venv/bin/pip install -e .[dev]
clean:
rm -rf venv
rm -rf build
rm -rf dist
rm -rf *.egg-info
test:
./venv/bin/python -m unittest discover tests
build-docs:
mkdocs build
deploy:
python setup.py sdist bdist_wheel
git tag $(cat .version)
git push -u origin $(cat .version)
twine upload dist/*
-7
View File
@@ -1,7 +0,0 @@
#!/bin/bash
# Get working dir (this will make sure that the script will work the same anywhere you run it)
WK_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $WK_DIR
cd ..
mkdocs build
-9
View File
@@ -1,9 +0,0 @@
#!/bin/bash
# Get working dir (this will make sure that the script will work the same anywhere you run it)
WK_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $WK_DIR
cd ..
rm build -rf
rm dist -rf
rm pdfmajor.egg-info -rf
-23
View File
@@ -1,23 +0,0 @@
#!/bin/bash
# Get working dir (this will make sure that the script will work the same anywhere you run it)
WK_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $WK_DIR
cd ..
./bin/clean.sh
if ./bin/run_tests.sh; then
python setup.py sdist bdist_wheel
git add .
git commit
git push
git tag $(cat .version)
git push -u origin $(cat .version)
twine upload dist/*
else
echo ">>> Stopped due to test failure!"
fi
-19
View File
@@ -1,19 +0,0 @@
#!/bin/bash
# Get working dir (this will make sure that the script will work the same anywhere you run it)
WK_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $WK_DIR
cd ..
# for filename in ./tests/test*.py; do
# if python $filename ; then
# echo woohoo
# else
# exit 1
# fi
# done
if python ./test.py ; then
echo "PASSED TESTS"
else
exit 1
fi
+1 -1
View File
@@ -13,7 +13,7 @@ with open('README.md') as readme_file:
"version": "1.3.13",
"packages": find_packages(include=['pdfmajor*']),
"install_requires": [
'pycryptodome==3.8.2',
'pycryptodome==3.8.2',
'chardet==3.0.4',
'Pillow>=6.2.0'
],
-4
View File
@@ -1,4 +0,0 @@
from unittest import TestLoader, TextTestRunner
tests = TestLoader().discover('./tests')
result = TextTestRunner(verbosity=20).run(tests)
View File
Whitespace-only changes.