Github messages for voidlinux
 help / color / mirror / Atom feed
From: paper42 <paper42@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] python-automat: split python3-automat to a new package
Date: Fri, 16 Jun 2023 23:33:44 +0200	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-44482@inbox.vuxu.org> (raw)

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

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

https://github.com/paper42/void-packages py2split-automat
https://github.com/void-linux/void-packages/pull/44482

python-automat: split python3-automat to a new package
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **briefly**

<!--
#### 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/44482.patch is attached

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

From 3abf16c47f88a3a0324327201da7b9a9068b6c1b Mon Sep 17 00:00:00 2001
From: Michal Vasilek <michal@vasilek.cz>
Date: Fri, 16 Jun 2023 21:53:18 +0200
Subject: [PATCH] python-automat: split python3-automat to a new package

---
 srcpkgs/python-automat/template  | 23 ++++-------------------
 srcpkgs/python3-automat          |  1 -
 srcpkgs/python3-automat/template | 32 ++++++++++++++++++++++++++++++++
 3 files changed, 36 insertions(+), 20 deletions(-)
 delete mode 120000 srcpkgs/python3-automat
 create mode 100644 srcpkgs/python3-automat/template

diff --git a/srcpkgs/python-automat/template b/srcpkgs/python-automat/template
index bc9ea242cfe2..cf564d324fc9 100644
--- a/srcpkgs/python-automat/template
+++ b/srcpkgs/python-automat/template
@@ -2,10 +2,9 @@
 pkgname=python-automat
 version=22.10.0
 revision=2
-build_style=python-module
-hostmakedepends="python-setuptools python3-setuptools"
+build_style=python2-module
+hostmakedepends="python-setuptools"
 depends="python-setuptools python-attrs python-six"
-checkdepends="python3-pytest python3-attrs python3-six python3-graphviz"
 short_desc="Finite-state machines in Python (Python2)"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="MIT"
@@ -13,6 +12,7 @@ homepage="https://github.com/glyph/Automat"
 distfiles="${PYPI_SITE}/A/Automat/Automat-${version}.tar.gz"
 checksum=e56beb84edad19dcc11d30e8d9b895f75deeb5ef5e96b84a467066b3b84bb04e
 alternatives="automat:automat-visualize:/usr/bin/automat-visualize2"
+make_check=no # python2
 
 pre_build() {
 	sed -i setup.py \
@@ -21,22 +21,7 @@ pre_build() {
 		-e "s/use_scm_version=True/version='${version}'/"
 }
 
-do_check() {
-	PYTHONPATH="$(cd build/lib* && pwd)" \
-		python3 -m pytest ${testjobs} automat/_test
-}
-
 post_install() {
+	mv ${DESTDIR}/usr/bin/automat-visualize{,2}
 	vlicense LICENSE
 }
-
-python3-automat_package() {
-	short_desc="${short_desc/Python2/Python3}"
-	depends="python3-setuptools python3-attrs python3-six"
-	alternatives="automat:automat-visualize:/usr/bin/automat-visualize3"
-	pkg_install() {
-		vmove usr/bin/*3
-		vmove usr/lib/python3*
-		vlicense LICENSE
-	}
-}
diff --git a/srcpkgs/python3-automat b/srcpkgs/python3-automat
deleted file mode 120000
index 2df0fb5b1fc3..000000000000
--- a/srcpkgs/python3-automat
+++ /dev/null
@@ -1 +0,0 @@
-python-automat
\ No newline at end of file
diff --git a/srcpkgs/python3-automat/template b/srcpkgs/python3-automat/template
new file mode 100644
index 000000000000..5d3f0b26d88a
--- /dev/null
+++ b/srcpkgs/python3-automat/template
@@ -0,0 +1,32 @@
+# Template file for 'python3-automat'
+pkgname=python3-automat
+version=22.10.0
+revision=2
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+depends="python3-setuptools python3-attrs python3-six"
+checkdepends="${depends} python3-pytest python3-pytest-benchmark python3-graphviz"
+short_desc="Finite-state machines in Python (Python3)"
+maintainer="Orphaned <orphan@voidlinux.org>"
+license="MIT"
+homepage="https://github.com/glyph/Automat"
+distfiles="${PYPI_SITE}/A/Automat/Automat-${version}.tar.gz"
+checksum=e56beb84edad19dcc11d30e8d9b895f75deeb5ef5e96b84a467066b3b84bb04e
+alternatives="automat:automat-visualize:/usr/bin/automat-visualize3"
+
+pre_build() {
+	sed -i setup.py \
+		-e '/print(/d' \
+		-e '/setup_requires=/,+3d' \
+		-e "s/use_scm_version=True/version='${version}'/"
+}
+
+# do_check() {
+#     PYTHONPATH="$(cd build/lib* && pwd)" \
+#         python3 -m pytest ${testjobs} automat/_test
+# }
+
+post_install() {
+	mv ${DESTDIR}/usr/bin/automat-visualize{,3}
+	vlicense LICENSE
+}

             reply	other threads:[~2023-06-16 21:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-16 21:33 paper42 [this message]
2023-06-17 17:05 ` [PR PATCH] [Merged]: " paper42

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-44482@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).