Beispiel #1
0
 def _get_version_from_pkg_resources(self):
     """Get the version of the package from the pkg_resources record
     associated with the package."""
     try:
         requirement = pkg_resources.Requirement.parse(self.package)
         provider = pkg_resources.get_provider(requirement)
         return provider.version
     except pkg_resources.DistributionNotFound:
         # The most likely cause for this is running tests in a tree
         # produced from a tarball where the package itself has not been
         # installed into anything. Revert to setup-time logic.
         from openstack.common import setup
         return setup.get_version(self.package)
Beispiel #2
0
 def _get_version_from_pkg_resources(self):
     """Get the version of the package from the pkg_resources record
     associated with the package."""
     try:
         requirement = pkg_resources.Requirement.parse(self.package)
         provider = pkg_resources.get_provider(requirement)
         return provider.version
     except pkg_resources.DistributionNotFound:
         # The most likely cause for this is running tests in a tree
         # produced from a tarball where the package itself has not been
         # installed into anything. Revert to setup-time logic.
         from openstack.common import setup
         return setup.get_version(self.package)
Beispiel #3
0
    "availability_zone_filter:AvailabilityZoneFilter",
    "CapabilitiesFilter = "
    "openstack.common.scheduler.filters."
    "capabilities_filter:CapabilitiesFilter",
    "JsonFilter = "
    "openstack.common.scheduler.filters.json_filter:JsonFilter",
]

weights = [
    "FakeWeigher1 = tests.unit.fakes:FakeWeigher1",
    "FakeWeigher2 = tests.unit.fakes:FakeWeigher2",
]

setuptools.setup(
    name=package,
    version=setup.get_version(package, '2013.1'),
    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',
Beispiel #4
0
    "availability_zone_filter:AvailabilityZoneFilter",
    "CapabilitiesFilter = "
    "openstack.common.scheduler.filters."
    "capabilities_filter:CapabilitiesFilter",
    "JsonFilter = "
    "openstack.common.scheduler.filters.json_filter:JsonFilter",
]

weights = [
    "FakeWeigher1 = tests.unit.fakes:FakeWeigher1",
    "FakeWeigher2 = tests.unit.fakes:FakeWeigher2",
]

setuptools.setup(
    name=package,
    version=setup.get_version(package, '2013.1'),
    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',