File: fix-version.patch

package info (click to toggle)
python-gffutils 0.13-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,164 kB
  • sloc: python: 5,557; makefile: 57; sh: 13
file content (14 lines) | stat: -rw-r--r-- 559 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Description: Fixup faulty version parsing in setup.py
Author: Nilesh Patra <nilesh@debian.org>
Last-Update: 2023-11-05
--- a/setup.py
+++ b/setup.py
@@ -4,7 +4,7 @@
 from setuptools import setup
 
 version_py = os.path.join(os.path.dirname(__file__), 'gffutils', 'version.py')
-version = open(version_py).read().strip().split('=')[-1].replace('"', '')
+version = open(version_py).read().strip().split('=')[-1].replace('"', '').strip()
 requirements = open(os.path.join(os.path.dirname(__file__), 'requirements.txt')).readlines()
 setup(
     name='gffutils',