Skip to content

Commit 29d7c56

Browse files
committed
Rename ghrequest to requests
I think it's a redundant name. Only needs to move out from core module to avoid imports problems with `requests` library * Also change some in setup.py
1 parent 5cc1ce1 commit 29d7c56

File tree

11 files changed

+12
-11
lines changed

11 files changed

+12
-11
lines changed

README.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ TODO (in order as far as possible)
1212
- Tests
1313
- Doc (Sphinx?)
1414
- Continue developing services (it must be now easy and fast)
15-
- Upload pypi ;)
1615
- ...
1716

1817
Install

pygithub3/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44
__title__ = 'pygithub3'
55
__version__ = '0.1'
66
__author__ = 'David Medina'
7+
__email__= 'davidmedina9@gmail.com'
78
__license__ = 'ISC'
89
__copyright__ = 'Copyright 2012 David Medina'

pygithub3/core/ghrequests/users/__init__.py

Lines changed: 0 additions & 4 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
except ImportError:
99
import json
1010

11-
ABS_IMPORT_PREFIX = 'pygithub3.core.ghrequests'
11+
ABS_IMPORT_PREFIX = 'pygithub3.requests'
1212

1313

1414
class RequestNotFound(Exception):
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# -*- encoding: utf-8 -*-
2+
3+
from pygithub3.requests import Request, json, RequestValidationError
4+
from user import *
File renamed without changes.

pygithub3/services/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
from pygithub3.core.client import Client
55
from pygithub3.core.result import Result
6-
from pygithub3.core.ghrequests import Factory
6+
from pygithub3.requests import Factory
77
from pygithub3.core.errors import NotFound
88

99

0 commit comments

Comments
 (0)