Esempio n. 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 marconi.openstack.common import setup
         return setup.get_version(self.package)
Esempio n. 2
0
# 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

import __builtin__
__builtin__.__MARCONI_SETUP__ = True
from marconi.openstack.common import setup as common_setup

requires = common_setup.parse_requirements()
dependency_links = common_setup.parse_dependency_links()

setuptools.setup(
    name='marconi',
    version=common_setup.get_version('marconi'),
    description='Message Bus for OpenStack',
    license="Apache License (2.0)",
    author='Kurt Griffiths',
    author_email='*****@*****.**',
    url='https://launchpad.net/marconi',
    packages=setuptools.find_packages(exclude=['bin']),
    include_package_data=True,
    test_suite='nose.collector',
    install_requires=requires,
    dependency_links=dependency_links,
    cmdclass=common_setup.get_cmdclass(),
    entry_points={
        'console_scripts':
            ['marconi-server = marconi.bin.server:run']
    }