Github messages for voidlinux
 help / color / mirror / Atom feed
From: tranzystorek-io <tranzystorek-io@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: python3-cookiecutter-2.1.1
Date: Fri, 29 Jul 2022 07:27:06 +0200	[thread overview]
Message-ID: <20220729052706.XXoceIXYXB9rTxs3GiTBJoy-SEC9UkNDRxOMjWLVm0s@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-38176@inbox.vuxu.org>

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

There is an updated pull request by tranzystorek-io against master on the void-packages repository

https://github.com/tranzystorek-io/void-packages cookiecutter
https://github.com/void-linux/void-packages/pull/38176

New package: python3-cookiecutter-2.1.1
- New package: python3-jinja2-time-0.2.0
- New package: python3-cookiecutter-2.1.1

<!-- Uncomment relevant sections and delete options which are not applicable -->

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

#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**

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

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

From 949ebb83d3a9166f89f7cb70216ed699fb3f9c5d Mon Sep 17 00:00:00 2001
From: Marcin Puc <tranzystorek.io@protonmail.com>
Date: Mon, 18 Jul 2022 22:25:27 +0200
Subject: [PATCH 1/2] New package: python3-jinja2-time-0.2.0

---
 .../patches/arrow-replace-to-shift.patch      | 19 ++++++++++++++++++
 srcpkgs/python3-jinja2-time/template          | 20 +++++++++++++++++++
 2 files changed, 39 insertions(+)
 create mode 100644 srcpkgs/python3-jinja2-time/patches/arrow-replace-to-shift.patch
 create mode 100644 srcpkgs/python3-jinja2-time/template

diff --git a/srcpkgs/python3-jinja2-time/patches/arrow-replace-to-shift.patch b/srcpkgs/python3-jinja2-time/patches/arrow-replace-to-shift.patch
new file mode 100644
index 000000000000..a95761e56931
--- /dev/null
+++ b/srcpkgs/python3-jinja2-time/patches/arrow-replace-to-shift.patch
@@ -0,0 +1,19 @@
+diff --git a/jinja2_time/jinja2_time.py b/jinja2_time/jinja2_time.py
+index ce713cb..717c8a0 100755
+--- a/jinja2_time/jinja2_time.py
++++ b/jinja2_time/jinja2_time.py
+@@ -19,11 +19,11 @@ class TimeExtension(Extension):
+         d = arrow.now(timezone)
+ 
+         # Parse replace kwargs from offset and include operator
+-        replace_params = {}
++        shift_params = {}
+         for param in offset.split(','):
+             interval, value = param.split('=')
+-            replace_params[interval.strip()] = float(operator + value.strip())
+-        d = d.replace(**replace_params)
++            shift_params[interval.strip()] = float(operator + value.strip())
++        d = d.shift(**shift_params)
+ 
+         if datetime_format is None:
+             datetime_format = self.environment.datetime_format
diff --git a/srcpkgs/python3-jinja2-time/template b/srcpkgs/python3-jinja2-time/template
new file mode 100644
index 000000000000..7abab025fff5
--- /dev/null
+++ b/srcpkgs/python3-jinja2-time/template
@@ -0,0 +1,20 @@
+# Template file for 'python3-jinja2-time'
+pkgname=python3-jinja2-time
+version=0.2.0
+revision=1
+wrksrc="jinja2-time-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+depends="python3-Arrow python3-Jinja2"
+checkdepends="${depends} python3-freezegun python3-pytest"
+short_desc="Jinja2 Extension for Dates and Times"
+maintainer="Marcin Puc <tranzystorek.io@protonmail.com>"
+license="MIT"
+homepage="https://github.com/hackebrot/jinja2-time"
+changelog="https://raw.githubusercontent.com/hackebrot/jinja2-time/main/HISTORY.rst"
+distfiles="${PYPI_SITE}/j/jinja2-time/jinja2-time-${version}.tar.gz"
+checksum=d14eaa4d315e7688daa4969f616f226614350c48730bfa1692d2caebd8c90d40
+
+post_install() {
+	vlicense LICENSE
+}

From 50e9296a0a8fe26b9fe79f90801093998c736768 Mon Sep 17 00:00:00 2001
From: Marcin Puc <tranzystorek.io@protonmail.com>
Date: Tue, 19 Jul 2022 08:47:55 +0200
Subject: [PATCH 2/2] New package: python3-cookiecutter-2.1.1

---
 srcpkgs/python3-cookiecutter/template | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 srcpkgs/python3-cookiecutter/template

diff --git a/srcpkgs/python3-cookiecutter/template b/srcpkgs/python3-cookiecutter/template
new file mode 100644
index 000000000000..00d123e64343
--- /dev/null
+++ b/srcpkgs/python3-cookiecutter/template
@@ -0,0 +1,20 @@
+# Template file for 'python3-cookiecutter'
+pkgname=python3-cookiecutter
+version=2.1.1
+revision=1
+wrksrc="cookiecutter-${version}"
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+depends="python3-binaryornot python3-click python3-Jinja2 python3-jinja2-time python3-requests python3-slugify python3-yaml"
+checkdepends="${depends} git python3-freezegun python3-pytest python3-pytest-cov python3-pytest-mock"
+short_desc="Command-line utility that creates projects from project templates"
+maintainer="Marcin Puc <tranzystorek.io@protonmail.com>"
+license="BSD-3-Clause"
+homepage="https://github.com/cookiecutter/cookiecutter"
+changelog="https://raw.githubusercontent.com/cookiecutter/cookiecutter/master/HISTORY.md"
+distfiles="${PYPI_SITE}/c/cookiecutter/cookiecutter-${version}.tar.gz"
+checksum=f3982be8d9c53dac1261864013fdec7f83afd2e42ede6f6dd069c5e149c540d5
+
+post_install() {
+	vlicense LICENSE
+}

  parent reply	other threads:[~2022-07-29  5:27 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-21 14:19 [PR PATCH] " tranzystorek-io
2022-07-23  7:29 ` [PR PATCH] [Updated] " tranzystorek-io
2022-07-25 15:06 ` [PR REVIEW] " ahesford
2022-07-25 15:08 ` tranzystorek-io
2022-07-25 15:17 ` tranzystorek-io
2022-07-25 15:18 ` ahesford
2022-07-25 15:29 ` tranzystorek-io
2022-07-29  5:27 ` tranzystorek-io [this message]
2022-07-29 11:45 ` ahesford
2022-07-29 11:45 ` [PR PATCH] [Closed]: " ahesford

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=20220729052706.XXoceIXYXB9rTxs3GiTBJoy-SEC9UkNDRxOMjWLVm0s@z \
    --to=tranzystorek-io@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).