Skip to content

Commit ab62c14

Browse files
committed
populate some more setup fields to get a prettier pypi page
1 parent d5501b5 commit ab62c14

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

LICENSE

+1-1
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.

setup.py

+17-1
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)