Skip to content

Commit

Permalink
Fix build backend, addressing version issues. Fixes #363 (#366)
Browse files Browse the repository at this point in the history
  • Loading branch information
jelmer authored Nov 2, 2023
1 parent 604d4fc commit 48d7c5d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
12 changes: 12 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,18 @@ testtools NEWS

Changes and improvements to testtools_, grouped by release.

2.7.1
~~~~~

Improvements
~~~~~~~~~~~~

* Remove various unused imports.
(Jelmer Vernooij)

* Fix build backend. This should prevent version from being set to 0.0.0
when building wheels. (Jelmer Vernooij, #363)

2.7.0
~~~~~

Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ module = [
ignore_missing_imports = true

[build-system]
requires = ["setuptools>=61"]
build-backend = "setuptools.build_meta"
requires = ["setuptools>=61", "hatchling", "hatch_vcs"]

This comment has been minimized.

Copy link
@mgorny

mgorny Nov 2, 2023

I don't think you're using setuptools anymore. PEP 517 frontends will invoke build-backend, so setup.py will be ignored (also, it would produce incorrect install anyway).

build-backend = "hatchling.build"

[project]
name = "testtools"
Expand Down

0 comments on commit 48d7c5d

Please sign in to comment.