8000 Start work towards including the tests in the dist · sigmavirus24/github3.py@a12e884 · GitHub
[go: up one dir, main page]

Skip to content

Commit a12e884

Browse files
committed
Start work towards including the tests in the dist
1 parent ebb2fc8 commit a12e884

File tree

6 files changed

+21
-12
lines changed

6 files changed

+21
-12
lines changed

MANIFEST.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
include README.rst LICENSE HISTORY.rst AUTHORS.rst
1+
include README.rst LICENSE HISTORY.rst AUTHORS.rst run_tests.py

github3/issues.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,8 +344,8 @@ def remove_label(self, name):
344344
:returns: bool
345345
"""
346346
url = self._build_url('labels', name, base_url=self._api)
347-
# Docs say it should be a list of strings returned, practice says it
348-
# is just a 204/404 response. I'm tenatively changing this until I
347+
# Docs say it should be a list of strings returned, practice says it
348+
# is just a 204/404 response. I'm tenatively changing this until I
349349
# hear back from Support.
350350
return self._boolean(self._delete(url), 204, 404)
351351

github3/packages/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
from __future__ import absolute_import
22

33
from . import PySO8601
4+
5+
# flake8: noqa

github3/structs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ def __init__(self, count, url, cls, session, params=None, etag=None):
1414
self.cls = cls
1515
#: Parameters of the query string
1616
self.params = params
17-
# We do not set this from the parameter sent. We want this to
17+
# We do not set this from the parameter sent. We want this to
1818
# represent the ETag header returned by GitHub no matter what.
19-
# If this is not None, then it won't be set from the response and
19+
# If this is not None, then it won't be set from the response and
2020
# that's not what we want.
2121
#: The ETag Header value returned by GitHub
2222
self.etag = None

run_tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
import mock
1515
except ImportError as ie:
1616
print('Please install the test dependencies as documented in the README')
17-
raise ie
17+
raise
1818

1919
TEST_DIR = 'tests'
2020

setup.py

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,27 @@
44
import os
55
import re
66

7+
kwargs = {}
8+
requires = []
9+
packages = [
10+
"github3",
11+
"github3.packages",
12+
"github3.packages.PySO8601",
13+
]
14+
715
try:
816
from setuptools import setup
17+
kwargs['test_suite'] = 'run_tests.main'
18+
requires = ['mock', 'expecter', 'coverage==3.5.2']
19+
packages.append('tests')
920
except ImportError:
1021
from distutils.core import setup # NOQA
1122

1223
if sys.argv[-1] in ("submit", "publish"):
1324
os.system("python setup.py sdist upload")
1425
sys.exit()
1526

16-
packages = [
17-
"github3",
18-
"github3.packages",
19-
"github3.packages.PySO8601",
20-
]
21-
requires = ["requests==1.1.0"]
27+
requires.append("requests==1.1.0")
2228

2329
__version__ = ''
2430
with open('github3/__init__.py', 'r') as fd:
@@ -60,4 +66,5 @@
6066
'Programming Language :: Python :: 3.3',
6167
'Programming Language :: Python :: Implementation :: CPython',
6268
],
69+
**kwargs
6370
)

0 commit comments

Comments
 (0)
0