10000 Satisfy pep8 1.6.1 · charbu01/github3.py@3344ea2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3344ea2

Browse files
committed
Satisfy pep8 1.6.1
1 parent c546170 commit 3344ea2

File tree

3 files changed

+26
-8
lines changed

3 files changed

+26
-8
lines changed

github3/__about__.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
"""The module that holds much of the metadata about github3.py."""
2+
__package_name__ = 'github3.py'
3+
__title__ = 'github3'
4+
__author__ = 'Ian Cordasco'
5+
__author_email__ = 'graffatcolmingov@gmail.com'
6+
__license__ = 'Modified BSD'
7+
__copyright__ = 'Copyright 2012-2014 Ian Cordasco'
8+
__version__ = '1.0.0a1'
9+
__version_info__ = tuple(int(i) for i in __version__.split('.') if i.isdigit())
10+
__url__ = 'https://github3py.readthedocs.org'
11+
12+
__all__ = (
13+
'__package_name__', '__title__', '__author__', '__author_email__',
14+
'__license__', '__copyright__', '__version__', '__version_info__',
15+
'__url__',
16+
)

github3/__init__.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,11 @@
1010
1111
"""
1212

13-
__title__ = 'github3'
14-
__author__ = 'Ian Cordasco'
15-
__license__ = 'Modified BSD'
16-
__copyright__ = 'Copyright 2012-2014 Ian Cordasco'
17-
__version__ = '1.0.0a1'
18-
__version_info__ = tuple(int(i) for i in __version__.split('.') if i.isdigit())
19-
13+
from .__about__ import (
14+
__package_name__, __title__, __author__, __author_email__,
15+
__license__, __copyright__, __version__, __version_info__,
16+
__url__,
17+
)
2018
from .api import (
2119
authorize, login, enterprise_login, emojis, gist, gitignore_template,
2220
create_gist, issue, markdown, octocat, organization, pull_request,
@@ -45,4 +43,8 @@
4543
'repositories_by', 'starred_by', 'subscriptions_for', 'rate_limit',
4644
'repository', 'search_code', 'search_repositories', 'search_users',
4745
'user', 'zen',
46+
# Metadata attributes
47+
'__package_name__', '__title__', '__author__', '__author_email__',
48+
'__license__', '__copyright__', '__version__', '__version_info__',
49+
'__url__',
4850
)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
requires.extend(["requests >= 2.0", "uritemplate.py >= 0.2.0"])
3333

3434
__version__ = ''
35-
with open('github3/__init__.py', 'r') as fd:
35+
with open('github3/__about__.py', 'r') as fd:
3636
reg = re.compile(r'__version__ = [\'"]([^\'"]*)[\'"]')
3737
for line in fd:
3838
m = reg.match(line)

0 commit comments

Comments
 (0)
0