Skip to content

Commit

Permalink
packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
mahmoud committed Mar 23, 2013
1 parent 07d9507 commit 7e845d2
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 7 deletions.
51 changes: 51 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
"""
Wapiti
~~~~~~
Wapiti is a Wikipedia API client focused on providing a consistent
and performant abstraction around the widely varying Mediawiki API
endpoints and data models. Read-only APIs are first priority, but
write operations are on the way. See `the Github project
<https://github.com/mahmoud/wapiti>`_ for more info.
:copyright: (c) 2013 by Mahmoud Hashemi and Stephen LaPorte
:license: BSD, see LICENSE for more details.
"""

import sys
from setuptools import setup


__author__ = 'Mahmoud Hashemi'
__version__ = '0.1'
__contact__ = 'mahmoudrhashemi@gmail.com'
__url__ = 'https://github.com/mahmoud/wapiti'
__license__ = 'BSD'


if sys.version_info >= (3,):
raise NotImplementedError("wapiti Python 3 support en route to your location")


setup(name='wapiti',
version=__version__,
description="A Wikipedia API client for humans and elk.",
long_description=__doc__,
author=__author__,
author_email=__contact__,
url=__url__,
packages=['wapiti', 'wapiti.operations'],
include_package_data=True,
zip_safe=False,
license=__license__,
platforms='any',
classifiers=[
'Intended Audience :: Developers',
'Topic :: Software Development :: Libraries',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Education',
'Development Status :: 3 - Alpha']
)
13 changes: 8 additions & 5 deletions wapiti/operations/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,18 @@
from base import WapitiException, DEFAULT_API_URL, OperationMeta
from models import PageIdentifier, CategoryInfo, RevisionInfo

import category
import feedback
import files
import links
import meta
import misc
import protection
import rand
import revisions
import category
import templates
import user
import protection
import misc
import files
import feedback


for op in OperationMeta._all_ops:
globals()[op.__name__] = op
Expand Down
4 changes: 2 additions & 2 deletions wapiti/wapiti.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
'''
import re
from functools import partial

import operations
from operations import ALL_OPERATIONS, DEFAULT_API_URL


Expand Down Expand Up @@ -69,8 +71,6 @@ def __init__(self,
self.api_url = api_url or DEFAULT_API_URL
self.is_bot = is_bot

import pdb;pdb.set_trace()

self._create_ops()
if init_source:
self._init_source()
Expand Down

0 comments on commit 7e845d2

Please sign in to comment.