From: paper42 <paper42@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] python-msp430-tools: use python3
Date: Sun, 12 Feb 2023 12:56:03 +0100 [thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-42223@inbox.vuxu.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 1450 bytes --]
There is a new pull request by paper42 against master on the void-packages repository
https://github.com/paper42/void-packages msp430-tools-python3
https://github.com/void-linux/void-packages/pull/42223
python-msp430-tools: use python3
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **briefly**
The readme mentions that python2 is needed for most modules, but we are slowly removing python2 packages, so I would recommend people to use a python2 venv and pip.
cc @leahneukirchen
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/42223.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-msp430-tools-python3-42223.patch --]
[-- Type: text/x-diff, Size: 6716 bytes --]
From fc89aa6240e7172ec9f3a66f21d03af303a03742 Mon Sep 17 00:00:00 2001
From: Michal Vasilek <michal@vasilek.cz>
Date: Sun, 12 Feb 2023 12:49:53 +0100
Subject: [PATCH 1/2] python-msp430-tools: use python3
---
srcpkgs/python-msp430-tools | 1 +
srcpkgs/python-msp430-tools/template | 19 ---------------
srcpkgs/python3-msp430-tools/template | 24 +++++++++++++++++++
.../update | 0
4 files changed, 25 insertions(+), 19 deletions(-)
create mode 120000 srcpkgs/python-msp430-tools
delete mode 100644 srcpkgs/python-msp430-tools/template
create mode 100644 srcpkgs/python3-msp430-tools/template
rename srcpkgs/{python-msp430-tools => python3-msp430-tools}/update (100%)
diff --git a/srcpkgs/python-msp430-tools b/srcpkgs/python-msp430-tools
new file mode 120000
index 000000000000..1030a1c8323c
--- /dev/null
+++ b/srcpkgs/python-msp430-tools
@@ -0,0 +1 @@
+python3-msp430-tools
\ No newline at end of file
diff --git a/srcpkgs/python-msp430-tools/template b/srcpkgs/python-msp430-tools/template
deleted file mode 100644
index d80188640dec..000000000000
--- a/srcpkgs/python-msp430-tools/template
+++ /dev/null
@@ -1,19 +0,0 @@
-# Template file for 'python-msp430-tools'
-pkgname=python-msp430-tools
-version=0.9.2
-revision=2
-build_style=python2-module
-pycompile_module="msp430"
-hostmakedepends="python-setuptools"
-depends="python-pyserial"
-short_desc="Collection of tools related to the MSP430 embedded processor"
-maintainer="Leah Neukirchen <leah@vuxu.org>"
-license="BSD-3-Clause"
-homepage="https://pypi.org/project/python-msp430-tools/"
-distfiles="${PYPI_SITE}/p/${pkgname}/${pkgname}-${version}.tar.gz"
-checksum=544de0c333a4e58a9f5585454a515c6f6159547a5e9a6103cc1e1f064d8323d8
-
-post_install() {
- vlicense LICENSE.txt LICENSE
- rm ${DESTDIR}/usr/bin/msp430-downloader # needs EasyDialogs
-}
diff --git a/srcpkgs/python3-msp430-tools/template b/srcpkgs/python3-msp430-tools/template
new file mode 100644
index 000000000000..281dfadf591f
--- /dev/null
+++ b/srcpkgs/python3-msp430-tools/template
@@ -0,0 +1,24 @@
+# Template file for 'python3-msp430-tools'
+pkgname=python3-msp430-tools
+version=0.9.2
+revision=3
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+depends="python3-pyserial"
+short_desc="Collection of tools related to the MSP430 embedded processor"
+maintainer="Leah Neukirchen <leah@vuxu.org>"
+license="BSD-3-Clause"
+homepage="https://pypi.org/project/python-msp430-tools/"
+distfiles="${PYPI_SITE}/p/python-msp430-tools/python-msp430-tools-${version}.tar.gz"
+checksum=544de0c333a4e58a9f5585454a515c6f6159547a5e9a6103cc1e1f064d8323d8
+
+post_install() {
+ vlicense LICENSE.txt LICENSE
+ rm ${DESTDIR}/usr/bin/msp430-downloader # needs EasyDialogs
+}
+
+python-msp430-tools_package() {
+ depends="${sourcepkg}>=${version}_${revision}"
+ short_desc+=" - transitional dummy package"
+ build_style=meta
+}
diff --git a/srcpkgs/python-msp430-tools/update b/srcpkgs/python3-msp430-tools/update
similarity index 100%
rename from srcpkgs/python-msp430-tools/update
rename to srcpkgs/python3-msp430-tools/update
From 07259f934f8de1221e409147660d9abd619484e8 Mon Sep 17 00:00:00 2001
From: Michal Vasilek <michal@vasilek.cz>
Date: Sun, 12 Feb 2023 12:52:39 +0100
Subject: [PATCH 2/2] python-pyserial: remove package
python2, not used by any other packages anymore
---
srcpkgs/python-pyserial/template | 31 -------------------
srcpkgs/python3-pyserial | 1 -
srcpkgs/python3-pyserial/template | 17 ++++++++++
.../update | 0
srcpkgs/removed-packages/template | 1 +
5 files changed, 18 insertions(+), 32 deletions(-)
delete mode 100644 srcpkgs/python-pyserial/template
delete mode 120000 srcpkgs/python3-pyserial
create mode 100644 srcpkgs/python3-pyserial/template
rename srcpkgs/{python-pyserial => python3-pyserial}/update (100%)
diff --git a/srcpkgs/python-pyserial/template b/srcpkgs/python-pyserial/template
deleted file mode 100644
index 235ad01c9cdb..000000000000
--- a/srcpkgs/python-pyserial/template
+++ /dev/null
@@ -1,31 +0,0 @@
-# Template file for 'python-pyserial'
-pkgname=python-pyserial
-version=3.4
-revision=7
-build_style=python-module
-hostmakedepends="python-setuptools python3-setuptools"
-depends="python"
-pycompile_module="serial"
-short_desc="Python2 module providing access for the serial port"
-maintainer="Orphaned <orphan@voidlinux.org>"
-homepage="https://github.com/pyserial/pyserial"
-license="3-clause-BSD"
-distfiles="${PYPI_SITE}/p/pyserial/pyserial-${version}.tar.gz"
-checksum=6e2d401fdee0eab996cf734e67773a0143b932772ca8b42451440cfed942c627
-alternatives="pyserial:miniterm:/usr/bin/miniterm.py2"
-
-post_install() {
- vlicense LICENSE.txt LICENSE
-}
-
-python3-pyserial_package() {
- depends="python3"
- pycompile_module="serial"
- short_desc="${short_desc/Python2/Python3}"
- alternatives="pyserial:miniterm:/usr/bin/miniterm.py3"
- pkg_install() {
- vmove usr/bin/miniterm.py3
- vmove usr/lib/python3*
- vlicense LICENSE.txt LICENSE
- }
-}
diff --git a/srcpkgs/python3-pyserial b/srcpkgs/python3-pyserial
deleted file mode 120000
index b32b82bb9660..000000000000
--- a/srcpkgs/python3-pyserial
+++ /dev/null
@@ -1 +0,0 @@
-python-pyserial
\ No newline at end of file
diff --git a/srcpkgs/python3-pyserial/template b/srcpkgs/python3-pyserial/template
new file mode 100644
index 000000000000..131d91d0aef1
--- /dev/null
+++ b/srcpkgs/python3-pyserial/template
@@ -0,0 +1,17 @@
+# Template file for 'python3-pyserial'
+pkgname=python3-pyserial
+version=3.4
+revision=8
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+depends="python3"
+short_desc="Python module providing access for the serial port"
+maintainer="Orphaned <orphan@voidlinux.org>"
+homepage="https://github.com/pyserial/pyserial"
+license="BSD-3-Clause"
+distfiles="${PYPI_SITE}/p/pyserial/pyserial-${version}.tar.gz"
+checksum=6e2d401fdee0eab996cf734e67773a0143b932772ca8b42451440cfed942c627
+
+post_install() {
+ vlicense LICENSE.txt LICENSE
+}
diff --git a/srcpkgs/python-pyserial/update b/srcpkgs/python3-pyserial/update
similarity index 100%
rename from srcpkgs/python-pyserial/update
rename to srcpkgs/python3-pyserial/update
diff --git a/srcpkgs/removed-packages/template b/srcpkgs/removed-packages/template
index ef781a412eb8..2b465f8719f5 100644
--- a/srcpkgs/removed-packages/template
+++ b/srcpkgs/removed-packages/template
@@ -414,6 +414,7 @@ replaces="
python-pydns<=2.3.6_4
python-pyenet<=1.3.13.post7_2
python-pyglet<=1.4.10_4
+ python-pyserial<=3.4_7
python-pyside<=1.2.2_7
python-pystache<=0.5.4_6
python-pytest-relaxed<=1.1.2_2
next reply other threads:[~2023-02-12 11:56 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-12 11:56 paper42 [this message]
2023-02-12 14:59 ` leahneukirchen
2023-05-14 1:55 ` github-actions
2023-05-15 14:01 ` leahneukirchen
2023-08-13 15:06 ` [PR PATCH] [Updated] " classabbyamp
2023-08-13 15:23 ` classabbyamp
2023-09-27 23:24 ` [PR PATCH] [Closed]: " classabbyamp
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-42223@inbox.vuxu.org \
--to=paper42@users.noreply.github.com \
--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).