Commit 693abfbf authored by Amir MOHAMMADI's avatar Amir MOHAMMADI
Browse files

Add a patch for unicode issues

parent d5208eb8
Pipeline #11785 passed with stage
in 19 minutes and 55 seconds
From 0c59f890d0a3e7e083e3a8cce9c1462b872fe1d1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Sebastian=20B=C3=B6ck?= <sebastian.boeck@jku.at>
Date: Thu, 1 Jun 2017 14:30:39 +0200
Subject: [PATCH] fix UTF-8 encoding issue
closes #290
---
setup.py | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/setup.py b/setup.py
index cbccfe8..9922686 100644
--- a/setup.py
+++ b/setup.py
@@ -65,8 +65,12 @@ requirements = ['numpy>=1.8.1',
]
# docs to be included
-long_description = open('README.rst').read()
-long_description += '\n' + open('CHANGES.rst').read()
+try:
+ long_description = open('README.rst', encoding='utf-8').read()
+ long_description += '\n' + open('CHANGES.rst', encoding='utf-8').read()
+except TypeError:
+ long_description = open('README.rst').read()
+ long_description += '\n' + open('CHANGES.rst').read()
# the actual setup routine
setup(name='madmom',
--
2.14.1
......@@ -11,6 +11,8 @@ source:
fn: '{{ name }}-{{ version }}.tar.gz'
url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz
'{{ hash_type }}': '{{ hash_value }}'
patches:
- 0001-fix-UTF-8-encoding-issue.patch # this patch is already in master.
build:
number: 0
......@@ -47,8 +49,8 @@ about:
license_file: ''
summary: Python audio signal processing library
description: "Madmom is an audio signal processing library written in Python with a strong focus on music information retrieval (MIR) tasks."
doc_url: ''
dev_url: ''
doc_url: 'https://madmom.readthedocs.io/'
dev_url: 'https://github.com/CPJKU/madmom'
extra:
recipe-maintainers: amohammadi
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment