Commit 1818744f authored by Daniel Boeckenhoff's avatar Daniel Boeckenhoff
Browse files

core lost :/

parent 1b12a9df
......@@ -3,8 +3,26 @@ init:
find .git/hooks -type l -exec rm {} \;
find .githooks -type f -exec ln -sf ../../{} .git/hooks/ \;
coverage:
coverage run tfields test
coverage report
coverage html
firefox htmlcov/index.html
html:
echo "Not implemented"
publish:
git tag -a v<my.version.id> -m "<comment to my version>" # tag version
git push origin v<my.version.id> # explicitly push tag to the shared server
python setup.py sdist
twine upload dist/*
@echo "NOOOTE"
@read root_path
@echo "TEST$$root_path"
@while [ -z "$$VERSION" ]; do \
read -r -p "Please write the version specifier: " VERSION; \
done ; \
echo $(VERSION)
echo "Publishing pacakge version $(VERSION)"
# git tag -a v<my.version.id> -m "<comment to my version>" # tag version
# git push origin v<my.version.id> # explicitly push tag to the shared server
# python setup.py sdist
# twine upload dist/*
......@@ -11,9 +11,9 @@ def run_doctests():
"""
Find all doctests and execute them
"""
parent = pathlib.Path(__file__).parent
for f in list(parent.glob('**/*.py')):
doctest.testfile(str(f.relative_to(parent))) # , verbose=True, optionflags=doctest.ELLIPSIS)
this_dir = pathlib.Path(__file__).resolve()
for f in list(this_dir.glob('**/*.py')):
doctest.testfile(str(f.relative_to(pathlib.Path.cwd().resolve()))) # , verbose=True, optionflags=doctest.ELLIPSIS)
def load_unittests(loader=None, suite=None):
......
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment