From be728e9bb310b596f2e8af6a8fb15839e6cd4f9f Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Fri, 31 May 2024 17:44:50 -0500 Subject: [PATCH] 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 --- setup.cfg | 1 - tasks.py | 6 ++---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/setup.cfg b/setup.cfg index 66847ae..92e2a12 100644 --- a/setup.cfg +++ b/setup.cfg @@ -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 diff --git a/tasks.py b/tasks.py index 3a7e5d9..4aacc33 100644 --- a/tasks.py +++ b/tasks.py @@ -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')