Пример #1
0
def linkcode_resolve(domain, info):
    version = djblets.VERSION

    if version[3] == 'final' or version[4] > 0:
        branch = 'release-%s.%s' % (version[0], version[1])

        if djblets.is_release():
            if version[2]:
                branch += '.%s' % version[2]

            if version[3] != 'final':
                branch += version[3]

                if version[4]:
                    branch += '%d' % version[4]
        else:
            branch += '.x'
    else:
        branch = 'master'

    return github_linkcode_resolve(domain=domain,
                                   info=info,
                                   allowed_module_names=['djblets'],
                                   github_org_id='djblets',
                                   github_repo_id='djblets',
                                   branch=branch)
Пример #2
0
def linkcode_resolve(domain, info):
    version = djblets.VERSION

    if version[3] == 'final' or version[4] > 0:
        branch = 'release-%s.%s' % (version[0], version[1])

        if djblets.is_release():
            if version[2]:
                branch += '.%s' % version[2]

            if version[3] != 'final':
                branch += version[3]

                if version[4]:
                    branch += '%d' % version[4]
        else:
            branch += '.x'
    else:
        branch = 'master'

    return github_linkcode_resolve(domain=domain,
                                   info=info,
                                   allowed_module_names=['djblets'],
                                   github_org_id='djblets',
                                   github_repo_id='djblets',
                                   branch=branch)
Пример #3
0
def _get_branch_for_version():
    """Return the branch or tag for the current version of Review Board."""
    if VERSION[4] == 'final' or VERSION[4] > 0:
        if djblets.is_release():
            return 'release-%s.%s.%s' % (VERSION[0], VERSION[1], VERSION[2])
        else:
            return 'release-%s.%s.x' % (VERSION[0], VERSION[1])
    else:
        return 'master'
Пример #4
0
def main():
    if not os.path.exists("setup.py"):
        sys.stderr.write("This must be run from the root of the "
                         "Djblets tree.\n")
        sys.exit(1)

    if not is_release():
        sys.stderr.write('This has not been marked as a release in '
                         'djblets/__init__.py\n')
        sys.exit(1)

    cur_dir = os.getcwd()
    git_dir = clone_git_tree(cur_dir)

    build_targets()
    upload_files()

    os.chdir(cur_dir)
    shutil.rmtree(git_dir)

    tag_release()
    register_release()
Пример #5
0
from setuptools.command.test import test


def run_tests(*args):
    import os
    os.system("tests/runtests.py")

test.run_tests = run_tests


from djblets import get_package_version, is_release, VERSION


PACKAGE_NAME = 'Djblets'

if is_release():
    download_url = 'http://downloads.review-board.org/releases/%s/%s.%s/' % \
                   (PACKAGE_NAME, VERSION[0], VERSION[1])
else:
    download_url = 'http://downloads.review-board.org/nightlies/'


setup(name=PACKAGE_NAME,
      version=get_package_version(),
      test_suite="dummy",
      license="MIT",
      description="A collection of useful classes and functions for Django",
      packages=find_packages(),
      install_requires=['Django>=1.0.2', 'PIL'],
      dependency_links = [
          "http://downloads.review-board.org/mirror/",
Пример #6
0
    os.system("tests/runtests.py")

test.run_tests = run_tests

cmdclasses = {
    'egg_info': BuildEggInfo,
    'build_media': BuildMedia,
}


from djblets import get_package_version, is_release, VERSION


PACKAGE_NAME = 'Djblets'

if is_release():
    download_url = 'http://downloads.reviewboard.org/releases/%s/%s.%s/' % \
                   (PACKAGE_NAME, VERSION[0], VERSION[1])
else:
    download_url = 'http://downloads.reviewboard.org/nightlies/'


setup(name=PACKAGE_NAME,
      version=get_package_version(),
      test_suite="dummy",
      license="MIT",
      description="A collection of useful classes and functions for Django",
      packages=find_packages(),
      cmdclass=cmdclasses,
      install_requires=[
          'Django>=1.4.2',