Skip to content
This repository was archived by the owner on Nov 8, 2020. It is now read-only.

Commit 04bd350

Browse files
committed
Packaging improvements
- Add a detailed description that will appear on the PyPI project page. - Add python_requires, which helps pip determine compatibility when installing the package (it doesn't use pypi classifiers)
1 parent e901b97 commit 04bd350

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

setup.py

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1+
#!/usr/bin/env python
12
# -*- coding: utf-8 -*-
23
import sys
4+
35
from setuptools import setup, find_packages
46

7+
58
classifiers = [
69
"Development Status :: 4 - Beta",
710
"Environment :: Console",
@@ -25,20 +28,25 @@
2528
"Topic :: Text Processing :: Markup",
2629
"Topic :: Utilities",
2730
]
28-
description = 'testing utility classes and functions for Sphinx extensions'
2931

3032
test_require = []
3133
if sys.version_info < (2, 7):
3234
test_require.append('unittest2')
33-
3435
if sys.version_info < (3, 3):
3536
test_require.append('mock')
3637

38+
with open('README.rst') as readme:
39+
long_description = readme.read()
40+
long_description += '\n\n'
41+
with open('CHANGES.rst') as changes:
42+
long_description += changes.read()
43+
44+
3745
setup(
3846
name='sphinx-testing',
3947
version='1.0.1',
40-
description=description,
41-
long_description=description,
48+
description='Testing utility classes and functions for Sphinx extensions',
49+
long_description=long_description,
4250
classifiers=classifiers,
4351
keywords=['sphinx', 'testing'],
4452
author='Takeshi Komiya',
@@ -52,4 +60,5 @@
5260
'six',
5361
],
5462
tests_require=test_require,
63+
python_requires='>=2.6,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*',
5564
)

0 commit comments

Comments
 (0)