Skip to content

Commit c139ee5

Browse files
authored
Pyroma 5.0 (#112)
* Get rid of the setup monkey things That includes testing super old distruibutions of distribute, as we no longer have no intention of supporting such old packaging. * We now have to have the build systems installed to get any data out of them So flit_core is needed for testing. * Updated changes * Preparing release 5.0a1 * Back to development: 5.0a2 * Use Core Metadata namings internally Also added an error if the build system failed. * Better handling of various build errors * Preparing release 5.0b1 * Back to development: 5.0b2 * Fixed a bug in the new Licensing handling * Preparing release 5.0b2 * Back to development: 5.0b3
1 parent 3ff2146 commit c139ee5

18 files changed

+238
-1631
lines changed

CHANGES.txt

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,41 @@
11
Changelog
22
=========
33

4-
4.3.4 (unreleased)
4+
5.0b3 (unreleased)
55
------------------
66

77
- Nothing changed yet.
88

99

10+
5.0b2 (2025-07-10)
11+
------------------
12+
13+
- Fixed a bug that failed to find license-expression fields.
14+
15+
16+
5.0b1 (2025-07-04)
17+
------------------
18+
19+
- Changed the internal metadata names to match Core Metadata. This brings
20+
less confusion, especially since setuptools and PyPI aren't exactly the
21+
same either, so let's pick the offical standard and run with it.
22+
23+
- Added a rating for if the wheel fails to build. Unfortunately it's
24+
impossible to get a proper error out of it, so the message tells
25+
you to run python -m build.
26+
27+
28+
5.0a1 (2025-07-02)
29+
------------------
30+
31+
- Removed support for fetching data via monkey-patching setup.py.
32+
33+
- Added a warning if you have only a setup.cfg, something that is
34+
working with some tools, but is not officially supported.
35+
36+
- Some general cleanups and simplifications thanks to those changes.
37+
38+
1039
4.3.3 (2025-07-03)
1140
------------------
1241

Makefile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,3 @@ clean-pyc: ## remove Python file artifacts
3030
find . -name '__pycache__' -exec rm -fr {} +
3131
find . -name 'pip-selfcheck.json' -exec rm -fr {} +
3232
find . -name 'pyvenv.cfg' -exec rm -fr {} +
33-
34-
prepare-release:
35-
python fetch_classifiers.py

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
1+
[build-system]
2+
requires = ["setuptools"]
3+
build-backend = "setuptools.build_meta"
4+
15
[tool.black]
26
line-length = 120

pyroma/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ def main():
7676
parser = ArgumentParser()
7777
parser.color = True
7878
parser.add_argument(
79-
"package", help="A python package, can be a directory, a distribution file or a PyPI package name."
79+
"package",
80+
help="A python package, can be a directory, a distribution file or a PyPI package name.",
8081
)
8182
parser.add_argument(
8283
"-n",

pyroma/distributiondata.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def get_data(path):
4343
raise ValueError("Unknown file type: " + ext)
4444

4545
projectpath = os.path.join(tempdir, basename)
46-
data = projectdata._get_data(projectpath)
46+
data = projectdata.get_build_data(projectpath)
4747
finally:
4848
shutil.rmtree(tempdir, ignore_errors=True)
4949

0 commit comments

Comments
 (0)