Github messages for voidlinux
 help / color / mirror / Atom feed
From: voidlinux-github@inbox.vuxu.org
To: ml@inbox.vuxu.org
Subject: [PR PATCH] python3-PyJWT metadata fixes, python-PyJWT added
Date: Mon, 23 Sep 2019 20:04:21 +0200	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-14669@inbox.vuxu.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 588 bytes --]

There is a new pull request by roman-neuhauser against master on the void-packages repository

https://github.com/roman-neuhauser/void-packages pyjwtf
https://github.com/void-linux/void-packages/pull/14669

python3-PyJWT metadata fixes, python-PyJWT added
the first commit fixes wrong metadata (short_desc, license, homepage), the second makes it a `build_style=python-module` pair of python-PyJWT (source) and python3-PyJWT (symlink).  i need the py2 version for some azure stuff from microsoft.

A patch file from https://github.com/void-linux/void-packages/pull/14669.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-pyjwtf-14669.patch --]
[-- Type: text/x-diff, Size: 2990 bytes --]

From 09f8bc70df16ad0996f32c3f480897b447600964 Mon Sep 17 00:00:00 2001
From: Roman Neuhauser <neuhauser@sigpipe.cz>
Date: Mon, 23 Sep 2019 14:44:03 +0200
Subject: [PATCH 1/2] python3-PyJWT: fix template metadata

---
 srcpkgs/python3-PyJWT/template | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/srcpkgs/python3-PyJWT/template b/srcpkgs/python3-PyJWT/template
index 6f0830125c1..4b43288cc18 100644
--- a/srcpkgs/python3-PyJWT/template
+++ b/srcpkgs/python3-PyJWT/template
@@ -6,9 +6,9 @@ wrksrc="PyJWT-${version}"
 build_style=python3-module
 pycompile_module="PyJWT.py"
 hostmakedepends="python3-setuptools"
-short_desc="Platform independent file lock"
+short_desc="Python implementation of RFC 7519 (Python3)"
 maintainer="fosslinux <fosslinux@aussies.space>"
-license="Unlicense"
-homepage="https://filelock.readthedocs.io/en/latest/"
+license="MIT"
+homepage="https://pyjwt.readthedocs.io/en/latest/"
 distfiles="${PYPI_SITE}/P/PyJWT/PyJWT-${version}.tar.gz"
 checksum=8d59a976fb773f3e6a39c85636357c4f0e242707394cadadd9814f5cbaa20e96

From c77ee897df62b3745fc07bf019e159cfb00287c4 Mon Sep 17 00:00:00 2001
From: Roman Neuhauser <neuhauser@sigpipe.cz>
Date: Mon, 23 Sep 2019 14:50:14 +0200
Subject: [PATCH 2/2] python-PyJWT: Python2 version of python3-PyJWT

srcpkgs/python3-PyJWT is now a symlink to srcpkgs/python-PyJWT.
---
 srcpkgs/{python3-PyJWT => python-PyJWT}/template | 16 ++++++++++++----
 srcpkgs/python3-PyJWT                            |  1 +
 2 files changed, 13 insertions(+), 4 deletions(-)
 rename srcpkgs/{python3-PyJWT => python-PyJWT}/template (54%)
 create mode 120000 srcpkgs/python3-PyJWT

diff --git a/srcpkgs/python3-PyJWT/template b/srcpkgs/python-PyJWT/template
similarity index 54%
rename from srcpkgs/python3-PyJWT/template
rename to srcpkgs/python-PyJWT/template
index 4b43288cc18..a3f09889e98 100644
--- a/srcpkgs/python3-PyJWT/template
+++ b/srcpkgs/python-PyJWT/template
@@ -1,14 +1,22 @@
 # Template file for 'python3-PyJWT'
-pkgname=python3-PyJWT
+pkgname=python-PyJWT
 version=1.7.1
 revision=1
 wrksrc="PyJWT-${version}"
-build_style=python3-module
+build_style=python-module
 pycompile_module="PyJWT.py"
-hostmakedepends="python3-setuptools"
-short_desc="Python implementation of RFC 7519 (Python3)"
+hostmakedepends="python-setuptools python3-setuptools"
+short_desc="Python implementation of RFC 7519 (Python2)"
 maintainer="fosslinux <fosslinux@aussies.space>"
 license="MIT"
 homepage="https://pyjwt.readthedocs.io/en/latest/"
 distfiles="${PYPI_SITE}/P/PyJWT/PyJWT-${version}.tar.gz"
 checksum=8d59a976fb773f3e6a39c85636357c4f0e242707394cadadd9814f5cbaa20e96
+
+python3-PyJWT_package() {
+  depends=python3
+  short_desc="${short_desc/Python2/Python3}"
+  pkg_install() {
+    vmove usr/lib/python3*
+  }
+}
diff --git a/srcpkgs/python3-PyJWT b/srcpkgs/python3-PyJWT
new file mode 120000
index 00000000000..2e6e08552e1
--- /dev/null
+++ b/srcpkgs/python3-PyJWT
@@ -0,0 +1 @@
+python-PyJWT
\ No newline at end of file

             reply	other threads:[~2019-09-23 18:04 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-23 18:04 voidlinux-github [this message]
2019-09-24  9:13 ` [PR PATCH] [Updated] " voidlinux-github
2019-09-24  9:13 ` voidlinux-github
2019-09-25 10:41 ` voidlinux-github
2019-09-25 10:41 ` [PR PATCH] [Closed]: " voidlinux-github

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-14669@inbox.vuxu.org \
    --to=voidlinux-github@inbox.vuxu.org \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).