feat: switch from setup.cfg to pyproject.toml + hatchling
This commit is contained in:
parent
e87a14b828
commit
b59e7b4e88
6 changed files with 52 additions and 68 deletions
12
tasks.py
12
tasks.py
|
|
@ -24,23 +24,17 @@
|
|||
Tasks for rattail-quickbooks
|
||||
"""
|
||||
|
||||
import os
|
||||
|
||||
from invoke import task
|
||||
|
||||
|
||||
here = os.path.abspath(os.path.dirname(__file__))
|
||||
exec(open(os.path.join(here, 'rattail_quickbooks', '_version.py')).read())
|
||||
|
||||
|
||||
@task
|
||||
def release(c):
|
||||
"""
|
||||
Release a new version of rattail-quickbooks
|
||||
"""
|
||||
# rebuild local tar.gz file for distribution
|
||||
# rebuild package
|
||||
c.run('rm -rf dist')
|
||||
c.run('rm -rf rattail_quickbooks.egg-info')
|
||||
c.run('python -m build --sdist')
|
||||
|
||||
filename = f'rattail_quickbooks-{__version__}.tar.gz'
|
||||
c.run('twine upload dist/{}'.format(filename))
|
||||
c.run('twine upload dist/*')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue