コード例 #1
0
ファイル: setup.py プロジェクト: windli4367/netzob
from setuptools import setup
import sys

package = 'DelimiterSeparatedImporter'
resourcesPath = "../../../../resources/"

sys.path.append(resourcesPath)
from sdist.utils import find_data_files, opj

pluginsStaticResourcesPath = opj(resourcesPath, "static/netzob_plugins/",
                                 package)

dependencies = ['Netzob >= 0.4']
#+----------------------------------------------------------------------------
#| Definition of Netzob for setup
#+----------------------------------------------------------------------------
setup(name="Netzob-DelimiterSeparatedImporter",
      version="1.0.0",
      author="Georges Bossert, Frédéric Guihéry",
      author_email="*****@*****.**",
      packages=[package],
      install_requires=dependencies,
      data_files=find_data_files(opj("share", "netzob", "plugins", package),
                                 pluginsStaticResourcesPath,
                                 '*.glade',
                                 recursive=True),
      entry_points="""
    [netzob.plugins]
    DelimiterSeparatedImporter=DelimiterSeparatedImporter.DelimiterSeparatedImporterPlugin:DelimiterSeparatedImporterPlugin
    """)
コード例 #2
0
ファイル: setup.py プロジェクト: EnjoyHacking/netzob
package = 'OSpyImporter'
resourcesPath = "../../../../resources/"

sys.path.append(resourcesPath)
from sdist.utils import find_data_files, opj

pluginsStaticResourcesPath = opj(resourcesPath, "static/netzob_plugins/", package)

dependencies = ['python-dateutil', 'Netzob >= 0.4']

#+----------------------------------------------------------------------------
#| Definition of Netzob for setup
#+----------------------------------------------------------------------------
setup(
    name="Netzob-OSpyImporter",
    version="1.0.0",
    author="Georges Bossert, Frédéric Guihéry",
    author_email="*****@*****.**",
    packages=[package],
    install_requires=dependencies,
    data_files=find_data_files(opj("share", "netzob", "plugins", package),
                               pluginsStaticResourcesPath,
                               '*.glade',
                               recursive=True),
    entry_points="""
    [netzob.plugins]
    OSpyImporter=OSpyImporter.OSpyImporterPlugin:OSpyImporterPlugin
    """
)