You've already forked macports-ports
mirror of
https://github.com/encounter/macports-ports.git
synced 2026-03-30 11:29:27 -07:00
30 lines
1.0 KiB
Diff
30 lines
1.0 KiB
Diff
From ccf20e32614e3124278bbc9aabeb77866d63e167 Mon Sep 17 00:00:00 2001
|
|
From: Christopher Toth <q.alpha@gmail.com>
|
|
Date: Fri, 12 Jun 2020 22:06:27 -0600
|
|
Subject: [PATCH] Fix to setup.py to work on Python 2 and 3
|
|
|
|
---
|
|
setup.py | 3 ++-
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
diff --git setup.py setup.py
|
|
index 3742f24..cc46495 100755
|
|
--- setup.py
|
|
+++ setup.py
|
|
@@ -1,5 +1,6 @@
|
|
#!/usr/bin/env python
|
|
|
|
+import io
|
|
import os
|
|
import sys
|
|
|
|
@@ -30,7 +31,7 @@
|
|
url='https://github.com/ryanmcgrath/twython/tree/master',
|
|
keywords='twitter search api tweet twython stream',
|
|
description='Actively maintained, pure Python wrapper for the Twitter API. Supports both normal and streaming Twitter APIs',
|
|
- long_description=open('README.md', encoding='utf-8').read() + '\n\n' +open('HISTORY.md', encoding='utf-8').read(),
|
|
+ long_description=io.open('README.md', encoding='utf-8').read() + '\n\n' +io.open('HISTORY.md', encoding='utf-8').read(),
|
|
long_description_content_type='text/markdown',
|
|
include_package_data=True,
|
|
packages=packages,
|