def test_cachefile_join(monkeypatch): def assert_join(root, cachefile): assert cachefile == os.path.join('tmp', 'cachefile') monkeypatch.setattr(hgdistver, 'methods', [assert_join]) hgdistver.get_version(root='tmp', cachefile='cachefile')
Licensed under LGPLv3, see LICENSE.txt for terms and conditions. """ # flake8: noqa from distutils.core import setup from hgdistver import get_version from setuptools import find_packages DESC = 'Convenience Python client for Zato ESB and app server (https://zato.io)' setup( name = 'zato-web-admin', version = get_version(), author = 'Zato Developers', author_email = '*****@*****.**', url = 'https://zato.io', package_dir = {'':'src'}, packages = find_packages('src'), namespace_packages = ['zato'], include_package_data = True, install_requires=[ 'django-openid-auth>=0.5', 'django-settings>=1.3-11', 'python-openid>=2.2.5',
def test_root_parameter_creation(monkeypatch): def assert_cwd(root, cachefile=None): assert root == os.getcwd() monkeypatch.setattr(hgdistver, 'methods', [assert_cwd]) hgdistver.get_version()
def test_root_parameter_pass_by(monkeypatch): def assert_root_tmp(root, cachefile): assert root == '/tmp' monkeypatch.setattr(hgdistver, 'methods', [assert_root_tmp]) hgdistver.get_version(root='/tmp')
Licensed under LGPLv3, see LICENSE.txt for terms and conditions. """ # flake8: noqa from distutils.core import setup from hgdistver import get_version from setuptools import find_packages DESC = 'Convenience Python client for Zato ESB and app server (https://zato.io)' setup( name = 'zato-cli', version = get_version(), author = 'Zato Developers', author_email = '*****@*****.**', url = 'https://zato.io', package_dir = {'':'src'}, packages = find_packages('src'), namespace_packages = ['zato'], install_requires = [ 'Importing>=1.10', 'Django>=1.6.5', 'pg8000>=1.9.10', 'pyaml>=14.05.7', 'sarge>=0.1.3',
""" The Python Integrated Development Application IDE Framework """ try: version = __import__('pkg_resources') \ .get_distribution('pida').version except Exception: # DistributionNotFound try: import hgdistver version = hgdistver.get_version() except ImportError: version = 'unknown' copyright = 'Copyright (c) 2005-2009 The PIDA Project' website = 'http://pida.co.uk/' author = 'Ali Afshar <*****@*****.**>' maintainer = 'Ronny Pfannschmidt <*****@*****.**>' dev_core = [ author, maintainer, 'Daniel Poelzleithner <*****@*****.**>' ] dev_contrib = [ 'Tiago Cogumbreiro <*****@*****.**>', 'Alejandro Mery <*****@*****.**>',
from codecs import open import hgdistver from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(here, 'README.rst'), encoding='utf-8') as f: long_description = f.read() pampas_core_path = os.path.join(here, 'pampas', 'core') try: version = hgdistver.get_version() except AssertionError: version = hgdistver.get_version(guess_next=False) setup( name='xdh-dice', version=version.split('+')[0], description='A library that provides a numeric datatype that simulates polyhedral dice.', long_description=long_description, author='Cliff Hill', author_email='*****@*****.**',
templates_path = ['.templates'] source_suffix = '.rst' master_doc = 'index' # General substitutions. project = u'anyvc' copyright = u'2008, Pida Team' # The default replacements for |version| and |release|, also used in various # other places throughout the built documents. # # The full version, including alpha/beta/rc tags. import hgdistver version = hgdistver.get_version(root=base) # The short X.Y version. if version: release = '.'.join(version.split('.')[:3]) else: release = 'unknown' # 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 documents that shouldn't be included in the build. exclude_patterns = [ 'workdir/cli.rst', # XXX: 'readme.rst', # XXX:
""" The Python Integrated Development Application IDE Framework """ try: version = __import__('pkg_resources') \ .get_distribution('pida').version except Exception: # DistributionNotFound try: import hgdistver version = hgdistver.get_version() except ImportError: version = 'unknown' copyright = 'Copyright (c) 2005-2009 The PIDA Project' website = 'http://pida.co.uk/' author = 'Ali Afshar <*****@*****.**>' maintainer = 'Ronny Pfannschmidt <*****@*****.**>' dev_core = [author, maintainer, 'Daniel Poelzleithner <*****@*****.**>'] dev_contrib = [ 'Tiago Cogumbreiro <*****@*****.**>', 'Alejandro Mery <*****@*****.**>', 'Bernard Pratz <*****@*****.**>', 'Mathieu Virbel <*****@*****.**>', 'Anders Conbere <*****@*****.**>', 'David Soulayrol <*****@*****.**>',