Skip to content

Commit

Permalink
Switch to hatchling for building tarballs
Browse files Browse the repository at this point in the history
  • Loading branch information
jelmer committed Jun 10, 2024
1 parent ac6919f commit dda05c0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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 ###

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
import setuptools

setuptools.setup()

0 comments on commit dda05c0

Please sign in to comment.