# PEP 639, Round 3: Improving license clarity with better package metadata

**URL:** <https://discuss.python.org/t/pep-639-round-3-improving-license-clarity-with-better-package-metadata/53020>\
**Category:** Standards\
**Created:** [May 10, 2024, 6:36am UTC](https://discuss.python.org/t/pep-639-round-3-improving-license-clarity-with-better-package-metadata/53020 "2024-05-10T06:36:41Z")\
**Posts on this page:** 1\
**Showing post:** 172

<div class="post-metadata">

**Author:** ![hugovk](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/hugovk/32/14505_2.png) [@hugovk](https://discuss.python.org/u/hugovk)\
**Post date:** [January 24, 2025, 11:13am UTC](https://discuss.python.org/t/pep-639-round-3-improving-license-clarity-with-better-package-metadata/53020/172 "2025-01-24T11:13:49Z")

</div>

Thanks all, I just made a release with these [changes](https://github.com/prettytable/prettytable/pull/350/files):

```diff
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -2,7 +2,7 @@
 build-backend = "hatchling.build"
 requires = [
   "hatch-vcs",
- "hatchling",
+ "hatchling>=1.27",
 ]

 [project]
 ...
 license = "BSD-3-Clause"
+license-files = ["LICENSE"]
 ...
 classifiers = [
- "License :: OSI Approved :: BSD License",
   "Programming Language :: Python",
   "Programming Language :: Python :: 3 :: Only",
   "Programming Language :: Python :: 3.9",

```

And it shows up on [PyPI](https://pypi.org/project/prettytable/3.13.0/) with:

- **License Expression:** BSD-3-Clause  
_[SPDX](https://spdx.org/licenses/) [License Expression](https://spdx.github.io/spdx-spec/v2-draft/SPDX-license-expressions/)_

This depended on (at least) these updates:

- [packaging 24.2](https://packaging.pypa.io/en/stable/changelog.html)
- [Hatchling 1.27](https://hatch.pypa.io/dev/history/hatchling/)
- [Twine 6.1.0](https://twine.readthedocs.io/en/stable/changelog.html)
- [PyPI publish GitHub Action v1.12.4](https://github.com/pypa/gh-action-pypi-publish/releases/tag/v1.12.4)
- [build-and-inspect-python-package v2.12.0](https://github.com/hynek/build-and-inspect-python-package/releases/tag/v2.12.0)

Thanks to everyone for making it happen, and especially @ksurma for all the PEP+spec work!

---

_[View the full topic](https://discuss.python.org/t/pep-639-round-3-improving-license-clarity-with-better-package-metadata/53020)._
