示例#1
0
__authors__ = [
    # alphabetical order by last name
    'Thomas Chiroux', ]

from setuptools import setup, find_packages
from setuptools.command.build_py import build_py
import os

# local imports
from build_scripts.version import get_git_version

here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.rst')).read()
NEWS = open(os.path.join(here, 'NEWS.rst')).read()

VERSION = get_git_version()


class my_build_py(build_py):
    def run(self):
        # honor the --dry-run flag
        if not self.dry_run:
            target_dir = os.path.join(self.build_lib, 'dipplanner')

            # mkpath is a distutils helper to create directories
            self.mkpath(target_dir)

            try:
                fobj = open(os.path.join(target_dir, 'RELEASE-VERSION'), 'w')
                fobj.write(VERSION)
            except:
示例#2
0
import os
import sys

# local imports
from build_scripts.version import get_git_version

if not hasattr(sys, 'version_info') or sys.version_info < (2, 7, 0, 'final'):
    raise SystemExit("boksh requires Python 2.7 or later.")

with open("README.rst", encoding='utf-8') as f:
    README = f.read()

with open("NEWS.rst", encoding='utf-8') as f:
    NEWS = f.read()

VERSION = get_git_version()
if VERSION is None:
    try:
        file_name = "boksh/RELEASE-VERSION"
        version_file = open(file_name, "r", encoding='utf-8')
        try:
            VERSION = version_file.readlines()[0]
            VERSION = VERSION.strip()
        except:
            VERSION = "0.0.0"
        finally:
            version_file.close()
    except IOError:
        VERSION = "0.0.0"

示例#3
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'cairotft'
copyright = u'2015 - Thomas Chiroux - Link Care Services'

# 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.
version = get_git_version()
# The full version, including alpha/beta/rc tags.
release = 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
# directories to ignore when looking for source files.
示例#4
0
# include TODOs
todo_include_todos = True

# The master toctree document.
master_doc = 'index'

# General information about the project.
project = u'dipplanner'
copyright = u'2011-2012, Thomas Chiroux'

# 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.
version = get_git_version()
# The full version, including alpha/beta/rc tags.
release = 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
# directories to ignore when looking for source files.