public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-inline-snapshot] rawhide: Update to 0.35.1 upstream release
@ 2026-07-16 9:14 Benjamin A. Beasley
0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-07-16 9:14 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-inline-snapshot
Branch : rawhide
Commit : 4edc728015ea522758cfee92c40347db5a38bac6
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date : 2026-07-16T10:00:27+01:00
Stats : +102/-3 in 5 file(s)
URL : https://src.fedoraproject.org/rpms/python-inline-snapshot/c/4edc728015ea522758cfee92c40347db5a38bac6?branch=rawhide
Log:
Update to 0.35.1 upstream release
- Resolves: rhbz#2501053
Upstream tag: v0.35.1
Upstream commit: c3c94545
Commit co-authored by Packit automation (https://packit.dev/)
---
diff --git a/.gitignore b/.gitignore
index 8c95b7a..4105cf7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -61,3 +61,5 @@
/inline_snapshot-0.34.0.tar.gz
/inline_snapshot-0.34.1.tar.gz
/inline_snapshot-0.34.2.tar.gz
+/inline_snapshot-0.35.0.tar.gz
+/inline_snapshot-0.35.1.tar.gz
diff --git a/379.patch b/379.patch
new file mode 100644
index 0000000..1d73942
--- /dev/null
+++ b/379.patch
@@ -0,0 +1,93 @@
+From 46b81204bb31a5e6e80a63b58b768e5557600689 Mon Sep 17 00:00:00 2001
+From: "Benjamin A. Beasley" <code@musicinmybrain.net>
+Date: Thu, 16 Jul 2026 06:54:31 +0100
+Subject: [PATCH] fix: Pass `PYTHONPATH`, `PYTHONDONTWRITEBYTECODE` to test
+ environment
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Passing through `PYTHONPATH` is particularly useful for Linux
+distributions like Fedora that need to test a copy of `inline_snapshot`
+installed in an arbitrary “buildroot” directory, in combination with a
+system-wide installation of `pytest`. The `pytest` subprocesses need the
+`PYTHONPATH` containing the buildroot directory in order to be able to
+find the copy of `inline_snapshot` under test.
+
+Setting `PYTHONDONTWRITEBYTECODE` is helpful in similar situations,
+where it can be used to prevent unexpected `.pyc`/`.pyo` files from
+being left in the buildroot.
+
+See https://github.com/15r10nk/inline-snapshot/pull/377 for discussion
+of this change.
+
+See also https://github.com/15r10nk/inline-snapshot/pull/378, which
+handled environment variables needed for Gentoo (which has a rather
+different package build process).
+---
+ .../20260716_095700_code_pythonpath.md | 41 +++++++++++++++++++
+ src/inline_snapshot/testing/_example.py | 2 +
+ 2 files changed, 43 insertions(+)
+ create mode 100644 changelog.d/20260716_095700_code_pythonpath.md
+
+diff --git a/changelog.d/20260716_095700_code_pythonpath.md b/changelog.d/20260716_095700_code_pythonpath.md
+new file mode 100644
+index 00000000..a7ae302b
+--- /dev/null
++++ b/changelog.d/20260716_095700_code_pythonpath.md
+@@ -0,0 +1,41 @@
++<!--
++A new scriv changelog fragment.
++
++Uncomment the section that is right (remove the HTML comment wrapper).
++For top level release notes, leave all the headers commented out.
++-->
++
++<!--
++### Removed
++
++- A bullet item for the Removed category.
++
++-->
++<!--
++### Added
++
++- A bullet item for the Added category.
++
++-->
++<!--
++### Changed
++
++- A bullet item for the Changed category.
++
++-->
++<!--
++### Deprecated
++
++- A bullet item for the Deprecated category.
++
++-->
++### Fixed
++
++- fix passing `PYTHONPATH` and `PYTHONDONTWRITEBYTECODE` while running the test suite.
++
++<!--
++### Security
++
++- A bullet item for the Security category.
++
++-->
+diff --git a/src/inline_snapshot/testing/_example.py b/src/inline_snapshot/testing/_example.py
+index b511acfd..049ab0aa 100644
+--- a/src/inline_snapshot/testing/_example.py
++++ b/src/inline_snapshot/testing/_example.py
+@@ -131,7 +131,9 @@ def _subprocess_env() -> dict[str, str]:
+ "VIRTUAL_ENV",
+ "TOP",
+ "COVERAGE_PROCESS_START",
++ "PYTHONDONTWRITEBYTECODE",
+ "PYTHONIOENCODING",
++ "PYTHONPATH",
+ "PYTEST_DISABLE_PLUGIN_AUTOLOAD",
+ "PYTEST_PLUGINS",
+ ]
diff --git a/README.packit b/README.packit
index 4e76cbe..173195e 100644
--- a/README.packit
+++ b/README.packit
@@ -1,3 +1,3 @@
This repository is maintained by packit.
https://packit.dev/
-The file was generated using packit 1.16.0.post1.dev8+g8a0482385.
+The file was generated using packit 1.16.1.post1.dev2+gf84fe2d5b.
diff --git a/python-inline-snapshot.spec b/python-inline-snapshot.spec
index 54e8e0a..08bdea0 100644
--- a/python-inline-snapshot.spec
+++ b/python-inline-snapshot.spec
@@ -9,7 +9,7 @@
%bcond pydantic_tests %[ %{without bootstrap} && %{without pydantic_fti} ]
Name: python-inline-snapshot
-Version: 0.34.2
+Version: 0.35.1
Release: %autorelease
Summary: Golden master/snapshot/approval testing library
@@ -18,6 +18,10 @@ License: MIT
URL: https://github.com/15r10nk/inline-snapshot
Source: %{pypi_source inline_snapshot}
+# fix: Pass PYTHONPATH, PYTHONDONTWRITEBYTECODE to test environment
+# https://github.com/15r10nk/inline-snapshot/pull/379
+Patch: %{url}/pull/379.patch
+
BuildSystem: pyproject
BuildOption(generate_buildrequires): %{shrink:
--dependency-groups dev
diff --git a/sources b/sources
index 8f5bd5b..94b83bb 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (inline_snapshot-0.34.2.tar.gz) = fc2a388aa70e991de641d19ab97c7313dd982248af25013f97313517e1bfd673086f73d60318316c0312c21c6703c567519e2e3a7baeeb14ad5a324c047f59ae
+SHA512 (inline_snapshot-0.35.1.tar.gz) = fa765a558d7da13c3eff8bce7f38614349f9611b2d8d5bdb77c19a92b0d70bc5b5ab98d1ab5074eba44a2d33dfd8ba113fa2582b8e98d0a5c085e8b36ca81ec9
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-07-16 9:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-16 9:14 [rpms/python-inline-snapshot] rawhide: Update to 0.35.1 upstream release Benjamin A. Beasley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox