Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-pdm-pep517 for openSUSE:Factory checked in at 2022-12-07 17:35:05 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pdm-pep517 (Old) and /work/SRC/openSUSE:Factory/.python-pdm-pep517.new.1835 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pdm-pep517" Wed Dec 7 17:35:05 2022 rev:7 rq:1040775 version:1.0.6 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pdm-pep517/python-pdm-pep517.changes 2022-10-29 20:17:58.194486594 +0200 +++ /work/SRC/openSUSE:Factory/.python-pdm-pep517.new.1835/python-pdm-pep517.changes 2022-12-07 17:36:24.217011758 +0100 @@ -1,0 +2,8 @@ +Tue Dec 6 04:14:49 UTC 2022 - Yogalakshmi Arunachalam <yarunacha...@suse.com> + +- Update to 1.0.6 + * [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #128 + * Add setuptools to dev dependencies by @frenzymadness in #131 + * feat: Honor the metadata_directory passed to build_wheel by @frostming in #132 + +------------------------------------------------------------------- Old: ---- pdm-pep517-1.0.5.tar.gz New: ---- pdm-pep517-1.0.6.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pdm-pep517.spec ++++++ --- /var/tmp/diff_new_pack.PITZbk/_old 2022-12-07 17:36:24.697014386 +0100 +++ /var/tmp/diff_new_pack.PITZbk/_new 2022-12-07 17:36:24.705014430 +0100 @@ -26,7 +26,7 @@ %endif Name: python-pdm-pep517%{psuffix} -Version: 1.0.5 +Version: 1.0.6 Release: 0 Summary: Python Development Master License: MIT ++++++ pdm-pep517-1.0.5.tar.gz -> pdm-pep517-1.0.6.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pdm-pep517-1.0.5/PKG-INFO new/pdm-pep517-1.0.6/PKG-INFO --- old/pdm-pep517-1.0.5/PKG-INFO 2022-10-24 04:00:30.637456200 +0200 +++ new/pdm-pep517-1.0.6/PKG-INFO 2022-11-24 06:42:12.191107300 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: pdm-pep517 -Version: 1.0.5 +Version: 1.0.6 Summary: A PEP 517 backend for PDM that supports PEP 621 metadata License: MIT Keywords: packaging,PEP 517,build @@ -9,12 +9,13 @@ Classifier: Development Status :: 5 - Production/Stable Classifier: Programming Language :: Python :: 3 Classifier: Programming Language :: Python :: 3.10 +Classifier: Programming Language :: Python :: 3.11 Classifier: Programming Language :: Python :: 3.7 Classifier: Programming Language :: Python :: 3.8 Classifier: Programming Language :: Python :: 3.9 Classifier: Topic :: Software Development :: Build Tools Project-URL: homepage, https://pdm.fming.dev -Project-URL: repository, https://github.com/frostming/pdm-pep517 +Project-URL: repository, https://github.com/pdm-project/pdm-pep517 Description-Content-Type: text/markdown # PDM-PEP517 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pdm-pep517-1.0.5/pdm/pep517/__init__.py new/pdm-pep517-1.0.6/pdm/pep517/__init__.py --- old/pdm-pep517-1.0.5/pdm/pep517/__init__.py 2022-10-24 04:00:28.897448800 +0200 +++ new/pdm-pep517-1.0.6/pdm/pep517/__init__.py 2022-11-24 06:42:10.271090500 +0100 @@ -1 +1 @@ -__version__ = "1.0.5" +__version__ = "1.0.6" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pdm-pep517-1.0.5/pdm/pep517/api.py new/pdm-pep517-1.0.6/pdm/pep517/api.py --- old/pdm-pep517-1.0.5/pdm/pep517/api.py 2022-10-24 04:00:28.909448900 +0200 +++ new/pdm-pep517-1.0.6/pdm/pep517/api.py 2022-11-24 06:42:10.279090400 +0100 @@ -71,7 +71,9 @@ ) -> str: """Builds a wheel, places it in wheel_directory""" with WheelBuilder(Path.cwd(), config_settings) as builder: - return Path(builder.build(wheel_directory)).name + return Path( + builder.build(wheel_directory, metadata_directory=metadata_directory) + ).name def build_sdist( @@ -100,4 +102,6 @@ metadata_directory: str | None = None, ) -> str: with EditableBuilder(Path.cwd(), config_settings) as builder: - return Path(builder.build(wheel_directory)).name + return Path( + builder.build(wheel_directory, metadata_directory=metadata_directory) + ).name diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pdm-pep517-1.0.5/pdm/pep517/wheel.py new/pdm-pep517-1.0.6/pdm/pep517/wheel.py --- old/pdm-pep517-1.0.5/pdm/pep517/wheel.py 2022-10-24 04:00:28.909448900 +0200 +++ new/pdm-pep517-1.0.6/pdm/pep517/wheel.py 2022-11-24 06:42:10.283090600 +0100 @@ -138,7 +138,9 @@ if "--plat-name" in self.config_settings: self.plat_name = self.config_settings["--plat-name"] - def build(self, build_dir: str, **kwargs: Any) -> str: + def build( + self, build_dir: str, *, metadata_directory: str | None = None, **kwargs: Any + ) -> str: if not os.path.exists(build_dir): os.makedirs(build_dir, exist_ok=True) @@ -148,7 +150,10 @@ self._copy_module() self._build() - self._write_metadata() + if metadata_directory is None: + self._write_metadata() + else: + self._copy_metadata(metadata_directory) with zipfile.ZipFile( temp_path, mode="w", compression=zipfile.ZIP_DEFLATED ) as zip_file: @@ -354,3 +359,12 @@ record_entry = self._write_record(records) record_entry.write_to_zip(zf) + + def _copy_metadata(self, metadata_directory: str) -> None: + for root, _, files in os.walk(metadata_directory): + relroot = os.path.relpath(root, os.path.dirname(metadata_directory)) + for file in files: + self._add_file( + os.path.join(relroot, file), + Path(root) / file, + ) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pdm-pep517-1.0.5/pyproject.toml new/pdm-pep517-1.0.6/pyproject.toml --- old/pdm-pep517-1.0.5/pyproject.toml 2022-10-24 04:00:28.909448900 +0200 +++ new/pdm-pep517-1.0.6/pyproject.toml 2022-11-24 06:42:10.283090600 +0100 @@ -20,16 +20,17 @@ "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", ] dependencies = [] -version = "1.0.5" +version = "1.0.6" [project.license] text = "MIT" [project.urls] homepage = "https://pdm.fming.dev" -repository = "https://github.com/frostming/pdm-pep517" +repository = "https://github.com/pdm-project/pdm-pep517" [tool.pdm.version] source = "file" @@ -51,6 +52,7 @@ "pytest-xdist", "vendoring; python_version ~= '3.8'", "parver~=0.3", + "setuptools", ] [tool.pdm.scripts] @@ -94,9 +96,8 @@ [tool.towncrier] package = "pdm" filename = "CHANGELOG.md" -issue_format = "[#{issue}](https://github.com/frostming/pdm-pep517/issues/{issue})" +issue_format = "[#{issue}](https://github.com/pdm-project/pdm-pep517/issues/{issue})" directory = "news/" -title_format = "## Release v{version} ({project_date})" template = "news/towncrier_template.md" underlines = "-~^" type = [ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pdm-pep517-1.0.5/tests/test_api.py new/pdm-pep517-1.0.6/tests/test_api.py --- old/pdm-pep517-1.0.5/tests/test_api.py 2022-10-24 04:00:28.913448800 +0200 +++ new/pdm-pep517-1.0.6/tests/test_api.py 2022-11-24 06:42:10.295090700 +0100 @@ -136,6 +136,20 @@ assert (tmp_path / dist_info / filename).is_file() +def test_build_wheel_metadata_identical(tmp_path: Path) -> None: + with build_fixture_project("demo-package"): + dist_info = api.prepare_metadata_for_build_wheel(tmp_path.as_posix()) + (tmp_path / dist_info / "other.txt").write_text("foo") + + wheel_name = api.build_wheel( + tmp_path.as_posix(), metadata_directory=str(tmp_path / dist_info) + ) + + with zipfile.ZipFile(tmp_path / wheel_name) as wheel: + assert f"{dist_info}/other.txt" in wheel.namelist() + assert wheel.read(f"{dist_info}/other.txt") == b"foo" + + def test_build_package_with_modules_in_src(tmp_path: Path) -> None: with build_fixture_project("demo-src-pymodule"): wheel_name = api.build_wheel(tmp_path.as_posix())