feat: switch from setup.cfg to pyproject.toml + hatchling
This commit is contained in:
parent
95e89a6081
commit
3af49e2e62
5 changed files with 71 additions and 128 deletions
13
tasks.py
13
tasks.py
|
@ -2,7 +2,7 @@
|
|||
################################################################################
|
||||
#
|
||||
# Rattail -- Retail Software Framework
|
||||
# Copyright © 2010-2019 Lance Edgar
|
||||
# Copyright © 2010-2024 Lance Edgar
|
||||
#
|
||||
# This file is part of Rattail.
|
||||
#
|
||||
|
@ -24,20 +24,15 @@
|
|||
Tasks for 'rattail-tutorial' package
|
||||
"""
|
||||
|
||||
import os
|
||||
|
||||
from invoke import task
|
||||
|
||||
|
||||
here = os.path.abspath(os.path.dirname(__file__))
|
||||
exec(open(os.path.join(here, 'rattail_tutorial', '_version.py')).read())
|
||||
|
||||
|
||||
@task
|
||||
def release(c):
|
||||
"""
|
||||
Release a new version of `rattail-tutorial`.
|
||||
"""
|
||||
c.run('rm -rf rattail_tutorial.egg-info')
|
||||
c.run('python setup.py sdist --formats=gztar')
|
||||
c.run('twine upload dist/rattail-tutorial-{}.tar.gz'.format(__version__))
|
||||
c.run('rm -rf dist')
|
||||
c.run('python -m build --sdist')
|
||||
c.run('twine upload dist/*')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue