Example #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 glance.openstack.common import setup
         return setup.get_version(self.package)
Example #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 glance.openstack.common import setup
         return setup.get_version(self.package)
Example #3
0
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
# implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import setuptools

from glance.openstack.common import setup

requires = setup.parse_requirements()
depend_links = setup.parse_dependency_links()
project = 'glance'

setuptools.setup(
    name=project,
    version=setup.get_version(project, '2013.2'),
    description='The Glance project provides services for discovering, '
                'registering, and retrieving virtual machine images',
    license='Apache License (2.0)',
    author='OpenStack',
    author_email='*****@*****.**',
    url='http://glance.openstack.org/',
    packages=setuptools.find_packages(exclude=['bin']),
    test_suite='nose.collector',
    cmdclass=setup.get_cmdclass(),
    include_package_data=True,
    install_requires=requires,
    dependency_links=depend_links,
    classifiers=[
        'Development Status :: 4 - Beta',
        'License :: OSI Approved :: Apache Software License',
Example #4
0
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
# implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import setuptools

from glance.openstack.common import setup

requires = setup.parse_requirements()
depend_links = setup.parse_dependency_links()
project = 'glance'

setuptools.setup(
    name=project,
    version=setup.get_version(project, '2013.1'),
    description='The Glance project provides services for discovering, '
    'registering, and retrieving virtual machine images',
    license='Apache License (2.0)',
    author='OpenStack',
    author_email='*****@*****.**',
    url='http://glance.openstack.org/',
    packages=setuptools.find_packages(exclude=['bin']),
    test_suite='nose.collector',
    cmdclass=setup.get_cmdclass(),
    include_package_data=True,
    install_requires=requires,
    dependency_links=depend_links,
    classifiers=[
        'Development Status :: 4 - Beta',
        'License :: OSI Approved :: Apache Software License',
Example #5
0
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
# implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import setuptools

from glance.openstack.common import setup

requires = setup.parse_requirements()
depend_links = setup.parse_dependency_links()
project = "glance"

setuptools.setup(
    name=project,
    version=setup.get_version(project, "2013.2"),
    description="The Glance project provides services for discovering, "
    "registering, and retrieving virtual machine images",
    license="Apache License (2.0)",
    author="OpenStack",
    author_email="*****@*****.**",
    url="http://glance.openstack.org/",
    packages=setuptools.find_packages(exclude=["bin"]),
    test_suite="nose.collector",
    cmdclass=setup.get_cmdclass(),
    include_package_data=True,
    install_requires=requires,
    dependency_links=depend_links,
    classifiers=[
        "Development Status :: 4 - Beta",
        "License :: OSI Approved :: Apache Software License",