modernize stack with makefile
This commit is contained in:
1 parent
7e24c64b5b
commit
5b9bbcacbf
9 files changed
+24
-64
No files matched your search
+1
-1
@@ -1,7 +1,7 @@
|
||||
root = true
|
||||
|
||||
[*]
|
||||
indent_style = space
|
||||
indent_style = tab
|
||||
indent_size = 4
|
||||
end_of_line = lf
|
||||
charset = utf-8
|
||||
|
||||
@@ -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/*
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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'
|
||||
],
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
from unittest import TestLoader, TextTestRunner
|
||||
|
||||
tests = TestLoader().discover('./tests')
|
||||
result = TextTestRunner(verbosity=20).run(tests)
|
||||
Whitespace-only changes.
Reference in new issue
Block a user