Exemplo n.º 1
0
import os, sys
from setuptools import setup, find_packages

from eazysvn import ALIASES, VERSION

readme = os.path.join(os.path.dirname(__file__), 'README.rst')
changelog = os.path.join(os.path.dirname(__file__), 'CHANGES.rst')

changes_in_all_versions = file(changelog).read().split('\n\n\n', 1)[1]

long_description = file(readme).read().replace('See CHANGES.rst',
                                               changes_in_all_versions)

first_changelog_line = changes_in_all_versions.lstrip().split('\n', 1)[0]

version_indicates_unreleased = VERSION.endswith('dev')
changelog_indicates_unreleased = first_changelog_line.endswith('(unreleased)')
version_in_version = VERSION.rstrip('dev')
version_in_changelog = first_changelog_line.split()[0]

if (version_in_version != version_in_changelog or
    version_indicates_unreleased != changelog_indicates_unreleased):
    print >> sys.stderr, "VERSION is %s, but last changelog entry is for %s" % (
                            VERSION, first_changelog_line)

setup(
    name='eazysvn',
    version=VERSION,
    author='Philipp von Weitershausen',
    author_email='*****@*****.**',
    maintainer='Marius Gedminas',
Exemplo n.º 2
0
from eazysvn import ALIASES, VERSION

readme = os.path.join(os.path.dirname(__file__), "README.rst")
changelog = os.path.join(os.path.dirname(__file__), "CHANGES.rst")

with open(changelog) as f:
    changes_in_all_versions = f.read().split("\n\n\n", 1)[1]

with open(readme) as f:
    long_description = f.read().replace("See CHANGES.rst", changes_in_all_versions)

first_changelog_line = changes_in_all_versions.lstrip().split("\n", 1)[0]

version_indicates_unreleased = "dev" in VERSION
changelog_indicates_unreleased = first_changelog_line.endswith("(unreleased)")
version_in_version = VERSION.split("dev")[0].rstrip(".")
version_in_changelog = first_changelog_line.split()[0]

if version_in_version != version_in_changelog or version_indicates_unreleased != changelog_indicates_unreleased:
    sys.exit("VERSION is %s, but last changelog entry is for %s" % (VERSION, first_changelog_line))

setup(
    name="eazysvn",
    version=VERSION,
    author="Philipp von Weitershausen",
    author_email="*****@*****.**",
    maintainer="Marius Gedminas",
    maintainer_email="*****@*****.**",
    url="http://mg.pov.lt/eazysvn/",
    download_url="https://pypi.python.org/pypi/eazysvn",
    description="Make simple revision merges and branch switching much easier",