Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to 1.4.1 #4

Merged
merged 2 commits into from
Oct 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,25 @@
{% set name = "partd" %}
{% set version = "1.4.0" %}
{% set version = "1.4.1" %}

package:
name: {{ name|lower }}
version: {{ version }}

source:
url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/partd-{{ version }}.tar.gz
sha256: aa0ff35dbbcc807ae374db56332f4c1b39b46f67bf2975f5151e0b4186aed0d5
sha256: 56c25dd49e6fea5727e731203c466c6e092f308d8f0024e199d02f6aa2167f67
patches: # [py==312]
- patches/0000-3.12-compat.patch # [py==312]

build:
number: 0
skip: true # [py<37]
script: {{ PYTHON }} -m pip install --no-deps --ignore-installed --no-build-isolation . -vv

requirements:
build:
- patch # [unix and py==312]
- m2-patch # [win and py==312]
host:
- python
- pip
Expand Down
29 changes: 29 additions & 0 deletions recipe/patches/0000-3.12-compat.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
From c96a034367cb9fee0a0900f758b802aeef8a8a41 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Hrn=C4=8Diar?= <[email protected]>
Date: Wed, 12 Jul 2023 14:52:39 +0200
Subject: [PATCH] Update versioneer.py to make the package compatible with
Python 3.12

Fixes: #68

(Untested on other Python versions than 3.12)
---
versioneer.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/versioneer.py b/versioneer.py
index 9882041..5b48f79 100644
--- a/versioneer.py
+++ b/versioneer.py
@@ -339,9 +339,9 @@ def get_config_from_root(root):
# configparser.NoOptionError (if it lacks "VCS="). See the docstring at
# the top of versioneer.py for instructions on writing your setup.cfg .
setup_cfg = os.path.join(root, "setup.cfg")
- parser = configparser.SafeConfigParser()
+ parser = configparser.RawConfigParser()
with open(setup_cfg, "r") as f:
- parser.readfp(f)
+ parser.read_file(f)
VCS = parser.get("versioneer", "VCS") # mandatory

def get(parser, name):