feat: switch from setup.cfg to pyproject.toml + hatchling
This commit is contained in:
parent
19bb5bd27f
commit
6bb18b47c1
6 changed files with 55 additions and 70 deletions
14
tasks.py
14
tasks.py
|
|
@ -24,24 +24,18 @@
|
|||
Tasks for tailbone-quickbooks
|
||||
"""
|
||||
|
||||
import os
|
||||
|
||||
from invoke import task
|
||||
|
||||
|
||||
here = os.path.abspath(os.path.dirname(__file__))
|
||||
exec(open(os.path.join(here, 'tailbone_quickbooks', '_version.py')).read())
|
||||
|
||||
|
||||
@task
|
||||
def release(c):
|
||||
"""
|
||||
Release a new version of tailbone-quickbooks
|
||||
"""
|
||||
# rebuild local tar.gz file for distribution
|
||||
# rebuild package
|
||||
c.run('rm -rf dist')
|
||||
c.run('rm -rf tailbone_quickbooks.egg-info')
|
||||
c.run('python setup.py sdist --formats=gztar')
|
||||
c.run('python -m build --sdist')
|
||||
|
||||
# upload to PyPI
|
||||
filename = f'tailbone_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