depot/third_party/nixpkgs/pkgs/development/python-modules/tifffile/python2-regex-compat.patch
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

23 lines
837 B
Diff

--- a/setup.py 2019-02-20 18:52:12.000000000 +0100
+++ b/setup.py 2019-03-02 13:55:39.014019260 +0100
@@ -20,12 +20,6 @@
description = re.search(r'"""(.*)\.(?:\r\n|\r|\n)', code).groups()[0]
-readme = re.search(r'(?:\r\n|\r|\n){2}"""(.*)"""(?:\r\n|\r|\n){2}from', code,
- re.MULTILINE | re.DOTALL).groups()[0]
-
-readme = '\n'.join([description, '=' * len(description)]
- + readme.splitlines()[1:])
-
license = re.search(r'(# Copyright.*?(?:\r\n|\r|\n))(?:\r\n|\r|\n)+""', code,
re.MULTILINE | re.DOTALL).groups()[0]
@@ -41,7 +35,6 @@
name='tifffile',
version=version,
description=description,
- long_description=readme,
author='Christoph Gohlke',
author_email='cgohlke@uci.edu',
url='https://www.lfd.uci.edu/~gohlke/',