Example #1
0
        for line in open(f, "r").read().split("\n"):
            if re.match(r"\s*-[ef]\s+", line):
                line = re.sub(r"\s*-[ef]\s+", "", line)
                line = re.sub(r"\s*git\+https", "http", line)
                line = re.sub(r"\.git#", "/tarball/master#", line)
                dependency_links.append(line)
    return dependency_links


def read(fname):
    return open(os.path.join(ROOT, fname)).read()


setup(
    name="horizon",
    version=version.canonical_version_string(),
    url="https://github.com/openstack/horizon/",
    license="Apache 2.0",
    description="The OpenStack Dashboard.",
    long_description=read("README.rst"),
    author="OpenStack",
    author_email="*****@*****.**",
    packages=find_packages(),
    include_package_data=True,
    zip_safe=False,
    install_requires=parse_requirements(PIP_REQUIRES),
    tests_require=parse_requirements(TEST_REQUIRES),
    dependency_links=parse_dependency_links(PIP_REQUIRES, TEST_REQUIRES),
    classifiers=[
        "Development Status :: 4 - Beta",
        "Framework :: Django",
Example #2
0
    os.chdir(root_dir)

for target_dir in target_dirs:
    for dirpath, dirnames, filenames in os.walk(target_dir):
        # Ignore dirnames that start with '.'
        for i, dirname in enumerate(dirnames):
            if dirname.startswith('.'):
                del dirnames[i]
        if '__init__.py' in filenames:
            packages.append('.'.join(split(dirpath)))
        elif filenames:
            data_files.append(
                [dirpath, [os.path.join(dirpath, f) for f in filenames]])

setup(name="horizon",
      version=version.canonical_version_string(),
      url='https://github.com/openstack/horizon/',
      license='Apache 2.0',
      description="The OpenStack Dashboard.",
      long_description=read('README.rst'),
      author='OpenStack',
      author_email='*****@*****.**',
      packages=packages,
      data_files=data_files,
      cmdclass=os_common_setup.get_cmdclass(),
      include_package_data=True,
      install_requires=requires,
      tests_require=tests_require,
      dependency_links=depend_links,
      zip_safe=False,
      classifiers=[