Skip to content

Commit

Permalink
Export html in package and use package-relative imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Grazfather committed Jun 30, 2015
1 parent ab60343 commit 56eeb8d
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 13 deletions.
1 change: 1 addition & 0 deletions MANIFEST.in
@@ -0,0 +1 @@
recursive-include introspy/html *
5 changes: 3 additions & 2 deletions introspy/DBAnalyzer.py
@@ -1,6 +1,7 @@
from json import dumps
from IOS_Utils.IOS_SIGNATURES import IOS_SIGNATURES
from DBParser import DBParser

from .DBParser import DBParser
from .IOS_Utils.IOS_SIGNATURES import IOS_SIGNATURES


class DBAnalyzer(DBParser):
Expand Down
8 changes: 4 additions & 4 deletions introspy/DBParser.py
Expand Up @@ -4,10 +4,10 @@
import plistlib
import datetime

from TracedCall import TracedCall
from IOS_Utils.IOS_ENUM_LIST import IOS_ENUM_LIST
from IOS_Utils.APIGroups import APIGroups
from IOS_Utils.Signature import Signature
from .TracedCall import TracedCall
from .IOS_Utils.IOS_ENUM_LIST import IOS_ENUM_LIST
from .IOS_Utils.APIGroups import APIGroups
from .IOS_Utils.Signature import Signature


class DBParser(object):
Expand Down
2 changes: 1 addition & 1 deletion introspy/HTMLReportGenerator.py
Expand Up @@ -12,7 +12,7 @@ class HTMLReportGenerator:
API_GROUPS_FILE_NAME = 'apiGroups.js'

# TODO: merge the two templates and get rid of this
HTML_TEMPLATE_PATH = os.path.abspath('html')
HTML_TEMPLATE_PATH = os.path.join(os.path.dirname(__file__), 'html')
ANDROID_TEMPLATE = 'report-android.html'
IOS_TEMPLATE = 'report-ios.html'
FINAL_TEMPLATE = 'report.html'
Expand Down
7 changes: 4 additions & 3 deletions introspy/__init__.py
Expand Up @@ -11,9 +11,10 @@
import os
from argparse import ArgumentParser

from DBAnalyzer import DBAnalyzer
from HTMLReportGenerator import HTMLReportGenerator
from IOS_Utils.ScpClient import ScpClient
from .DBAnalyzer import DBAnalyzer
from .DBParser import DBParser
from .HTMLReportGenerator import HTMLReportGenerator
from .IOS_Utils.ScpClient import ScpClient


def main(argv=None):
Expand Down
7 changes: 4 additions & 3 deletions setup.py
@@ -1,7 +1,7 @@
#!/usr/bin/env python

import os
from setuptools import setup
from setuptools import setup, find_packages


original_dir = os.getcwd()
Expand All @@ -10,8 +10,9 @@
setup(
name="Introspy-Analyzer",
version=__import__("introspy").__version__,
packages=['introspy'],
package_data={'html': 'html'},
packages=find_packages(),
include_package_data=True,
zip_safe=False,

# metadata for upload to PyPI
author=__import__("introspy").__author__,
Expand Down

0 comments on commit 56eeb8d

Please sign in to comment.