Skip to content

Migrate to declarative package configuration - setup.py to pyproject.toml#14

Open
ellieayla wants to merge 1 commit intoeclecticiq:masterfrom
ellieayla:pyproject-toml
Open

Migrate to declarative package configuration - setup.py to pyproject.toml#14
ellieayla wants to merge 1 commit intoeclecticiq:masterfrom
ellieayla:pyproject-toml

Conversation

@ellieayla
Copy link
Contributor

@ellieayla ellieayla commented Feb 17, 2026

Is there interest in modernizing the project definition? It might make some tooling easier.

This commit migrates only the project configuration, not the config for various tools: tox, ruff, ty, mypy.

This commit migrates only the project configuration,
not the config for various tools: tox, ruff, ty, mypy.
@ellieayla
Copy link
Contributor Author

ellieayla commented Feb 17, 2026

Built with uv build or uv tool run --from build pyproject-build or python -m build produces sdist files that are nearly the same as currently published, differing only in improved metadata.

diff --unified --report-identical-files -r datauri-1.1.0-pypi/PKG-INFO datauri-1.1.0-pr/PKG-INFO
--- datauri-1.1.0-pypi/PKG-INFO	2026-02-17 05:18:34
+++ datauri-1.1.0-pr/PKG-INFO	2026-02-17 18:15:22
@@ -1,25 +1,20 @@
 Metadata-Version: 2.4
 Name: datauri
 Version: 1.1.0
-Summary: implementation of the data uri scheme defined in rfc2397
-Home-page: https://github.com/eclecticiq/python-data-uri
-Author: EclecticIQ
-Author-email: info@eclecticiq.com
-License: BSD
+Summary: Implementation of the data uri scheme defined in rfc2397
+Author-email: EclecticIQ <info@eclecticiq.com>, wouter bolsterlee <wouter@bolsterl.ee>
+License-Expression: BSD-3-Clause
+Project-URL: homepage, https://github.com/eclecticiq/python-data-uri
+Project-URL: source, https://github.com/eclecticiq/python-data-uri
+Project-URL: issues, https://github.com/eclecticiq/python-data-uri/issues
 Classifier: Development Status :: 5 - Production/Stable
-Classifier: License :: OSI Approved :: BSD License
 Classifier: Operating System :: OS Independent
 Classifier: Programming Language :: Python
 Classifier: Programming Language :: Python :: 3
 Classifier: Topic :: Software Development :: Libraries
 Classifier: Topic :: Software Development :: Libraries :: Python Modules
-Dynamic: author
-Dynamic: author-email
-Dynamic: classifier
-Dynamic: description
-Dynamic: home-page
-Dynamic: license
-Dynamic: summary
+Requires-Python: >=3.10
+Description-Content-Type: text/x-rst
 
 =======
 datauri
Files datauri-1.1.0-pypi/README.rst and datauri-1.1.0-pr/README.rst are identical
Files datauri-1.1.0-pypi/datauri/__init__.py and datauri-1.1.0-pr/datauri/__init__.py are identical
Files datauri-1.1.0-pypi/datauri/datauri.py and datauri-1.1.0-pr/datauri/datauri.py are identical
diff --unified --report-identical-files -r datauri-1.1.0-pypi/datauri.egg-info/PKG-INFO datauri-1.1.0-pr/datauri.egg-info/PKG-INFO
--- datauri-1.1.0-pypi/datauri.egg-info/PKG-INFO	2026-02-17 05:18:34
+++ datauri-1.1.0-pr/datauri.egg-info/PKG-INFO	2026-02-17 18:15:22
@@ -1,25 +1,20 @@
 Metadata-Version: 2.4
 Name: datauri
 Version: 1.1.0
-Summary: implementation of the data uri scheme defined in rfc2397
-Home-page: https://github.com/eclecticiq/python-data-uri
-Author: EclecticIQ
-Author-email: info@eclecticiq.com
-License: BSD
+Summary: Implementation of the data uri scheme defined in rfc2397
+Author-email: EclecticIQ <info@eclecticiq.com>, wouter bolsterlee <wouter@bolsterl.ee>
+License-Expression: BSD-3-Clause
+Project-URL: homepage, https://github.com/eclecticiq/python-data-uri
+Project-URL: source, https://github.com/eclecticiq/python-data-uri
+Project-URL: issues, https://github.com/eclecticiq/python-data-uri/issues
 Classifier: Development Status :: 5 - Production/Stable
-Classifier: License :: OSI Approved :: BSD License
 Classifier: Operating System :: OS Independent
 Classifier: Programming Language :: Python
 Classifier: Programming Language :: Python :: 3
 Classifier: Topic :: Software Development :: Libraries
 Classifier: Topic :: Software Development :: Libraries :: Python Modules
-Dynamic: author
-Dynamic: author-email
-Dynamic: classifier
-Dynamic: description
-Dynamic: home-page
-Dynamic: license
-Dynamic: summary
+Requires-Python: >=3.10
+Description-Content-Type: text/x-rst
 
 =======
 datauri
diff --unified --report-identical-files -r datauri-1.1.0-pypi/datauri.egg-info/SOURCES.txt datauri-1.1.0-pr/datauri.egg-info/SOURCES.txt
--- datauri-1.1.0-pypi/datauri.egg-info/SOURCES.txt	2026-02-17 05:18:34
+++ datauri-1.1.0-pr/datauri.egg-info/SOURCES.txt	2026-02-17 18:15:22
@@ -1,5 +1,5 @@
 README.rst
-setup.py
+pyproject.toml
 datauri/__init__.py
 datauri/datauri.py
 datauri.egg-info/PKG-INFO
Files datauri-1.1.0-pypi/datauri.egg-info/dependency_links.txt and datauri-1.1.0-pr/datauri.egg-info/dependency_links.txt are identical
Files datauri-1.1.0-pypi/datauri.egg-info/top_level.txt and datauri-1.1.0-pr/datauri.egg-info/top_level.txt are identical
Only in datauri-1.1.0-pr: pyproject.toml
Files datauri-1.1.0-pypi/setup.cfg and datauri-1.1.0-pr/setup.cfg are identical
Only in datauri-1.1.0-pypi: setup.py
Files datauri-1.1.0-pypi/tests/test_datauri.py and datauri-1.1.0-pr/tests/test_datauri.py are identical

@ellieayla
Copy link
Contributor Author

Diff for wheels, also only differ in those improved metadata fields.

Files datauri-1.1.0-py3-none-any.whl-pypi-unzipped/datauri/__init__.py and datauri-1.1.0-py3-none-any.whl-uvbuild-unzipped/datauri/__init__.py are identical
Files datauri-1.1.0-py3-none-any.whl-pypi-unzipped/datauri/datauri.py and datauri-1.1.0-py3-none-any.whl-uvbuild-unzipped/datauri/datauri.py are identical
diff --unified --report-identical-files -r datauri-1.1.0-py3-none-any.whl-pypi-unzipped/datauri-1.1.0.dist-info/METADATA datauri-1.1.0-py3-none-any.whl-uvbuild-unzipped/datauri-1.1.0.dist-info/METADATA
--- datauri-1.1.0-py3-none-any.whl-pypi-unzipped/datauri-1.1.0.dist-info/METADATA	2026-02-17 10:18:36
+++ datauri-1.1.0-py3-none-any.whl-uvbuild-unzipped/datauri-1.1.0.dist-info/METADATA	2026-02-17 23:30:24
@@ -1,25 +1,20 @@
 Metadata-Version: 2.4
 Name: datauri
 Version: 1.1.0
-Summary: implementation of the data uri scheme defined in rfc2397
-Home-page: https://github.com/eclecticiq/python-data-uri
-Author: EclecticIQ
-Author-email: info@eclecticiq.com
-License: BSD
+Summary: Implementation of the data uri scheme defined in rfc2397
+Author-email: EclecticIQ <info@eclecticiq.com>, wouter bolsterlee <wouter@bolsterl.ee>
+License-Expression: BSD-3-Clause
+Project-URL: homepage, https://github.com/eclecticiq/python-data-uri
+Project-URL: source, https://github.com/eclecticiq/python-data-uri
+Project-URL: issues, https://github.com/eclecticiq/python-data-uri/issues
 Classifier: Development Status :: 5 - Production/Stable
-Classifier: License :: OSI Approved :: BSD License
 Classifier: Operating System :: OS Independent
 Classifier: Programming Language :: Python
 Classifier: Programming Language :: Python :: 3
 Classifier: Topic :: Software Development :: Libraries
 Classifier: Topic :: Software Development :: Libraries :: Python Modules
-Dynamic: author
-Dynamic: author-email
-Dynamic: classifier
-Dynamic: description
-Dynamic: home-page
-Dynamic: license
-Dynamic: summary
+Requires-Python: >=3.10
+Description-Content-Type: text/x-rst
 
 =======
 datauri
diff --unified --report-identical-files -r datauri-1.1.0-py3-none-any.whl-pypi-unzipped/datauri-1.1.0.dist-info/RECORD datauri-1.1.0-py3-none-any.whl-uvbuild-unzipped/datauri-1.1.0.dist-info/RECORD
--- datauri-1.1.0-py3-none-any.whl-pypi-unzipped/datauri-1.1.0.dist-info/RECORD	2026-02-17 10:18:36
+++ datauri-1.1.0-py3-none-any.whl-uvbuild-unzipped/datauri-1.1.0.dist-info/RECORD	2026-02-17 23:30:24
@@ -1,6 +1,6 @@
 datauri/__init__.py,sha256=hYH2wWzP7AZ5Auj3b0gpcKi5v62p2ceUyTK6sNpbgW0,147
 datauri/datauri.py,sha256=vgE2ggstxfxZ5Hck17Q-1j63SnsvgtX6Fn6oWXObF7A,2520
-datauri-1.1.0.dist-info/METADATA,sha256=gj3xFcSsvJx0FgFGtjVlFvwg_T70ic-sTELY30W56GE,4899
+datauri-1.1.0.dist-info/METADATA,sha256=Te3jAw0pMc2kP0O5nwLxKMi1ivdsJRmI57NKN0ZFSok,4984
 datauri-1.1.0.dist-info/WHEEL,sha256=YCfwYGOYMi5Jhw2fU4yNgwErybb2IX5PEwBKV4ZbdBo,91
 datauri-1.1.0.dist-info/top_level.txt,sha256=x4QwzItArgb6RTqZUiCZsl-7E7Iwo6u0dkG54Pd_WaM,8
 datauri-1.1.0.dist-info/RECORD,,
Files datauri-1.1.0-py3-none-any.whl-pypi-unzipped/datauri-1.1.0.dist-info/WHEEL and datauri-1.1.0-py3-none-any.whl-uvbuild-unzipped/datauri-1.1.0.dist-info/WHEEL are identical
Files datauri-1.1.0-py3-none-any.whl-pypi-unzipped/datauri-1.1.0.dist-info/top_level.txt and datauri-1.1.0-py3-none-any.whl-uvbuild-unzipped/datauri-1.1.0.dist-info/top_level.txt are identical

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments