Exemplo n.º 1
0
 def test_get_version(self):
     """
     Ensures the get_version function returns a dot separated expression of
     the VERSION.
     """
     expected = '.'.join([str(i) for i in VERSION])
     actual = get_version()
     self.assertEqual(expected, actual)
Exemplo n.º 2
0
 def test_get_version(self):
     """
     Ensures the get_version function returns a dot separated expression of
     the VERSION.
     """
     expected = '.'.join([str(i) for i in VERSION])
     actual = get_version()
     self.assertEqual(expected, actual)
Exemplo n.º 3
0
#!/usr/bin/env python
from distutils.core import setup
from foox.version import get_version

setup(name='Foox',
      version=get_version(),
      description='Creates species counterpoint with a genetic algorithm.',
      long_description=open('README.rst').read(),
      author='Nicholas H.Tollervey',
      author_email='*****@*****.**',
      url='http://packages.python.org/foox',
      packages=['foox', 'foox/species'],
      scripts=['bin/foox', 'bin/wordolution'],
      license='MIT',
      classifiers=[
          'Development Status :: 4 - Beta',
          'Environment :: Console',
          'Intended Audience :: Developers',
          'Intended Audience :: Education',
          'Intended Audience :: Other Audience',
          'License :: OSI Approved :: MIT License',
          'Programming Language :: Python :: 2.7',
          'Topic :: Artistic Software',
          'Topic :: Education',
          'Topic :: Internet',
          'Topic :: Multimedia :: Sound/Audio :: MIDI',
          'Topic :: Scientific/Engineering :: Artificial Intelligence',
      ])
Exemplo n.º 4
0
"""
A simple command line wrapper around the genetic algorithm used for finding
valid solutions to species counterpoint problems.
"""

import argparse
import logging

from foox import ga, version, lilypond, words
from foox.species import first, second, third, fourth


parser = argparse.ArgumentParser(
    description='Evolves valid solutions to species counterpoint problems.')
parser.add_argument('--version', action='version',
    version=version.get_version())
parser.add_argument('-v', '--verbose', help='increased amount of verbosity',
    action='store_true')
parser.add_argument('-s', '--species', help='indicated species to use (1-5)',
    required=True, type=int)
parser.add_argument('-cf', '--cantus-firmus', help='specify the cantus firmus',
    nargs='*', required=True)
parser.add_argument('-o', '--out', help='name the output file')


if __name__ == '__main__':
    args = parser.parse_args()
    cf = [int(x) for x in args.cantus_firmus]
    species = args.species
    output = 'out'
    if args.out:
Exemplo n.º 5
0
#!/usr/bin/env python
from distutils.core import setup
from foox.version import get_version

setup(
    name='Foox',
    version=get_version(),
    description='Creates species counterpoint with a genetic algorithm.',
    long_description=open('README.rst').read(),
    author='Nicholas H.Tollervey',
    author_email='*****@*****.**',
    url='http://packages.python.org/foox',
    packages=['foox', 'foox/species'],
    scripts=['bin/foox', 'bin/wordolution'],
    license='MIT',
    classifiers=[
        'Development Status :: 4 - Beta',
        'Environment :: Console',
        'Intended Audience :: Developers',
        'Intended Audience :: Education',
        'Intended Audience :: Other Audience',
        'License :: OSI Approved :: MIT License',
        'Programming Language :: Python :: 2.7',
        'Topic :: Artistic Software',
        'Topic :: Education',
        'Topic :: Internet',
        'Topic :: Multimedia :: Sound/Audio :: MIDI',
        'Topic :: Scientific/Engineering :: Artificial Intelligence',
    ]
)