Include alembic version scripts in built dist

This commit is contained in:
Lance Edgar 2022-12-21 20:37:04 -06:00
parent 70f19ca24f
commit e9b1d32c2a
2 changed files with 2 additions and 1 deletions

View file

@ -1,3 +1,4 @@
include *.md include *.md
include *.rst include *.rst
recursive-include rattail_quickbooks/db/alembic *.mako recursive-include rattail_quickbooks/db/alembic *.mako
recursive-include rattail_quickbooks/db/alembic *.py

View file

@ -40,7 +40,7 @@ def release(c):
""" """
# rebuild local tar.gz file for distribution # rebuild local tar.gz file for distribution
c.run('rm -rf rattail_quickbooks.egg-info') c.run('rm -rf rattail_quickbooks.egg-info')
c.run('python setup.py sdist --formats=gztar') c.run('python -m build --sdist')
filename = 'rattail-quickbooks-{}.tar.gz'.format(__version__) filename = 'rattail-quickbooks-{}.tar.gz'.format(__version__)
c.run('twine upload dist/{}'.format(filename)) c.run('twine upload dist/{}'.format(filename))