Fix default dist filename for release task

not sure why this fix was needed, did setuptools behavior change?

and stop declaring explicit support for python 3.5, that makes no sense
This commit is contained in:
Lance Edgar 2024-05-31 17:44:50 -05:00
parent 284e55c05c
commit be728e9bb3
2 changed files with 2 additions and 5 deletions

View file

@ -17,7 +17,6 @@ classifiers =
Natural Language :: English
Operating System :: OS Independent
Programming Language :: Python :: 3
Programming Language :: Python :: 3.5
Topic :: System :: Systems Administration
Topic :: Software Development :: Libraries :: Python Modules

View file

@ -2,7 +2,7 @@
################################################################################
#
# Rattail -- Retail Software Framework
# Copyright © 2010-2020 Lance Edgar
# Copyright © 2010-2024 Lance Edgar
#
# This file is part of Rattail.
#
@ -24,8 +24,6 @@
Tasks for rattail-fabric2
"""
from __future__ import unicode_literals, absolute_import
import os
import shutil
@ -46,4 +44,4 @@ def release(c):
# TODO: what i esp. don't like is, this doesn't consider .gitignore
c.run("find . -name '*~' -delete")
c.run('python setup.py sdist --formats=gztar')
c.run('twine upload dist/rattail-fabric2-{}.tar.gz'.format(__version__))
c.run(f'twine upload dist/rattail_fabric2-{__version__}.tar.gz')