from bsAbstimmungen.utils import setup_logging setup_logging('tests/test-logging.json')
@task def release(push_tags=False): # Are you sure to release? try: input("Is everything commited? Are you ready to release? " "Press any key to continue - abort with Ctrl+C") except KeyboardInterrupt as e: print("Release aborted...") exit() run('bumpversion --message "Release version {current_version}" ' '--no-commit release') run('python setup.py sdist bdist_wheel') run('bumpversion --message "Preparing next version {new_version}" ' '--no-tag patch') # Push tags if enabled if push_tags: run('git push origin master --tags') else: print("Don't forget to push the tags (git push origin master --tags)!") # Setup logging setup_logging() # Warn the user when not using virtualenv if not hasattr(sys, 'real_prefix'): print('YOU ARE NOT RUNNING INSIDE A VIRTUAL ENV!')