Exemplo n.º 1
0
    def test_version(self):
        git_path = os.path.normpath(
            os.path.join(os.path.abspath(sys.argv[0]), os.pardir, os.pardir, ".git/refs/heads/master")
        )

        with open(git_path, "r") as git:
            git_commit = git.read()
        git.closed

        test_ver = "pyhole v0 (%s) - http://pyhole.org" % git_commit[0:5]
        self.assertEqual(utils.version("0"), test_ver)
Exemplo n.º 2
0
 def test_version(self):
     self.assertEqual(len(utils.version()), 41)
Exemplo n.º 3
0
# The master toctree document.
master_doc = "index"

# General information about the project.
project = u"pyhole"
copyright = u"2011, Josh Kearney"

# 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.
from pyhole import utils

version = utils.version(short=True)
# The full version, including alpha/beta/rc tags.
release = utils.version(long=True)

# 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.
Exemplo n.º 4
0
import os
import sys
from setuptools import setup, find_packages
from pyhole import utils

def read(fname):
    return open(os.path.join(os.path.dirname(__file__), fname)).read()

requirements = ['eventlet', 'pywapi', 'simplejson']
if sys.version_info < (2,6):
    requirements.append('simplejson')

version = utils.version(short=True)

setup(
    name = "pyhole",
    version = version,
    description = "Modular IRC Bot for Python",
    long_description = read('README'),
    url = 'https://github.com/jk0/pyhole',
    license = 'Apache',
    author = 'Josh Kearney',
    author_email = '*****@*****.**',
    packages = find_packages(exclude=['tests']),
    classifiers = [
        'Development Status :: 5 - Production/Stable',
        'Environment :: Service',
        'Intended Audience :: Developers',
        'Intended Audience :: Information Technology',
        'License :: OSI Approved :: Apache Software License',
        'Operating System :: OS Independent',