Skip to content
Snippets Groups Projects
Commit 1818744f authored by Daniel Boeckenhoff's avatar Daniel Boeckenhoff
Browse files

core lost :/

parent 1b12a9df
No related branches found
No related tags found
No related merge requests found
...@@ -3,8 +3,26 @@ init: ...@@ -3,8 +3,26 @@ init:
find .git/hooks -type l -exec rm {} \; find .git/hooks -type l -exec rm {} \;
find .githooks -type f -exec ln -sf ../../{} .git/hooks/ \; 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: publish:
git tag -a v<my.version.id> -m "<comment to my version>" # tag version @echo "NOOOTE"
git push origin v<my.version.id> # explicitly push tag to the shared server @read root_path
python setup.py sdist @echo "TEST$$root_path"
twine upload dist/* @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(): ...@@ -11,9 +11,9 @@ def run_doctests():
""" """
Find all doctests and execute them Find all doctests and execute them
""" """
parent = pathlib.Path(__file__).parent this_dir = pathlib.Path(__file__).resolve()
for f in list(parent.glob('**/*.py')): for f in list(this_dir.glob('**/*.py')):
doctest.testfile(str(f.relative_to(parent))) # , verbose=True, optionflags=doctest.ELLIPSIS) doctest.testfile(str(f.relative_to(pathlib.Path.cwd().resolve()))) # , verbose=True, optionflags=doctest.ELLIPSIS)
def load_unittests(loader=None, suite=None): def load_unittests(loader=None, suite=None):
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment