guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch core-updates updated: gnu: python-pre-commit: Move deprecated var


From: guix-commits
Subject: branch core-updates updated: gnu: python-pre-commit: Move deprecated variable next to replacement.
Date: Thu, 23 Mar 2023 11:08:12 -0400

This is an automated email from the git hooks/post-receive script.

apteryx pushed a commit to branch core-updates
in repository guix.

The following commit(s) were added to refs/heads/core-updates by this push:
     new 1415d964ab gnu: python-pre-commit: Move deprecated variable next to 
replacement.
1415d964ab is described below

commit 1415d964abfc7da55ddb3156e1aa4d64f7169d85
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Wed Mar 22 21:31:02 2023 -0400

    gnu: python-pre-commit: Move deprecated variable next to replacement.
    
    This fixes a module import dependency cycle, which was introduced in
    831baaf81e57ce9d9053ba6f9e0653a2d27298c4 ("gnu: python-pre-commit: Replace
    with pre-commit.").  The rule of thumb to avoid these is that the deprecated
    package should live next to the replacement package (in the same module).
    
    * gnu/packages/python-xyz.scm (python-pre-commit): Move to...
    * gnu/packages/version-control.scm (python-pre-commit): ... here.
---
 gnu/packages/python-xyz.scm      | 3 ---
 gnu/packages/version-control.scm | 3 +++
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 0f3f85e376..8f86af5c54 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -24312,9 +24312,6 @@ Features:
 @end itemize")
     (license license:asl2.0)))
 
-(define-public python-pre-commit
-  (deprecated-package "python-pre-commit" pre-commit))
-
 (define-public python-precis-i18n
   (package
     (name "python-precis-i18n")
diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm
index c9fb66c8c9..c270b4257b 100644
--- a/gnu/packages/version-control.scm
+++ b/gnu/packages/version-control.scm
@@ -1757,6 +1757,9 @@ specify a list of hooks you want and pre-commit manages 
the installation and
 execution of any hook written in any language before every commit.")
     (license license:expat)))
 
+(define-public python-pre-commit
+  (deprecated-package "python-pre-commit" pre-commit))
+
 (define-public mercurial
   (package
     (name "mercurial")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]