8000 setup.py fixes: ship what we intend to ship · aromanovich/github3.py@e2d3ad3 · GitHub
[go: up one dir, main page]

Skip to content

Commit e2d3ad3

Browse files
committed
setup.py fixes: ship what we intend to ship
- Fix MANIFEST.in entries so files actually get included - Add all tests and test data to MANIFEST.in so they get shipped in the source tarball - Add some more files to MANIFEST.in from the root of the git tree - Drop tests/ from packages and drop package_data so irrelevant files do not get installed into bdists or with setup.py install
1 parent 7301f28 commit e2d3ad3

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

MANIFEST.in

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@ include README.rst
22
include LICENSE
33
include HISTORY.rst
44
include AUTHORS.rst
5+
include CONTRIBUTING.rst
6+
include tox.ini
7+
include report_issue.py
58
prune *.pyc
6-
recursive-include github3/
7-
recursive-include docs/
9+
recursive-include docs *.rst *.py Makefile
10+
recursive-include tests *.py *.json
11+
recursive-include tests/json *
12+
recursive-include images *.png
813
prune docs/_build

setup.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
kwargs['tests_require'] = ['mock == 1.0.1', 'betamax >=0.1.6', 'pytest']
2222
if sys.version_info < (3, 0):
2323
kwargs['tests_require'].append('unittest2==0.5.1')
24-
packages.append('tests')
2524

2625
if sys.argv[-1] in ("submit", "publish"):
2726
os.system("python setup.py bdist_wheel sdist upload")
@@ -66,8 +65,6 @@ def run_tests(self):
6665
author_email="graffatcolmingov@gmail.com",
6766
url="https://github3py.readthedocs.org",
6867
packages=packages,
69-
package_data={'': ['LICENSE', 'AUTHORS.rst']},
70-
include_package_data=True,
7168
install_requires=requires,
7269
classifiers=[
7370
'Development Status :: 5 - Production/Stable',

0 commit comments

Comments
 (0)
0