From unknown Mon Aug 18 15:39:02 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#40025] [PATCH] Add gitless package definition. Resent-From: "John D. Boy" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 11 Mar 2020 15:34:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 40025 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 40025@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.15839407878356 (code B ref -1); Wed, 11 Mar 2020 15:34:01 +0000 Received: (at submit) by debbugs.gnu.org; 11 Mar 2020 15:33:07 +0000 Received: from localhost ([127.0.0.1]:55368 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jC3M2-0002Ah-In for submit@debbugs.gnu.org; Wed, 11 Mar 2020 11:33:07 -0400 Received: from lists.gnu.org ([209.51.188.17]:52941) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jC31O-00018r-Sq for submit@debbugs.gnu.org; Wed, 11 Mar 2020 11:11:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54061) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jC31M-0002Mc-KJ for guix-patches@gnu.org; Wed, 11 Mar 2020 11:11:46 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_LOW, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jC31L-0005ZK-Fd for guix-patches@gnu.org; Wed, 11 Mar 2020 11:11:44 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:55481) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jC31L-0005Wz-2n for guix-patches@gnu.org; Wed, 11 Mar 2020 11:11:43 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 742FE2249C for ; Wed, 11 Mar 2020 11:11:40 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Wed, 11 Mar 2020 11:11:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bius.moe; h=from :to:subject:date:message-id:mime-version :content-transfer-encoding; s=fm2; bh=WbT34yf2MN+kwCO6XgwhfG2Uxg HsWG0pC8Q8OhNSdH4=; b=cM5X9xdjRLe0j3m3kEdZ6V0SP10AdsuZD4nxm0ghXf DNj4YR9WLNKnRgbwayJ/ZsmSSWAL2AUXezOrmZTB5I4XMRVUR/IBbvjPrJie78O+ kd2ri67e4NECIRMgzGmZ20fajJqmoVRwJx2vSFUZDKkyaTJNmBANIwaDvhVxE2jQ si2AqSXRxNSf388FHf1dzUDcEK+dObwFOU6xcAWom/acKkAsZf/e3RgZp6PI4mmy xWfGxN5sBcPQsY+7HqiSZGeW4N83p+P/AcMrh6+Uw5Po2lfiJDcuXz5VwxUuh/EM jP8OkADj4vgjCcSp+NiCt5N8fA76yPd/vGjSPXMz+qgw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=WbT34yf2MN+kwCO6X gwhfG2UxgHsWG0pC8Q8OhNSdH4=; b=JsGMqjRwdAyUjIQbVyGOW4sxGq9sBmzyn MIFss3CKfoqtyapra724DIJdtGJ7g4cMXJ41pSSNagdu3D0tGBqVBKVwUxaYG25O VObAUvAFT9FHuBt1KHHxROXDqpK4UwRzFXEc3D77TlfnitcodKtYWgG3FsSzvHsi r+xVVHWP0cWVeAFKqjAZcwi6ddChIiFRMkhJddNSgxrJktmPD212XNvkrrAz345k TgotaPeiI5fZe/OcsGKXPIk41LwheV8NiAl33HIl9IRQbUjt0rxS309WCKmJ71dJ zrB5dvvYhKtMWenlEEGeLMe0U7XcGQIAXzNXVU6u9JYudt3jl+EcQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedruddvvddgjeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgggfestdekredtre dttdenucfhrhhomhepfdflohhhnhcuffdruceuohihfdcuoehjsghohiessghiuhhsrdhm ohgvqeenucffohhmrghinhepghhithhhuhgsrdgtohhmpdhgihhtlhgvshhsrdgtohhmne cukfhppeekfedrudeivddrvdefuddrvddutdenucevlhhushhtvghrufhiiigvpedtnecu rfgrrhgrmhepmhgrihhlfhhrohhmpehjsghohiessghiuhhsrdhmohgv X-ME-Proxy: Received: from localhost (83-162-231-210.ip.xs4all.nl [83.162.231.210]) by mail.messagingengine.com (Postfix) with ESMTPA id ABFB1328006B for ; Wed, 11 Mar 2020 11:11:39 -0400 (EDT) From: "John D. Boy" Date: Wed, 11 Mar 2020 16:11:37 +0100 Message-Id: <20200311151137.32198-1-jboy@bius.moe> X-Mailer: git-send-email 2.23.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 66.111.4.25 X-Spam-Score: -0.0 (/) X-Mailman-Approved-At: Wed, 11 Mar 2020 11:33:05 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --- gnu/packages/version-control.scm | 50 ++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm index 52626f8076..7aac933d15 100644 --- a/gnu/packages/version-control.scm +++ b/gnu/packages/version-control.scm @@ -2373,3 +2373,53 @@ interrupted, published, and collaborated on while in progress.") videos, datasets, and graphics with text pointers inside Git, while storing the file contents on a remote server.") (license license:expat))) + +(define-public gitless + (package + (name "gitless") + ;; The PyPI package lacks the test suite, so we build it directly from the + ;; git repository. + (version "0.8.8") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/gitless-vcs/gitless") + (commit (string-append "v" version)))) + (sha256 + (base32 "048kl27zjr68hgs70g3l98ci9765wxva6azzrhcdys7nsdd493n6")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-before 'build 'loosen-requirements + (lambda _ + (substitute* "setup.py" + ;; Don't insist on an older version of pygit2. + (("pygit2==") "pygit2>=")) + (substitute* "requirements.txt" + (("pygit2==") "pygit2>=")) + #t)) + (add-before 'check 'prepare-for-tests + (lambda _ + ;; Find the 'gl' command. + (rename-file "gl.py" "gl") + (setenv "PATH" (string-append (getcwd) ":" (getenv "PATH"))) + ;; The tests try to run git as if it were already set up. + (setenv "HOME" (getcwd)) + (invoke "git" "config" "--global" "user.email" "git@example.com") + (invoke "git" "config" "--global" "user.name" "guix") + #t))))) + (native-inputs + ;; Required for tests. + `(("git-minimal" ,git-minimal))) + (propagated-inputs + `(("python-clint" ,python-clint) + ("python-pygit2" ,python-pygit2) + ("python-sh" ,python-sh))) + (home-page "https://gitless.com") + (synopsis + "A version control system built on top of Git") + (description + "A version control system built on top of Git") + (license license:expat))) -- 2.20.1 From unknown Mon Aug 18 15:39:02 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#40025] [PATCH] Add gitless package definition. References: <20200311151137.32198-1-jboy@bius.moe> In-Reply-To: <20200311151137.32198-1-jboy@bius.moe> Resent-From: Tobias Geerinckx-Rice Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 11 Mar 2020 19:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40025 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 40025@debbugs.gnu.org Received: via spool by 40025-submit@debbugs.gnu.org id=B40025.158395349828294 (code B ref 40025); Wed, 11 Mar 2020 19:05:01 +0000 Received: (at 40025) by debbugs.gnu.org; 11 Mar 2020 19:04:58 +0000 Received: from localhost ([127.0.0.1]:55527 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jC6f4-0007MI-50 for submit@debbugs.gnu.org; Wed, 11 Mar 2020 15:04:58 -0400 Received: from tobias.gr ([80.241.217.52]:34184) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jC6f2-0007M9-6W for 40025@debbugs.gnu.org; Wed, 11 Mar 2020 15:04:57 -0400 Received: by tobias.gr (OpenSMTPD) with ESMTP id 91e7538c for <40025@debbugs.gnu.org>; Wed, 11 Mar 2020 19:04:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=tobias.gr; h=from:to :subject:date:message-id:mime-version:content-type; s=2018; i= me@tobias.gr; bh=oidzeAHxWqHjDNJcQoMWZFfq2V4AIfH2YuLJWbQy7Z8=; b= PqpU6Z5o5agvbB5dlUcnd1lyHPAUpd01SwLUS1IQzmiSh6GptYSzlGJXoGzt2xQj wV5T0WzqDrgjR9Ov/U/umluUxiLc94ap1st0/1G6YIDGcx7A+zZ4B/+BbEB5deLj yh67Sx0L2xQfPWxMsyriSINESUROQ3zjkmVkuP1+KTvKkcWto44mVmiathDaJaoX BuDVB3VDzIndkUo/dU+QTbP7XtTm1deYFPfxV+icfJznsACHbgOvGsrN/roPwqab ns05xhBSyA3hx2qBGfWztOq8g70c4TL2YvBHYLhn+yQ9tC9l01yGeI8jOS9jCt0a yLegsCJGE4LL8/F8nrJsyA== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id b0f93a67 (TLSv1.2:ECDHE-ECDSA-AES256-GCM-SHA384:256:NO) for <40025@debbugs.gnu.org>; Wed, 11 Mar 2020 19:04:54 +0000 (UTC) From: Tobias Geerinckx-Rice Date: Wed, 11 Mar 2020 20:05:27 +0100 Message-ID: <87wo7qhfuw.fsf@nckx> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) --=-=-= Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable John, Thanks for the patch! Guix uses a specific commit message format. It's partially=20 documented in =E2=80=98(guix)Submitting Patches=E2=80=99 but you're IMO bet= ter off=20 just reading the git history to get a feel for it. Here's the=20 commit message for this package: gnu: Add gitless. * gnu/packages/version-control.scm (gitless): New public=20 variable. Co-authored-by: Tobias Geerinckx-Rice I've written down my comments below, but you don't need to send a=20 V2. I'll try to make it work here and will push a modified version if=20 I succeed. It would be nice if I could get rid of propagation,=20 and the path to a (non-native) git still needs to be embedded so=20 the user doesn't need to install git themselves. > + (uri (git-reference > + (url "https://github.com/gitless-vcs/gitless") > + (commit (string-append "v" version)))) This is missing the FILE-NAME field. Without it, the source is=20 checked out into /gnu/store/-checkout/ which makes it harder=20 to see what's what. Adding (file-name (git-file-name name version)) puts it in=20 /gnu/store/-gitless--checkout. > + (substitute* "requirements.txt" > + (("pygit2=3D=3D") "pygit2>=3D")) This has no effect on the end result so I suggest we drop it=20 again. > + (synopsis > + "A version control system built on top of Git") Synopses shouldn't start with an article. Tip: running =E2=80=98./pre-inst-env guix lint gitless=E2=80=99 will catch = things=20 like this. It also caught the missing FILE-NAME. It also printed several warnings about using tabs instead of=20 spaces. Guix does not use tabs in Scheme code. > + (description > + "A version control system built on top of Git") This is waaay too short, I told you that before :-p Moreover,=20 descriptions should consist of complete sentences. I've knocked=20 something together based on the home page blurb: Gitless is a Git-compatible version control system that aims to=20 be easy to learn and use. It simplifies the common workflow by committing changes to tracked files by default and saving any uncommitted changes as part of a branch. The friendly @command{gl} command-line interface gives feedback=20 and helps you figure out what to do next. Gitless is implemented on top of Git and its commits and=20 repositories are indistinguishable from Git's. You (or other contributors)=20 can always fall back on @command{git}, and use any regular Git=20 hosting service. Kind regards, T G-R --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEfo+u0AlEeO9y5k0W2Imw8BjFSTwFAl5pNncACgkQ2Imw8BjF STwnZxAAnyk4VTO2C6FgbErtYghtq1fQ5WUsjxfUMofYv9IjF4TFf1hQiI6Ssb5Y TvbpPIC+6d+cht0sI1X8eWZZ1TH/fkyfNoczUI52nzgAR6IQZAqNRKOhtWZhjPGN lXe0bnqE+x3Mba/Nus0g+jUi9BDzZ7w0e95mKHytxgCPSsfqRJ+Uh13TI/SMlkWM SbtrJhaHkR0OfwrvhyQLyIZVu88doUrB1tvZfSftnJ1IZy2WEsSnVJK2Mx+aTPMR 2WOH/8hcURJeeEccHWAWbB0NQMHslohk+tZmmZ4Pw89vboGfy9+pgDOL+E6vaRkD WS/8Bom9uVtc2TuLBPDBblRXP4o3mMBXBWolNr96T85G5kDDseI/OA8XtuAPY4BW mFrjjyJ2nGQAEN/ItVQkBX/F0Y84WqLc5lZhNkvnw3gvJADKHxOgJBHc3goXgp1p WIelWgSmqVcesBR9D3EAwzTb+89VDaRavmPFM4Ri7KCH2qOqI3+qqmgCV5R6VKoO TpNwakp3pxGJy6d608xTL7PmiZIZTJyAqgCT73m4Rmvct0kIAOwRSiDECKp8cwOy ZZ8aAFKGJL0OcQ8TCd4HL8OTjUtnhaUQhJ4+03i/4hw3Z11nzai6uQUS8E4Iq/SI PUO2wve0PF4j8lGngBnTnZW03eIiRn/S2VQx7yz1+PWdxfmPx7o= =mSi5 -----END PGP SIGNATURE----- --=-=-=-- From unknown Mon Aug 18 15:39:02 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: "John D. Boy" Subject: bug#40025: closed (Re: [bug#40025] [PATCH] Add gitless package definition.) Message-ID: References: <87r1xygqbd.fsf@nckx> <20200311151137.32198-1-jboy@bius.moe> X-Gnu-PR-Message: they-closed 40025 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 40025@debbugs.gnu.org Date: Thu, 12 Mar 2020 04:17:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1583986622-31851-1" This is a multi-part message in MIME format... ------------=_1583986622-31851-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #40025: [PATCH] Add gitless package definition. which was filed against the guix-patches package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 40025@debbugs.gnu.org. --=20 40025: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D40025 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1583986622-31851-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 40025-done) by debbugs.gnu.org; 12 Mar 2020 04:16:43 +0000 Received: from localhost ([127.0.0.1]:55780 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jCFH1-0008H6-Ju for submit@debbugs.gnu.org; Thu, 12 Mar 2020 00:16:43 -0400 Received: from tobias.gr ([80.241.217.52]:52846) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jCFGz-0008Gx-RD for 40025-done@debbugs.gnu.org; Thu, 12 Mar 2020 00:16:42 -0400 Received: by tobias.gr (OpenSMTPD) with ESMTP id 6cd6d628 for <40025-done@debbugs.gnu.org>; Thu, 12 Mar 2020 04:16:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=tobias.gr; h=from:cc :subject:references:in-reply-to:date:message-id:mime-version :content-type; s=2018; i=me@tobias.gr; bh=tBDTbTcoagx70LobZNeML5 0WxtyFletvWcrYAwr1+YU=; b=GqCuS4xoDTN6QFEkXF6b9YMHnJ1x3r3K9Pbais 0pY2V6qCCd92+ATXVg/tkYG/vM76EaMtKK5Kkntapt3fc99QCSR+89o93xlRXk3J aUIE2c0smMbUBpjCMXpT6E54XApmOLaWmVKV00fg2eK0nIuXo1WbZ+K9eVjQUe6x Jzo+4pqDl4S7YobsjbGnyv+ced/lnzWN3QhUapdG1Njsv0FNOufnU0rZRXcaTqpt SdNbCHwCLnhCry90JtC8nrRRDLjccDbKSI5Rm1nzETgDrP+j2wNSt2TwAJLVsMt1 cQC4FxijhIToKt+Pac6VZsSPIU2rSzIrjGJ081TvhdsxrbOA== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id 965359c9 (TLSv1.2:ECDHE-ECDSA-AES256-GCM-SHA384:256:NO) for <40025-done@debbugs.gnu.org>; Thu, 12 Mar 2020 04:16:37 +0000 (UTC) From: Tobias Geerinckx-Rice Subject: Re: [bug#40025] [PATCH] Add gitless package definition. References: <20200311151137.32198-1-jboy@bius.moe> <87wo7qhfuw.fsf@nckx> In-reply-to: <87wo7qhfuw.fsf@nckx> Date: Thu, 12 Mar 2020 05:17:10 +0100 Message-ID: <87r1xygqbd.fsf@nckx> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -1.1 (-) X-Debbugs-Envelope-To: 40025-done Cc: 40025-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.1 (--) --=-=-= Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Tobias Geerinckx-Rice via Guix-patches via =E5=86=99=E9=81=93=EF=BC=9A > I'll try to make it work here and will push a modified version=20 > if I > succeed. It would be nice if I could get rid of propagation,=20 > and the > path to a (non-native) git still needs to be embedded so the=20 > user > doesn't need to install git themselves. Done and done. I added a copyright line for you and (using this=20 package) pushed this to master as=20 f930814afae8e20125dab58b060a691ea8398e26. Thanks! T G-R --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEfo+u0AlEeO9y5k0W2Imw8BjFSTwFAl5pt8YACgkQ2Imw8BjF STwOfw//Wr7im0TOoBGzXh9stYE5nvxaNmaGNfbnN8RAIuc1vN20EadNQE5k2s4A 6kw526fzuun1JUJ4jHOpXOEpQxd9ZmctImj+tRqsLYwIqbb/ilEGYS4xRb/1l9J0 hYuCCUjtw0hWx10RpVYcgqbKpCkQ6FF0b9dxXx57p0KOAagc+yFgqUX++2WOWC6T 0AErmS8R+ICTfnFryBRLF1yMXvo6h79web5o+nNzAm8uYNEwcoxGqkUl3H4nT88l FcLncP34lQrBUZaR1OqDxWxVThDxNX5W55ZYd/G0o2tNal3asEpo0Utjy659uWnp EjLhS3A7PNSoCLFfOgdG9xuJCZvPer0ZOZd/cwMQGrGWcHnkNTHSk0wgCTUQ0ycG cuM8SRabOlaoQ/9b+T+4307xzu/vOdsQxlVrgerM3MynIFTKqmq6PSMbjW6jSetn ftvE79+9hreR0ZJTe4duou0xAkZ3ninsNBguTwTkI/phx4EbZPMeXeFIjqpet1ak RhvxIwuVLoE1+1sdlWs5ZFoapUMGNphHXDllvEciIgaiIQYRtxHNEhAHtWKACUL0 NqiUGfvAc8RiOryqvUKN4iZTvl6Xw5dMg+4rnLW0ACs2gsxb34Tg7pEy5A54V8lP XyVHtpb9o8B3WiEplurlQ1rGGjJUSR00k11kdX3aKCrOLK9PsDc= =RQkp -----END PGP SIGNATURE----- --=-=-=-- ------------=_1583986622-31851-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 11 Mar 2020 15:33:07 +0000 Received: from localhost ([127.0.0.1]:55368 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jC3M2-0002Ah-In for submit@debbugs.gnu.org; Wed, 11 Mar 2020 11:33:07 -0400 Received: from lists.gnu.org ([209.51.188.17]:52941) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jC31O-00018r-Sq for submit@debbugs.gnu.org; Wed, 11 Mar 2020 11:11:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54061) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jC31M-0002Mc-KJ for guix-patches@gnu.org; Wed, 11 Mar 2020 11:11:46 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_LOW, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jC31L-0005ZK-Fd for guix-patches@gnu.org; Wed, 11 Mar 2020 11:11:44 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:55481) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jC31L-0005Wz-2n for guix-patches@gnu.org; Wed, 11 Mar 2020 11:11:43 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 742FE2249C for ; Wed, 11 Mar 2020 11:11:40 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Wed, 11 Mar 2020 11:11:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bius.moe; h=from :to:subject:date:message-id:mime-version :content-transfer-encoding; s=fm2; bh=WbT34yf2MN+kwCO6XgwhfG2Uxg HsWG0pC8Q8OhNSdH4=; b=cM5X9xdjRLe0j3m3kEdZ6V0SP10AdsuZD4nxm0ghXf DNj4YR9WLNKnRgbwayJ/ZsmSSWAL2AUXezOrmZTB5I4XMRVUR/IBbvjPrJie78O+ kd2ri67e4NECIRMgzGmZ20fajJqmoVRwJx2vSFUZDKkyaTJNmBANIwaDvhVxE2jQ si2AqSXRxNSf388FHf1dzUDcEK+dObwFOU6xcAWom/acKkAsZf/e3RgZp6PI4mmy xWfGxN5sBcPQsY+7HqiSZGeW4N83p+P/AcMrh6+Uw5Po2lfiJDcuXz5VwxUuh/EM jP8OkADj4vgjCcSp+NiCt5N8fA76yPd/vGjSPXMz+qgw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=WbT34yf2MN+kwCO6X gwhfG2UxgHsWG0pC8Q8OhNSdH4=; b=JsGMqjRwdAyUjIQbVyGOW4sxGq9sBmzyn MIFss3CKfoqtyapra724DIJdtGJ7g4cMXJ41pSSNagdu3D0tGBqVBKVwUxaYG25O VObAUvAFT9FHuBt1KHHxROXDqpK4UwRzFXEc3D77TlfnitcodKtYWgG3FsSzvHsi r+xVVHWP0cWVeAFKqjAZcwi6ddChIiFRMkhJddNSgxrJktmPD212XNvkrrAz345k TgotaPeiI5fZe/OcsGKXPIk41LwheV8NiAl33HIl9IRQbUjt0rxS309WCKmJ71dJ zrB5dvvYhKtMWenlEEGeLMe0U7XcGQIAXzNXVU6u9JYudt3jl+EcQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedruddvvddgjeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgggfestdekredtre dttdenucfhrhhomhepfdflohhhnhcuffdruceuohihfdcuoehjsghohiessghiuhhsrdhm ohgvqeenucffohhmrghinhepghhithhhuhgsrdgtohhmpdhgihhtlhgvshhsrdgtohhmne cukfhppeekfedrudeivddrvdefuddrvddutdenucevlhhushhtvghrufhiiigvpedtnecu rfgrrhgrmhepmhgrihhlfhhrohhmpehjsghohiessghiuhhsrdhmohgv X-ME-Proxy: Received: from localhost (83-162-231-210.ip.xs4all.nl [83.162.231.210]) by mail.messagingengine.com (Postfix) with ESMTPA id ABFB1328006B for ; Wed, 11 Mar 2020 11:11:39 -0400 (EDT) From: "John D. Boy" To: guix-patches@gnu.org Subject: [PATCH] Add gitless package definition. Date: Wed, 11 Mar 2020 16:11:37 +0100 Message-Id: <20200311151137.32198-1-jboy@bius.moe> X-Mailer: git-send-email 2.23.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 66.111.4.25 X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 11 Mar 2020 11:33:05 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --- gnu/packages/version-control.scm | 50 ++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm index 52626f8076..7aac933d15 100644 --- a/gnu/packages/version-control.scm +++ b/gnu/packages/version-control.scm @@ -2373,3 +2373,53 @@ interrupted, published, and collaborated on while in progress.") videos, datasets, and graphics with text pointers inside Git, while storing the file contents on a remote server.") (license license:expat))) + +(define-public gitless + (package + (name "gitless") + ;; The PyPI package lacks the test suite, so we build it directly from the + ;; git repository. + (version "0.8.8") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/gitless-vcs/gitless") + (commit (string-append "v" version)))) + (sha256 + (base32 "048kl27zjr68hgs70g3l98ci9765wxva6azzrhcdys7nsdd493n6")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-before 'build 'loosen-requirements + (lambda _ + (substitute* "setup.py" + ;; Don't insist on an older version of pygit2. + (("pygit2==") "pygit2>=")) + (substitute* "requirements.txt" + (("pygit2==") "pygit2>=")) + #t)) + (add-before 'check 'prepare-for-tests + (lambda _ + ;; Find the 'gl' command. + (rename-file "gl.py" "gl") + (setenv "PATH" (string-append (getcwd) ":" (getenv "PATH"))) + ;; The tests try to run git as if it were already set up. + (setenv "HOME" (getcwd)) + (invoke "git" "config" "--global" "user.email" "git@example.com") + (invoke "git" "config" "--global" "user.name" "guix") + #t))))) + (native-inputs + ;; Required for tests. + `(("git-minimal" ,git-minimal))) + (propagated-inputs + `(("python-clint" ,python-clint) + ("python-pygit2" ,python-pygit2) + ("python-sh" ,python-sh))) + (home-page "https://gitless.com") + (synopsis + "A version control system built on top of Git") + (description + "A version control system built on top of Git") + (license license:expat))) -- 2.20.1 ------------=_1583986622-31851-1--