From 2e28c5d9dd29d9198026d793a9219ba3165803ae Mon Sep 17 00:00:00 2001 From: Andrew <51118083+ArionThinker@users.noreply.github.com> Date: Mon, 4 Mar 2024 21:13:07 +0200 Subject: [PATCH] +github.com/stub42/pytz (#5180) * new file: projects/github.com/stub42/pytz/package.yml * clang * gcc? * add gawk * add rsync * fix Makefile * pip install setuptools wheel * use clang --------- Co-authored-by: Jacob Heider --- projects/github.com/stub42/pytz/package.yml | 34 +++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 projects/github.com/stub42/pytz/package.yml diff --git a/projects/github.com/stub42/pytz/package.yml b/projects/github.com/stub42/pytz/package.yml new file mode 100644 index 00000000..066bb44e --- /dev/null +++ b/projects/github.com/stub42/pytz/package.yml @@ -0,0 +1,34 @@ +distributable: + url: https://github.com/stub42/pytz/archive/release_{{version.raw}}.tar.gz + strip-components: 1 + +versions: + github: stub42/pytz/tags + strip: /^release_/ + +dependencies: + python.org: ~3.12 + +runtime: + env: + PYTHONPATH: ${{prefix}}/lib/python{{deps.python.org.version.marketing}}/site-packages:$PYTHONPATH + +build: + dependencies: + linux: + gnu.org/gawk: '*' # awk has a malloc/free issue with the build script + rsync.samba.org: '*' + script: + - python -m pip install setuptools wheel + # use python3 from $PATH + - sed -i 's|/usr/bin/||g' Makefile + - make dist + - run: python -m pip install --prefix={{prefix}} . + working-directory: src + env: + linux: + CC: clang + +test: + - python -c 'import pytz; print(pytz.__version__)' | grep {{version.raw}} + - python -c 'import pytz; print(pytz.timezone("UTC"))' | grep UTC