dodo.py   dodo.py 
skipping to change at line 85 skipping to change at line 85
return { return {
'actions': [build_doc, build_tarball, build_website, publish], 'actions': [build_doc, build_tarball, build_website, publish],
'verbosity': 2 'verbosity': 2
} }
def task_test(): def task_test():
""" """
Run the test suite. Run the test suite.
""" """
return { return {
'actions': ['python -m pytest --ignore=tests/other'], 'actions': ['python3 -m pytest --ignore=tests/other'],
'verbosity': 2 'verbosity': 2
} }
### HELPERS ############################################################### ##### ### HELPERS ############################################################### #####
def filter_tarball(tarinfo): def filter_tarball(tarinfo):
""" """
A filter for the files we do not want in the tarball. A filter for the files we do not want in the tarball.
Return None to exclude, or return the `tarinfo` if okay. Return None to exclude, or return the `tarinfo` if okay.
""" """
name = tarinfo.name name = tarinfo.name
# Remove the module directory name # Remove the module directory name
i = name.find('/') i = name.find('/')
if i > 0: if i > 0:
name = name[i+1:] name = name[i+1:]
# Exclude all these # Exclude all these
if name.endswith(".pyc") or \ if name.endswith(".pyc") or \
name.startswith('web') or \ name.startswith('web') or \
name.startswith('data/debug') or \ name.startswith('data/debug') or \
name.startswith('data/tests') or \ name.startswith('data/tests') or \
name.startswith('data/other') or \
name.startswith('build') or \ name.startswith('build') or \
name.startswith('.idea') or \ name.startswith('.idea') or \
name.startswith('.git') or \ name.startswith('.git') or \
name.startswith('slides') or\ name.startswith('slides') or\
name.startswith('.tox') or\ name.startswith('.tox') or\
name.startswith('.venv') or\
name.startswith('.doit') or \ name.startswith('.doit') or \
name.startswith('.pytest') or \ name.startswith('.pytest') or \
name.startswith('dist') or \ name.startswith('dist') or \
name.startswith('MGE') or \ name.startswith('MGE') or \
name.startswith('html') or \ name.startswith('html') or \
name.endswith('pymulti') or \ name.endswith('pymulti') or \
name.endswith('eggs/') or \ name.endswith('eggs/') or \
name.endswith('info'): name.endswith('info'):
return None return None
return tarinfo return tarinfo
skipping to change at line 194 skipping to change at line 196
cmd = "rsync -avzr --delete --protocol=29 web/build/ nbouche@mistral:ga lpak/" cmd = "rsync -avzr --delete --protocol=29 web/build/ nbouche@mistral:ga lpak/"
os.system(cmd) os.system(cmd)
print("Building wheel") print("Building wheel")
cmd = 'rm dist/* -f ' cmd = 'rm dist/* -f '
os.system(cmd) os.system(cmd)
cmd = "python3 setup.py sdist bdist_wheel" cmd = "python3 setup.py sdist bdist_wheel"
os.system(cmd) os.system(cmd)
#https://packaging.python.org/guides/using-testpypi/ #https://packaging.python.org/guides/using-testpypi/
print("Pushing to pypi") print("Pushing to pypi")
#requires .pypirc setup with tokens
cmd = "python3 -m twine upload dist/*" cmd = "python3 -m twine upload dist/*"
os.system(cmd) os.system(cmd)
 End of changes. 4 change blocks. 
1 lines changed or deleted 4 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/