代码拉取完成,页面将自动刷新
同步操作将从 张雄/ambari 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#!/usr/bin/env python2
'''
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
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 os
from os.path import dirname
from setuptools import find_packages, setup
AMBARI_COMMON_PYTHON_FOLDER = "ambari-common/src/main/python"
AMBARI_SERVER_TEST_PYTHON_FOLDER = "ambari-server/src/test/python"
def get_ambari_common_packages():
return find_packages(AMBARI_COMMON_PYTHON_FOLDER, exclude=["*.tests", "*.tests.*", "tests.*", "tests"])
def get_ambari_server_stack_package():
return ["stacks.utils"]
def get_extra_common_packages():
return ["urlinfo_processor", "ambari_jinja2", "ambari_jinja2._markupsafe"]
def create_package_dir_map():
package_dirs = {}
ambari_common_packages = get_ambari_common_packages()
for ambari_common_package in ambari_common_packages:
package_dirs[ambari_common_package] = AMBARI_COMMON_PYTHON_FOLDER + '/' + ambari_common_package.replace(".", "/")
ambari_server_packages = get_ambari_server_stack_package()
for ambari_server_package in ambari_server_packages:
package_dirs[ambari_server_package] = AMBARI_SERVER_TEST_PYTHON_FOLDER + '/' + ambari_server_package.replace(".", "/")
package_dirs["ambari_jinja2"] = AMBARI_COMMON_PYTHON_FOLDER + "/ambari_jinja2/ambari_jinja2"
package_dirs["ambari_jinja2._markupsafe"] = AMBARI_COMMON_PYTHON_FOLDER + "/ambari_jinja2/ambari_jinja2/_markupsafe"
package_dirs["urlinfo_processor"] = AMBARI_COMMON_PYTHON_FOLDER + "/urlinfo_processor"
return package_dirs
__version__ = "3.0.0.dev0"
def get_version():
ambari_version = os.environ["AMBARI_VERSION"] if "AMBARI_VERSION" in os.environ else __version__
print ambari_version
return ambari_version
"""
Example usage:
- build package with specific version:
python setup.py sdist -d "my/dist/location"
- build and install package with specific version:
python setup.py sdist -d "my/dist/location" install
- build and upload package with specific version:
python setup.py sdist -d "my/dist/location" upload -r "http://localhost:8080"
Installing from pip:
- pip install --extra-index-url=http://localhost:8080 ambari-python==2.7.1 // 3.0.0.dev0 is the snapshot version
Note: using 'export AMBARI_VERSION=2.7.1' before commands you can redefine the package version, but you will need this export during the pip install as well
"""
setup(
name = "ambari-python",
version = get_version(),
author = "Apache Software Foundation",
author_email = "dev@ambari.apache.org",
description = ("Framework for provison/manage/monitor Hadoop clusters"),
license = "AP2",
keywords = "hadoop, ambari",
url = "https://ambari.apache.org",
packages = get_ambari_common_packages() + get_ambari_server_stack_package() + get_extra_common_packages(),
package_dir = create_package_dir_map(),
install_requires=[
'mock==1.0.1',
'coilmq==1.0.1'
],
include_package_data = True,
long_description="The Apache Ambari project is aimed at making Hadoop management simpler by developing software for provisioning, managing, and monitoring Apache Hadoop clusters. "
"Ambari provides an intuitive, easy-to-use Hadoop management web UI backed by its RESTful APIs."
)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。