当前位置: 首页>>代码示例>>Python>>正文


Python setuptools.find_packages函数代码示例

本文整理汇总了Python中setuptools.find_packages函数的典型用法代码示例。如果您正苦于以下问题:Python find_packages函数的具体用法?Python find_packages怎么用?Python find_packages使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了find_packages函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: main

def main():
    assert (sys.version_info[0] >= 3 and sys.version_info[1] >= 4), \
        "Python version >= 3.4 required, got %r" % (sys.version_info,)

    version = get_version_string()

    setuptools.setup(
        name='python-base',
        version=version,
        packages=setuptools.find_packages(SRC_PATH),
        namespace_packages=setuptools.find_packages(SRC_PATH),
        package_dir={
            '': SRC_PATH,
        },
        scripts=sorted(list_scripts()),
        package_data={
            "base": ["VERSION"],
        },
        test_suite=TEST_PATH,
        cmdclass={'test': TestWithDiscovery},

        # metadata for upload to PyPI
        author="WibiData engineers",
        author_email="[email protected]",
        description='General purpose library for Python.',
        license='Apache License 2.0',
        keywords='python base flags tools workflow',
        url="http://wibidata.com",
    )
开发者ID:davnoe,项目名称:kiji,代码行数:29,代码来源:setup.py

示例2: include_in

 def include_in(self, dist):
     # Called when master is enabled (default, or --with-master)
     dist.metadata.name = 'Bitten'
     dist.metadata.description = 'Continuous integration for Trac'
     dist.long_description = "A Trac plugin for collecting software " \
                             "metrics via continuous integration."""
     # Use full manifest when master is included
     egg_info.manifest_maker.template = "MANIFEST.in"
     # Include tests in source distribution
     if 'sdist' in dist.commands:
         dist.packages = find_packages()
     else:
         dist.packages = find_packages(exclude=['*tests*'])
     dist.test_suite = 'bitten.tests.suite'
     dist.package_data = {
           'bitten': ['htdocs/*.*',
                 'templates/*.html',
                 'templates/*.txt']}
     dist.entry_points['trac.plugins'] = [
                 'bitten.admin = bitten.admin',
                 'bitten.main = bitten.main',
                 'bitten.master = bitten.master',
                 'bitten.web_ui = bitten.web_ui',
                 'bitten.testing = bitten.report.testing',
                 'bitten.coverage = bitten.report.coverage',
                 'bitten.lint = bitten.report.lint',
                 'bitten.notify = bitten.notify',
                 'bitten.xmlrpc = bitten.xmlrpc']
开发者ID:hefloryd,项目名称:bitten,代码行数:28,代码来源:setup.py

示例3: find_packages_v2

def find_packages_v2(base_dir, namespace_packages=None):
    result = find_packages(base_dir)
    for np in (namespace_packages or []):
        result.append(np)
        result.extend(np + '.' + p for p in find_packages(os.path.join(base_dir, np.replace('.', os.path.sep))))

    return result
开发者ID:goc9000,项目名称:baon,代码行数:7,代码来源:setup.py

示例4: include_in

 def include_in(self, dist):
     # Called when master is enabled (default, or --with-master)
     dist.metadata.name = 'iTest'
     dist.metadata.description = 'Continuous integration for Spreadtrum'
     dist.long_description = "A Trac plugin for collecting software " \
                             "metrics via continuous integration."""
     # Use full manifest when master is included
     egg_info.manifest_maker.template = "MANIFEST.in"
     # Include tests in source distribution
     if 'sdist' in dist.commands:
         dist.packages = find_packages()
     else:
         dist.packages = find_packages(exclude=['*tests*'])
     dist.test_suite = 'iTest.tests.suite'
     dist.package_data = {
           'iTest': ['htdocs/*.*',
                 'htdocs/charts_library/*.swf',
                 'templates/*.html',
                 'templates/*.txt']}
     dist.entry_points['trac.plugins'] = [
                 'iTest.admin = iTest.admin',
                 'iTest.main = iTest.main',
                 #'iTest.master = iTest.master',
                 'iTest.web_ui = iTest.web_ui'
                 #'iTest.testing = iTest.report.testing',
                 #'iTest.coverage = iTest.report.coverage',
                 #'iTest.lint = iTest.report.lint',
                 #'iTest.notify = iTest.notify'
                 ]
开发者ID:monadyn,项目名称:itest_cts,代码行数:29,代码来源:setup.py

示例5: find_packages

 def find_packages(path):
     for f in os.listdir(path):
         if f[0] == '.':
             continue
         if os.path.isdir(os.path.join(path, f)) == True:
             next_path = os.path.join(path, f)
             if '__init__.py' in os.listdir(next_path):
                 packages.append(next_path.replace(os.sep, '.'))
             find_packages(next_path)
开发者ID:DBrianKimmel,项目名称:coherence,代码行数:9,代码来源:setup.py

示例6: get_packages_list

def get_packages_list():
    """Recursively find packages in lib.

    Return a list of packages (dot notation) suitable as packages parameter
    for distutils.
    """
    if 'linux' in sys.platform:
        return find_packages('lib', exclude=["cherrypy.*"])
    else:
        return find_packages('lib')
开发者ID:oaubert,项目名称:advene,代码行数:10,代码来源:setup.py

示例7: setup_package

def setup_package():
    # Figure out whether to add ``*_requires = ['numpy']``.
    setup_requires = []
    try:
        import numpy
    except ImportError:
        setup_requires.append('numpy>=1.6, <2.0')

    # the long description is unavailable in a source distribution and not essential to build
    try:
        with open('doc/abstract.txt') as f:
            long_description = f.read()
    except:
        long_description = ''

    setup_args = dict(
        name=package_name,
        packages=find_packages(),
        version=__version__,
        author='Frederik Beaujean, Stephan Jahn',
        author_email='[email protected], [email protected]',
        url='https://github.com/fredRos/pypmc',
        description='A toolkit for adaptive importance sampling featuring implementations of variational Bayes, population Monte Carlo, and Markov chains.',
        long_description=long_description,
        license='GPLv2',
        setup_requires=setup_requires,
        install_requires=['numpy', 'scipy'],
        extras_require={'testing': ['nose'], 'plotting': ['matplotlib'], 'parallelization': ['mpi4py']},
        classifiers=['Development Status :: 4 - Beta',
                     'Intended Audience :: Developers',
                     'Intended Audience :: Science/Research',
                     'License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)',
                     'Operating System :: Unix',
                     'Programming Language :: Cython',
                     'Programming Language :: Python',
                     'Programming Language :: Python :: 2.7',
                     'Programming Language :: Python :: 3',
                     'Topic :: Scientific/Engineering',
                     'Topic :: Scientific/Engineering :: Mathematics',
        ],
        platforms=['Unix'],
    )

    if len(sys.argv) >= 2 and (
            '--help' in sys.argv[1:] or
            sys.argv[1] in ('--help-commands', 'egg_info', '--version',
                            'clean')):
        # For these actions, NumPy is not required.
        pass
    else:
        setup_args['packages'] = find_packages()
        setup_args['ext_modules'] = get_extensions()

    setup(**setup_args)
开发者ID:fredRos,项目名称:pypmc,代码行数:54,代码来源:setup.py

示例8: main

def main(with_binary):
    if with_binary:
        features = {'speedups': speedups}
    else:
        features = {}

    extra = {}

    # Python 3: run 2to3
    if sys.version_info >= (3,):
        extra['use_2to3'] = True

    setup(
        name='http-parser',
        version=VERSION,
        description=DESCRIPTION,
        long_description=LONG_DESCRIPTION,
        author='Benoit Chesneau',
        author_email='[email protected]',
        license='MIT',
        url='http://github.com/benoitc/http-parser',
        classifiers=CLASSIFIERS,
        packages=find_packages(),
        platforms=['any'],
        # data_files=[('http_parser',
        #     ['LICENSE', 'MANIFEST.in', 'NOTICE', 'README.rst', 'THANKS']
        # )],
        features=features,
        **extra
    )
开发者ID:georgemarshall,项目名称:http-parser,代码行数:30,代码来源:setup.py

示例9: setup_package

def setup_package():
    setupinfo.set_version(version)

    setupinfo.write_version_py()

    setup(
        name=name,
        version=setupinfo.get_version(),
        description=description,
        long_description=long_description,
        url=url,
        author=author,
        author_email=author_email,
        keywords=keywords.strip(),
        license=license,
        packages=find_packages(),
        ext_modules=setupinfo.get_extensions(),
        install_requires=setupinfo.get_install_requirements(),
        tests_require=setupinfo.get_test_requirements(),
        test_suite="pyamf.tests.get_suite",
        zip_safe=False,
        extras_require=setupinfo.get_extras_require(),
        classifiers=(
            filter(None, classifiers.strip().split('\n')) +
            setupinfo.get_trove_classifiers()
        ),
        **setupinfo.extra_setup_args())
开发者ID:UnforeseenOcean,项目名称:PlayfulMesh,代码行数:27,代码来源:setup.py

示例10: main

def main():
    name = "tangods-pynutaq"

    version = "0.5.0"

    description = "Device server for the Nutaq platform."

    author = "Antonio Milan Otero"

    author_email = "[email protected]"

    license = "GPLv3"

    url = "http://www.maxlab.lu.se"

    package_dir = {'': 'src'}

    exclude=["interlocksdiags"]
    packages = find_packages('src', exclude=exclude)

    scripts = [
        'scripts/Nutaq',
        'scripts/NutaqDiags'
    ]
    setup(name=name,
          version=version,
          description=description,
          author=author,
          author_email=author_email,
          license=license,
          url=url,
          package_dir=package_dir,
          packages=packages,
          scripts=scripts
    )
开发者ID:amilan,项目名称:dev-maxiv-pynutaq,代码行数:35,代码来源:setup.py

示例11: test_dir_with_dot_is_skipped

 def test_dir_with_dot_is_skipped(self):
     shutil.rmtree(os.path.join(self.dist_dir, 'pkg/subpkg/assets'))
     data_dir = self._mkdir('some.data', self.pkg_dir)
     self._touch('__init__.py', data_dir)
     self._touch('file.dat', data_dir)
     packages = find_packages(self.dist_dir)
     self.assertTrue('pkg.some.data' not in packages)
开发者ID:AMontalva,项目名称:blogful,代码行数:7,代码来源:test_find_packages.py

示例12: setup_package

def setup_package():
    import numpy.distutils.misc_util
    from gofft.distutils.misc_util import get_extensions
    NP_DEP = numpy.distutils.misc_util.get_numpy_include_dirs()

    # semantic versioning
    MAJOR = 1
    MINOR = 0
    MICRO = 0
    VERSION = '%d.%d.%d' % (MAJOR, MINOR, MICRO)

    # package to be installed
    EXCLUDED = []
    PACKAGES = find_packages(exclude=EXCLUDED)

    REQUIREMENTS = [
        'numpy>=1.9.1',
        'scipy>=0.15.0',
    ]

    EXTENSIONS = get_extensions('gofft')

    metadata = dict(
        name='gofft',
        version=VERSION,
        description='Benchmark for Goertzel algorithm and scipy.fftpack.fft',
        url='https://github.com/NaleRaphael/goertzel-fft',
        packages=PACKAGES,
        ext_modules=EXTENSIONS,
        include_dirs=NP_DEP,
        install_requires=REQUIREMENTS
    )

    setup(**metadata)
开发者ID:NaleRaphael,项目名称:goertzel_fft,代码行数:34,代码来源:setup.py

示例13: main

def main():
    base_dir = dirname(__file__)
    setup(
        name='flaky',
        version='2.2.0',
        description='Plugin for nose or py.test that automatically reruns flaky tests.',
        long_description=open(join(base_dir, 'README.rst')).read(),
        author='Box',
        author_email='[email protected]',
        url='https://github.com/box/flaky',
        license=open(join(base_dir, 'LICENSE')).read(),
        packages=find_packages(exclude=['test']),
        test_suite='test',
        tests_require=['pytest', 'nose'],
        zip_safe=False,
        entry_points={
            'nose.plugins.0.10': [
                'flaky = flaky.flaky_nose_plugin:FlakyPlugin'
            ],
            'pytest11': [
                'flaky = flaky.flaky_pytest_plugin'
            ]
        },
        keywords='nose pytest plugin flaky tests rerun retry',
        classifiers=CLASSIFIERS,
    )
开发者ID:mark-adams,项目名称:flaky,代码行数:26,代码来源:setup.py

示例14: autosetup

def autosetup():
	from setuptools import setup, find_packages
    
	with open(relative_path('requirements.txt'), 'rU') as f:
		requirements_txt = f.read().split("\n")

	# check if installed with git data (not via PyPi)
	with_git = os.path.isdir(relative_path('.git'))

	return setup(
		name			= "wikiquote-extractor",
		version			= "1.0",
		
		include_package_data = True,
		zip_safe		= False,
		packages		= find_packages(),
		
		entry_points	= {
			'console_scripts': [
				'wikiquote-extractor = wikiquote_extractor.app:main',
			]
		},
		
		setup_requires = ["setuptools_git >= 0.4.2"] if with_git else [],
		install_requires = requirements_txt,
	)
开发者ID:philchristensen,项目名称:wikiquote-extractor,代码行数:26,代码来源:setup.py

示例15: main

def main():
    base_dir = dirname(__file__)
    setup(
        base_dir=dirname(__file__),
        name='newrelic_marklogic_plugin',
        description='NewRelic plugin for monitoring MarkLogic.',
        long_description=open(join(base_dir, 'README.rst'), encoding='utf-8').read(),
        version='0.2.8',
        packages=find_packages(),
        url='https://github.com/marklogic-community/newrelic-plugin',
        license=open(join(base_dir, 'LICENSE'), encoding='utf-8').read(),
        author='James Fuller',
        author_email='[email protected]',
        classifiers=['Programming Language :: Python',
                     'Development Status :: 3 - Alpha',
                     'Natural Language :: English',
                     'Environment :: Console',
                     'Intended Audience :: Developers',
                     'License :: OSI Approved :: Apache Software License',
                     'Operating System :: OS Independent',
                     'Topic :: Software Development :: Libraries :: Python Modules'
                     ],
        scripts = [
            'scripts/newrelic_marklogic.py'
        ],
        platforms='any',
        install_requires=[
            'requests>=2.11.1'
        ],
    )
开发者ID:marklogic,项目名称:newrelic-plugin,代码行数:30,代码来源:setup.py


注:本文中的setuptools.find_packages函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。