Esempio n. 1
0
        if patched["release"][:2] != original["release"][:2]:
            compatible = False
        if patched["dev"] is not None:
            compatible = False
        if not compatible:
            raise SystemExit("Patched version string %r is not compatible with original version "
                             "string %r" % (patched["string"], original["string"]))

    @classmethod
    def _patch_version(cls, value):
        with open(VERSION_FILE, "w") as f:
            f.write(value)


with Release():
    setup(**dict(get_metadata(), **{
        "long_description": get_readme(),
        "long_description_content_type": "text/x-rst",
        "entry_points": {
            "console_scripts": [
                "py2neo = py2neo.__main__:main",
            ],
            "pygments.lexers": [
                "py2neo.cypher = py2neo.cypher.lexer:CypherLexer",
            ],
        },
        "packages": find_packages(exclude=("docs", "test", "test.*")),
        "package_data": {
            "py2neo": ["VERSION"],
        },
        "py_modules": [],
Esempio n. 2
0
import sys

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
sys.path.insert(0, os.path.abspath('..'))
sys.path.append(os.path.abspath("./_ext"))

# -- Project metadata -----------------------------------------------------

from py2neo import __copyright__
from py2neo.meta import get_metadata, get_version_data

# -- General configuration ------------------------------------------------

metadata = get_metadata()
version_data = get_version_data()

# If your documentation needs a minimal Sphinx version, state it here.
#needs_sphinx = '1.0'

# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
    'sphinx.ext.autodoc',
    'sphinx.ext.autosectionlabel',
    'sphinx.ext.coverage',
    'sphinx.ext.ifconfig',
    'sphinx.ext.napoleon',
    'sphinx.ext.viewcode',
Esempio n. 3
0
        if patched["dev"] is not None:
            compatible = False
        if not compatible:
            raise SystemExit(
                "Patched version string %r is not compatible with original version "
                "string %r" % (patched["string"], original["string"]))

    @classmethod
    def _patch_version(cls, value):
        with open(VERSION_FILE, "w") as f:
            f.write(value)


with Release():
    setup(**dict(
        get_metadata(), **{
            "long_description":
            get_readme(),
            "long_description_content_type":
            "text/x-rst",
            "entry_points": {
                "console_scripts": [
                    "py2neo = py2neo.__main__:main",
                ],
                "pygments.lexers": [
                    "py2neo.cypher = py2neo.cypher.lexer:CypherLexer",
                ],
            },
            "packages":
            find_packages(exclude=("docs", "test", "test.*")),
            "package_data": {