Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita12e884

Browse files
committed
Start work towards including the tests in the dist
1 parentebb2fc8 commita12e884

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
returnself._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__importabsolute_import
22

33
from .importPySO8601
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
importmock
1515
exceptImportErrorasie:
1616
print('Please install the test dependencies as documented in the README')
17-
raiseie
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
importos
55
importre
66

7+
kwargs= {}
8+
requires= []
9+
packages= [
10+
"github3",
11+
"github3.packages",
12+
"github3.packages.PySO8601",
13+
]
14+
715
try:
816
fromsetuptoolsimportsetup
17+
kwargs['test_suite']='run_tests.main'
18+
requires= ['mock','expecter','coverage==3.5.2']
19+
packages.append('tests')
920
exceptImportError:
1021
fromdistutils.coreimportsetup# NOQA
1122

1223
ifsys.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
withopen('github3/__init__.py','r')asfd:
@@ -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)

[8]ページ先頭

©2009-2025 Movatter.jp