Skip to content

Commit

Permalink
change module structure + add setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
afshinm committed Aug 3, 2014
1 parent 74990ec commit 006edb7
Show file tree
Hide file tree
Showing 17 changed files with 31 additions and 8 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file added liaar/lib/__init__.py
Empty file.
2 changes: 1 addition & 1 deletion lib/app.py → liaar/lib/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
To retrieve and parse application setting and resources file
'''

from lib import path, parser, exception, logger, setting
from liaar.lib import path, parser, exception, logger, setting
import re
import os

Expand Down
2 changes: 1 addition & 1 deletion lib/bootstrap.py → liaar/lib/bootstrap.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import argparse
from lib import app, path, parser
from liaar.lib import app, path, parser


# to print the tool manual and other messages
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion lib/parser.py → liaar/lib/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import json
from faker import Factory
from lib import exception
from liaar.lib import exception


def load_and_parse(filename):
Expand Down
2 changes: 1 addition & 1 deletion lib/path.py → liaar/lib/path.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
'''

import os
from lib import exception, setting
from liaar.lib import exception, setting


def get_resources_abs_path(app_name):
Expand Down
2 changes: 1 addition & 1 deletion lib/request_handler.py → liaar/lib/request_handler.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'''
Twisted request handlers
'''
from lib import app, parser
from liaar.lib import app, parser
import json


Expand Down
2 changes: 1 addition & 1 deletion lib/route.py → liaar/lib/route.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
To manage twisted routes
'''
import re
from lib import setting
from liaar.lib import setting


# keep routes list
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion lib/twisted_handler.py → liaar/lib/twisted_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from twisted.web.server import Site
from twisted.web.resource import Resource
from twisted.internet import reactor
from lib import route, exception, logger, setting, request_handler
from liaar.lib import route, exception, logger, setting, request_handler
import json


Expand Down
2 changes: 1 addition & 1 deletion lib/url.py → liaar/lib/url.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
To produce URLs for resources, apps, etc.
'''

from lib import setting
from liaar.lib import setting


def app_url(app_setting):
Expand Down
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Twisted==14.0.0
fake-factory==0.4.0
21 changes: 21 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
from distutils.core import setup
import setuptools


setup(
name='Liaar',
version='0.1.0',
packages=['liaar', 'liaar.lib'],
license='LICENSE',
url='https://github.com/usablica/liaar',
description='Create fake REST API in a minute',
long_description=open('README.md').read(),
author='Afshin Mehrabani',
author_email='[email protected]',
install_requires=['Twisted', 'fake-factory'],
entry_points={
'console_scripts': [
'liaar = liaar.liaar:main',
]
}
)

0 comments on commit 006edb7

Please sign in to comment.