From 1c1480361506c85384a92f490088bac045463e53 Mon Sep 17 00:00:00 2001 From: Andrew <51118083+ArionThinker@users.noreply.github.com> Date: Thu, 15 Feb 2024 18:24:55 +0200 Subject: [PATCH] +certifi.io/python-certifi (#5210) * new file: projects/certifi.io/python-certifi/package.yml * ~3.11 & remove symlinking * change python libs path in test --- .../certifi.io/python-certifi/package.yml | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 projects/certifi.io/python-certifi/package.yml diff --git a/projects/certifi.io/python-certifi/package.yml b/projects/certifi.io/python-certifi/package.yml new file mode 100644 index 00000000..2cfeeacd --- /dev/null +++ b/projects/certifi.io/python-certifi/package.yml @@ -0,0 +1,30 @@ +distributable: ~ + +versions: + url: https://pypi.org/rss/project/certifi/releases.xml + match: /\d+\.\d+\.\d+<\/title>/ + strip: + - /^<title>/ + - /<\/title>$/ + +dependencies: + python.org: ~3.11 + +runtime: + env: + PYTHONPATH: ${{prefix}}/lib/python{{deps.python.org.version.marketing}}/site-packages:$PYTHONPATH + +build: + dependencies: + curl.se: '*' + script: + - curl -L 'https://pypi.org/project/certifi/{{version.raw}}/#files' > page.html + - cat page.html | grep -o 'https://files.pythonhosted.org/packages/[^"]*certifi-{{version.raw}}.tar.gz' > url.txt + - curl -L $(cat url.txt) | tar -xz --strip-components=1 + - python -m pip install --prefix={{prefix}} . + +test: + - python -c 'import certifi;' + - python -m certifi | grep '{{prefix}}/lib/python{{deps.python.org.version.marketing}}/site-packages/certifi/cacert.pem' + - python -m certifi -h | grep 'usage' +