File: 0001-Update-setup.py-to-work-with-Python3.patch

package info (click to toggle)
pyocd 0.13.1+dfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 2,112 kB
  • sloc: python: 19,899; xml: 182; ansic: 112; makefile: 65; sh: 47
file content (41 lines) | stat: -rw-r--r-- 1,354 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
From: Neil Williams <neil.williams@linaro.org>
Date: Fri, 16 Nov 2018 10:11:00 +0000
Subject: Update setup.py to work with Python3

Avoid usage of setuptools_scm_git_archive
Drop the long description.

Signed-off-by: Neil Williams <neil.williams@linaro.org>
---
 setup.py | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/setup.py b/setup.py
index 14e4192..688a7d6 100644
--- a/setup.py
+++ b/setup.py
@@ -19,17 +19,17 @@ from setuptools import setup, find_packages
 
 setup(
     name="pyocd",
-    use_scm_version={
-        'local_scheme': 'dirty-tag',
-        'write_to': 'pyocd/_version.py'
-    },
+#    use_scm_version={
+#        'local_scheme': 'dirty-tag',
+#        'write_to': 'pyocd/_version.py'
+#    },
     setup_requires=[
         'setuptools_scm!=1.5.3,!=1.5.4',
-        'setuptools_scm_git_archive',
+#        'setuptools_scm_git_archive',
         ],
     description="Cortex-M debugger for Python",
-    long_description=open('README.md', 'r').read(),
-    long_description_content_type='text/markdown',
+#    long_description=open('README.md', 'rb').read(),
+#    long_description_content_type='text/markdown',
     author="Chris Reed, Martin Kojtal, Russ Butler",
     author_email="chris.reed@arm.com, martin.kojtal@arm.com, russ.butler@arm.com",
     url='https://github.com/mbedmicro/pyOCD',