Conditions | 1 |
Total Lines | 9 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | from invoke import task |
||
4 | @task |
||
5 | def pypi(c): |
||
6 | ver = __version__ |
||
7 | c.run('python setup.py bdist_wheel') |
||
8 | c.run(f'python -m twine upload dist/bricknil-{ver}-py3-none-any.whl') |
||
9 | c.run(f'git commit -am "Committing everything for release {ver}"') |
||
10 | c.run(f'git tag -a v{ver} -m "Tagging release {ver}"') |
||
11 | c.run(f'git push') |
||
12 | c.run(f'git push --tags') |
||
13 | |||
41 |