Skip to content

Commit ce1b8bf

Browse files
committed
Modify the pyprojetc.toml (possibly incorrectly)
Hatch uses hatchling as the underlying build system. With older versions of hatchling the metadata is out of date with the expected metadata for pypi (something to do with the license file -- I'm not entirely sure what). The way to build the dist with hatch/hatchling: ``` hatch build ``` You can check the Metadata version with: ``` tar -xzf dist/axelrod-*.tar.gz cat axelrod-*/PKG-INFO | grep "Metadata-Version" ``` THIS SHOULD give you: ``` Metadata-Version: 2.4 ``` Once that's done, assuming the auth is set up correctly you publish with ``` hatch publish ``` While I was fixing all this I was changing the pyproject.toml file. We should open an issue to possibly put the license file back in and also document the release process (essentially putting some of the information I'm writing here). For other projects of mine I have setup a publish worklow so that github actions takes care of this. We could look in to doing that as well.
1 parent 0f72d93 commit ce1b8bf

File tree

3 files changed

+1
-57
lines changed

3 files changed

+1
-57
lines changed

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
[build-system]
2-
requires = ["hatchling"]
2+
requires = ["hatchling>=1.18.0"]
33
build-backend = "hatchling.build"
44

55
[project]
66
name = "Axelrod"
77
dynamic = ["version"]
88
description = "Reproduce the Axelrod iterated prisoners dilemma tournament"
99
readme = "README.rst"
10-
license = {file = "LICENSE.txt"}
1110
requires-python = ">=3.6"
1211
authors = [
1312
{ name = "Vince Knight", email = "[email protected]" },

setup.cfg

Lines changed: 0 additions & 2 deletions
This file was deleted.

setup.py

Lines changed: 0 additions & 53 deletions
This file was deleted.

0 commit comments

Comments
 (0)