aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Medina <davidmedina9@gmail.com>2012-02-06 20:19:42 +0100
committerDavid Medina <davidmedina9@gmail.com>2012-02-06 20:19:42 +0100
commit29d7c5641ce8a4099e23f50e965f1c483e993f39 (patch)
tree17c3e03c153beea88f213e3ae2fde80d4a67a473
parentUser service complete (diff)
downloadpython-github3-29d7c5641ce8a4099e23f50e965f1c483e993f39.tar.xz
python-github3-29d7c5641ce8a4099e23f50e965f1c483e993f39.zip
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
Diffstat (limited to '')
-rw-r--r--README.rst1
-rw-r--r--pygithub3/__init__.py1
-rw-r--r--pygithub3/core/ghrequests/users/__init__.py4
-rw-r--r--pygithub3/requests/__init__.py (renamed from pygithub3/core/ghrequests/__init__.py)2
-rw-r--r--pygithub3/requests/users/__init__.py4
-rw-r--r--pygithub3/requests/users/emails.py (renamed from pygithub3/core/ghrequests/users/emails.py)0
-rw-r--r--pygithub3/requests/users/followers.py (renamed from pygithub3/core/ghrequests/users/followers.py)0
-rw-r--r--pygithub3/requests/users/keys.py (renamed from pygithub3/core/ghrequests/users/keys.py)0
-rw-r--r--pygithub3/requests/users/user.py (renamed from pygithub3/core/ghrequests/users/user.py)0
-rw-r--r--pygithub3/services/base.py2
-rw-r--r--setup.py9
11 files changed, 12 insertions, 11 deletions
diff --git a/README.rst b/README.rst
index 9d04b14..3bfc986 100644
--- a/README.rst
+++ b/README.rst
@@ -12,7 +12,6 @@ TODO (in order as far as possible)
- Tests
- Doc (Sphinx?)
- Continue developing services (it must be now easy and fast)
-- Upload pypi ;)
- ...
Install
diff --git a/pygithub3/__init__.py b/pygithub3/__init__.py
index 7c48d06..3d68157 100644
--- a/pygithub3/__init__.py
+++ b/pygithub3/__init__.py
@@ -4,5 +4,6 @@
__title__ = 'pygithub3'
__version__ = '0.1'
__author__ = 'David Medina'
+__email__= 'davidmedina9@gmail.com'
__license__ = 'ISC'
__copyright__ = 'Copyright 2012 David Medina'
diff --git a/pygithub3/core/ghrequests/users/__init__.py b/pygithub3/core/ghrequests/users/__init__.py
deleted file mode 100644
index c9ef5b5..0000000
--- a/pygithub3/core/ghrequests/users/__init__.py
+++ /dev/null
@@ -1,4 +0,0 @@
-# -*- encoding: utf-8 -*-
-
-from pygithub3.core.ghrequests import Request, json, RequestValidationError
-from user import *
diff --git a/pygithub3/core/ghrequests/__init__.py b/pygithub3/requests/__init__.py
index c461bec..725ea12 100644
--- a/pygithub3/core/ghrequests/__init__.py
+++ b/pygithub3/requests/__init__.py
@@ -8,7 +8,7 @@ try:
except ImportError:
import json
-ABS_IMPORT_PREFIX = 'pygithub3.core.ghrequests'
+ABS_IMPORT_PREFIX = 'pygithub3.requests'
class RequestNotFound(Exception):
diff --git a/pygithub3/requests/users/__init__.py b/pygithub3/requests/users/__init__.py
new file mode 100644
index 0000000..93ab7b6
--- /dev/null
+++ b/pygithub3/requests/users/__init__.py
@@ -0,0 +1,4 @@
+# -*- encoding: utf-8 -*-
+
+from pygithub3.requests import Request, json, RequestValidationError
+from user import *
diff --git a/pygithub3/core/ghrequests/users/emails.py b/pygithub3/requests/users/emails.py
index f7fb284..f7fb284 100644
--- a/pygithub3/core/ghrequests/users/emails.py
+++ b/pygithub3/requests/users/emails.py
diff --git a/pygithub3/core/ghrequests/users/followers.py b/pygithub3/requests/users/followers.py
index f2bfc1a..f2bfc1a 100644
--- a/pygithub3/core/ghrequests/users/followers.py
+++ b/pygithub3/requests/users/followers.py
diff --git a/pygithub3/core/ghrequests/users/keys.py b/pygithub3/requests/users/keys.py
index f5bb386..f5bb386 100644
--- a/pygithub3/core/ghrequests/users/keys.py
+++ b/pygithub3/requests/users/keys.py
diff --git a/pygithub3/core/ghrequests/users/user.py b/pygithub3/requests/users/user.py
index d4b3667..d4b3667 100644
--- a/pygithub3/core/ghrequests/users/user.py
+++ b/pygithub3/requests/users/user.py
diff --git a/pygithub3/services/base.py b/pygithub3/services/base.py
index f124e42..960912a 100644
--- a/pygithub3/services/base.py
+++ b/pygithub3/services/base.py
@@ -3,7 +3,7 @@
from pygithub3.core.client import Client
from pygithub3.core.result import Result
-from pygithub3.core.ghrequests import Factory
+from pygithub3.requests import Factory
from pygithub3.core.errors import NotFound
diff --git a/setup.py b/setup.py
index c12d758..4b125b2 100644
--- a/setup.py
+++ b/setup.py
@@ -5,16 +5,17 @@ from setuptools import setup, find_packages
import pygithub3
setup(
- name='python-github3',
+ name=pygithub3.__name__,
version=pygithub3.__version__,
- author='David Medina',
- author_email='davidmedina9@gmail.com',
+ author=pygithub3.__author__,
+ author_email=pygithub3.__email__,
url='https://github.com/copitux/python-github3',
description='Python wrapper for the github v3 api',
long_description=open('README.rst').read(),
license='ISC',
- packages=find_packages(),
+ packages=find_packages(exclude=['*tests*']),
install_requires=map(str.strip, open('requirements.txt')),
+ include_package_data = True,
package_data={'': ['README.rst', 'AUTHORS.rst', 'LICENSE']},
classifiers=(
'Programming Language :: Python',