Needed for https://build.opensuse.org/package/show/home:jayvdb:py-new/python-pkgbuilder p.s. would be nice to get some help with https://build.opensuse.org/request/show/738133 and https://build.opensuse.org/request/show/695108 (six months old; needed for improving python-stdeb) OBS-URL: https://build.opensuse.org/request/show/738137 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-srcinfo?expand=0&rev=1
24 lines
806 B
Diff
24 lines
806 B
Diff
From 5f0bec161836dc7d0726b3fe5ed5f9442acb46fd Mon Sep 17 00:00:00 2001
|
|
From: John Vandenberg <jayvdb@gmail.com>
|
|
Date: Sun, 13 Oct 2019 13:33:08 +0700
|
|
Subject: [PATCH] Add Python 2.7 compatibility
|
|
|
|
Index: python-srcinfo-0.0.8/setup.py
|
|
===================================================================
|
|
--- python-srcinfo-0.0.8.orig/setup.py
|
|
+++ python-srcinfo-0.0.8/setup.py
|
|
@@ -1,3 +1,4 @@
|
|
+# -*- coding: utf-8 -*-
|
|
import os
|
|
from setuptools import setup
|
|
|
|
Index: python-srcinfo-0.0.8/srcinfo/parse.py
|
|
===================================================================
|
|
--- python-srcinfo-0.0.8.orig/srcinfo/parse.py
|
|
+++ python-srcinfo-0.0.8/srcinfo/parse.py
|
|
@@ -1,3 +1,4 @@
|
|
+from __future__ import absolute_import
|
|
from parse import parse
|
|
|
|
arrays = ['pkgname', 'arch', 'license', 'groups', 'options',
|