fsl / setup.py

import sys
from distutils.core import setup

SHORT_DESC = 'Specification language for selecting files from directory tree'

LONG_DESC = '''\
File Selection Language (FSL) is a descriptive language for file selection.
It is used to selectively pick files from a directory structure.
FSL is useful for selective backups, for instance. FSL uses glob patterns
as the basic building block. For fine-tuning the selection,
inclusion/exclusion rule combinations and conditional expressions are
available. File size and modification date can be used in expressions.'''

MANUAL_INSTALL_INSTRUCTIONS = '''\
- If you plan to use FSL from the command line interface only,
  copy the FSL file tree into a directory of your choosing.
- If you plan to use FSL as a Python module as well,
  copy the fsl/ directory somewhere on your Python search
  path. To make sure you installed FSL correctly on the search
  path, execute "import fsl.fsltool" in a Python session.'''

CLASSIFIERS = [
          'Development Status :: 4 - Beta',
          'Environment :: Console',
          'Intended Audience :: System Administrators',
          'License :: OSI Approved :: BSD License',
          'Operating System :: Microsoft :: Windows',
          'Operating System :: POSIX',
          'Programming Language :: Python',
          'Topic :: System :: Archiving',
]

package_data = {
    'fsl.test': ['fsltool_files/*', 'interpreter_files/*', 'lexer_files/*',
        'make_struct.sh', 'struct.txt']
}

if __name__=='__main__':
    major, minor, micro, rellevel, serial = sys.version_info
    if (major, minor) < (2, 4):
        print 'Automated setup works only with Python 2.4 or greater.'
        print 'With former versions, you must install manually.'
        print 'Install instructions:'
        print MANUAL_INSTALL_INSTRUCTIONS
        sys.exit(1)

    setup(name='fsl',
          version='0.5.2',
          description=SHORT_DESC,
          author='Kristian Ovaska',
          author_email='kristian.ovaska [at] helsinki.fi',
          url='http://www.cs.helsinki.fi/u/hkovaska/fsl/',
          packages=['fsl', 'fsl.test'],
          package_data=package_data,
          classifiers=CLASSIFIERS,
          long_description = LONG_DESC,
          license='BSD'
         )
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.