示例#1
0
    def test_get_cmdclass(self):
        cmdclass = setup.get_cmdclass()

        self.assertTrue("sdist" in cmdclass)
        build_sphinx = cmdclass.get("build_sphinx")
        if build_sphinx:
            self.useFixture(
                fixtures.MonkeyPatch("sphinx.setup_command.BuildDoc.run",
                                     lambda self: None))
            from distutils.dist import Distribution
            distr = Distribution()
            distr.packages = ("fake_package", )
            distr.command_options["build_sphinx"] = {"source_dir": ["a", "."]}
            pkg_fixture = fixtures.PythonPackage("fake_package",
                                                 [("fake_module.py", "")])
            self.useFixture(pkg_fixture)
            self.useFixture(DiveDir(pkg_fixture.base))

            build_doc = build_sphinx(distr)
            build_doc.run()

            self.assertTrue(os.path.exists("api/autoindex.rst"))
            self.assertTrue(os.path.exists("api/fake_package.fake_module.rst"))
示例#2
0
    def test_get_cmdclass(self):
        cmdclass = setup.get_cmdclass()

        self.assertTrue("sdist" in cmdclass)
        build_sphinx = cmdclass.get("build_sphinx")
        if build_sphinx:
            self.useFixture(fixtures.MonkeyPatch(
                "sphinx.setup_command.BuildDoc.run", lambda self: None))
            from distutils.dist import Distribution
            distr = Distribution()
            distr.packages = ("fake_package",)
            distr.command_options["build_sphinx"] = {"source_dir": ["a", "."]}
            pkg_fixture = fixtures.PythonPackage(
                "fake_package", [("fake_module.py", "")])
            self.useFixture(pkg_fixture)
            self.useFixture(DiveDir(pkg_fixture.base))

            build_doc = build_sphinx(distr)
            build_doc.run()

            self.assertTrue(
                os.path.exists("api/autoindex.rst"))
            self.assertTrue(
                os.path.exists("api/fake_package.fake_module.rst"))
示例#3
0
    name='openstack.common',
    version=setup.get_post_version('openstack'),
    description="Common components for Openstack",
    long_description="Common components for Openstack "
    "including paster templates.",
    classifiers=[
        'Development Status :: 4 - Beta',
        'License :: OSI Approved :: Apache Software License',
        'Operating System :: POSIX :: Linux',
        'Programming Language :: Python :: 2.6',
        'Environment :: No Input/Output (Daemon)',
    ],
    keywords='openstack',
    author='OpenStack',
    author_email='*****@*****.**',
    url='http://www.openstack.org/',
    license='Apache Software License',
    packages=setuptools.find_packages(
        exclude=['ez_setup', 'examples', 'tests']),
    include_package_data=True,
    cmdclass=setup.get_cmdclass(),
    zip_safe=True,
    install_requires=requires,
    dependency_links=depend_links,
    setup_requires=['setuptools-git>=0.4'],
    entry_points="""
      # -*- Entry points: -*-
      """,
    namespace_packages=['openstack'],
)
示例#4
0
setuptools.setup(
    name='openstack.common',
    version=setup.get_post_version('openstack'),
    description="Common components for Openstack",
    long_description="Common components for Openstack "
                     "including paster templates.",
    classifiers=[
        'Development Status :: 4 - Beta',
        'License :: OSI Approved :: Apache Software License',
        'Operating System :: POSIX :: Linux',
        'Programming Language :: Python :: 2.6',
        'Environment :: No Input/Output (Daemon)', ],
    keywords='openstack',
    author='OpenStack',
    author_email='*****@*****.**',
    url='http://www.openstack.org/',
    license='Apache Software License',
    packages=setuptools.find_packages(exclude=['ez_setup',
                                               'examples', 'tests']),
    include_package_data=True,
    cmdclass=setup.get_cmdclass(),
    zip_safe=True,
    install_requires=requires,
    dependency_links=depend_links,
    setup_requires=['setuptools-git>=0.4'],
    entry_points="""
      # -*- Entry points: -*-
      """,
    namespace_packages=['openstack'],
)