From dda05c0af762a123d814e8c8d33bfd4097a8a6ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jelmer=20Vernoo=C4=B3?= Date: Mon, 10 Jun 2024 14:10:28 +0100 Subject: [PATCH] Switch to hatchling for building tarballs --- Makefile | 8 +++++--- setup.py | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 6f88b3f2..5a2cb0c9 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ # Copyright (c) 2008-2013 testtools developers. See LICENSE for details. -PYTHON=python +PYTHON=python3 SOURCES=$(shell find testtools -name "*.py") check: @@ -21,11 +21,13 @@ prerelease: -rm MANIFEST release: - ./setup.py sdist bdist_wheel upload --sign + hatchling build + twine upload dist/testtools-$(shell hatchling version)-* + gpg -a --detach-sign dist/testtools-$(shell hatchling version).tar.gz $(PYTHON) scripts/_lp_release.py snapshot: prerelease - ./setup.py sdist bdist_wheel + hatchling build ### Documentation ### diff --git a/setup.py b/setup.py index 61cc244b..f187f2cd 100755 --- a/setup.py +++ b/setup.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import setuptools setuptools.setup()