Skip to content

Commit 29eff24

Browse files
committed
Include CHANGES and test files in source distribution
1 parent 56f3048 commit 29eff24

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

CHANGES.md

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
(next version)
44

5+
### Version 0.1.10 (2017-08-15)
6+
7+
* Include CHANGES and test files in source distribution
8+
59
### Version 0.1.9 (2017-08-12)
610

711
* Print help when input_file is not specified on command-line

MANIFEST.in

+5
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
11
include README.md
22
include LICENSE
3+
include CHANGES.md
4+
5+
recursive-include tests *.py test.md test.rst
6+
recursive-exclude * __pycache__
7+
recursive-exclude * *.py[co]

setup.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/usr/bin/env python
22
# -*- coding: utf-8 -*-
33

4+
import sys
45
from os import path
56

67
try:
@@ -17,6 +18,9 @@
1718
readme = f.read()
1819

1920
install_requires = ['mistune', 'docutils']
21+
test_requirements = ['pygments']
22+
if sys.version_info < (3, 3):
23+
test_requirements.append('mock')
2024

2125
setup(
2226
name='m2r',
@@ -27,7 +31,6 @@
2731
author_email='[email protected]',
2832
url='https://github.com/miyakogi/m2r',
2933
py_modules=['m2r'],
30-
packages=['tests'],
3134
entry_points={'console_scripts': 'm2r = m2r:main'},
3235
include_package_data=True,
3336
license="MIT",
@@ -48,4 +51,7 @@
4851
'Topic :: Text Processing',
4952
],
5053
install_requires=install_requires,
54+
test_suite='tests',
55+
tests_require=test_requirements,
56+
5157
)

0 commit comments

Comments
 (0)