def pdc_version():
    return get_version()
示例#2
0
# The encoding of source files.
# source_encoding = 'utf-8-sig'

# The master toctree document.
master_doc = "index"

# General information about the project.
project = u"PDC"
copyright = u"2014-2015, PDC Devel Team"

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The short X.Y version.
pdc_version = get_version()
version = pdc_version.split("-")[0]
# The full version, including alpha/beta/rc tags.
release = pdc_version

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
# language = None

# There are two options for replacing |today|: either, you set today to some
# non-false value, then it is used:
# today = ''
# Else, today_fmt is used as the format for a strftime call.
# today_fmt = '%B %d, %Y'

# List of patterns, relative to source directory, that match files and
示例#3
0
# -*- coding: utf-8 -*-

from setuptools import setup, find_packages

from pdc import get_version


PACKAGE_NAME = 'pdc'
PACKAGE_VER = get_version()
PACKAGE_DESC = 'PDC - Product Definition Center'
PACKAGE_URL = 'https://github.com/release-engineering/product-definition-center.git'  # noqa


def get_install_requires():
    requires = []
    links = []
    for line in open('requirements/production.txt', 'r'):
        line = line.strip()
        if not line.startswith('#'):
            parts = line.split('#egg=')
            if len(parts) == 2:
                links.append(line)
                requires.append(parts[1])
            else:
                requires.append(line)
    return requires, links


install_requires, dependency_links = get_install_requires()

示例#4
0
文件: conf.py 项目: bliuredhat/PDC
# The encoding of source files.
#source_encoding = 'utf-8-sig'

# The master toctree document.
master_doc = 'index'

# General information about the project.
project = u'PDC'
copyright = u'2014-2015, PDC Devel Team'

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The short X.Y version.
pdc_version = get_version()
version = pdc_version.split('-')[0]
# The full version, including alpha/beta/rc tags.
release = pdc_version

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
#language = None

# There are two options for replacing |today|: either, you set today to some
# non-false value, then it is used:
#today = ''
# Else, today_fmt is used as the format for a strftime call.
#today_fmt = '%B %d, %Y'

# List of patterns, relative to source directory, that match files and
示例#5
0
文件: setup.py 项目: bliuredhat/PDC
# -*- coding: utf-8 -*-

from setuptools import setup, find_packages

from pdc import get_version

PACKAGE_NAME = 'pdc'
PACKAGE_VER = get_version()
PACKAGE_DESC = 'PDC - Product Definition Center'
PACKAGE_URL = 'https://github.com/product-definition-center/product-definition-center.git'  # noqa


def get_install_requires():
    requires = []
    links = []
    for line in open('requirements/production.txt', 'r'):
        line = line.strip()
        if not line.startswith('#'):
            parts = line.split('#egg=')
            if len(parts) == 2:
                links.append(line)
                requires.append(parts[1])
            else:
                requires.append(line)
    return requires, links


install_requires, dependency_links = get_install_requires()

setup(
    name=PACKAGE_NAME,
示例#6
0
def pdc_version():
    return get_version()
示例#7
0
def pdc_version():
    return 'Version: ' + get_version(
    ) + ' based on upstream ' + pdc.get_version()