Skip to content

Commit 9f9c3f5

Browse files
drvinceknightmarcharper
authored andcommitted
Fix the long description for new pypi
For the old pypi our project description was automatically read in from `README.rst`. This is no longer the case: https://pypi.org/project/Axelrod/ I believe this fixes it.
1 parent c01e2c6 commit 9f9c3f5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

setup.py

+6
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
if "hypothesis" not in library: # Skip: used only for dev
88
requirements.append(library)
99

10+
# Read in long description
11+
with open("README.rst", "r") as f:
12+
long_description = f.read()
13+
1014
# Read in the version number
1115
exec(open('axelrod/version.py', 'r').read())
1216

@@ -20,6 +24,8 @@
2024
url='http://axelrod.readthedocs.org/',
2125
license='The MIT License (MIT)',
2226
description='Reproduce the Axelrod iterated prisoners dilemma tournament',
27+
long_description=long_description,
28+
long_description_content_type='text/x-rst',
2329
include_package_data=True,
2430
package_data={
2531
'': ['axelrod/data/*.csv'],

0 commit comments

Comments
 (0)