Skip to content

Commit e4e4cc2

Browse files
committed
Merge branch 'long_description' from #88
2 parents b9ac2e9 + 6541a22 commit e4e4cc2

File tree

3 files changed

+19
-3
lines changed

3 files changed

+19
-3
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21-
THE SOFTWARE.
21+
THE SOFTWARE.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ EasyPost is the simple shipping API. You can sign up for an account at <https://
77
Requirements
88
------------
99

10-
* [Python](https://www.python.org) 2.6, 2.7, or 3.3+ (or corresponding [PyPy](https://pypy.org) versions).
10+
* [Python](https://www.python.org) 2.7 or 3.3+ (or corresponding [PyPy](https://pypy.org) versions).
1111
* [requests](http://docs.python-requests.org/en/latest/) (if not on Google App Engine)
1212
* [six](https://pythonhosted.org/six/)
1313

setup.py

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import sys
2+
import io
13
try:
24
from setuptools import setup
35
except ImportError:
@@ -13,6 +15,15 @@
1315
version = f.read().strip()
1416

1517

18+
if sys.version_info < (3, 0):
19+
long_description_open = io.open
20+
else:
21+
long_description_open = open
22+
23+
with long_description_open('README.md', encoding='utf-8') as f:
24+
long_description = f.read()
25+
26+
1627
setup(
1728
name='easypost',
1829
version=version,
@@ -24,11 +35,16 @@
2435
package_data={'easypost': ['../VERSION']},
2536
install_requires=install_requires,
2637
test_suite='test',
38+
long_description=long_description,
39+
long_description_content_type='text/markdown',
40+
project_urls={
41+
'CI': 'https://travis-ci.org/EasyPost/easypost-python',
42+
},
43+
python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, <4',
2744
classifiers=[
2845
"Development Status :: 5 - Production/Stable",
2946
"Environment :: Web Environment",
3047
"Programming Language :: Python",
31-
"Programming Language :: Python :: 2.6",
3248
"Programming Language :: Python :: 2.7",
3349
"Programming Language :: Python :: 3.3",
3450
"Programming Language :: Python :: 3.4",

0 commit comments

Comments
 (0)