<commit_before>"""parsers and algorithms for computational chemistry

cclib is a Python library that provides parsers for computational
chemistry log files. It also provides a platform to implement
algorithms in a package-independent manner.
"""

from distutils.core import setup

# Chosen from http://www.python.org/pypi?:action=list_classifiers
classifiers = """\
Development Status :: 4 - Beta
Intended Audience :: Science/Research
Intended Audience :: Developers
License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)
Programming Language :: Python
Topic :: Software Development :: Libraries :: Python Modules
Operating System :: OS Independent
Topic :: Scientific/Engineering :: Chemistry
"""

doclines = __doc__.split("\n")

setup(name="cclib",
      version="0.7",
      author="cclib development team",
      author_email="<EMAIL>",
      url="http://cclib.sf.net",
      description=doclines[0],
      long_description = "\n".join(doclines[2:]),      
      classifiers=filter(None, classifiers.split("\n")),
      license="LGPL",
      platforms=["Any."],
      scripts=["src/scripts/ccget", "src/scripts/cda"],
      package_dir = {'cclib':'src/cclib'},
      packages=['cclib','cclib.parser','cclib.progress','cclib.method','cclib.bridge'])<commit_msg>Function setup in setup.py is now imported from setuptools if installed (see 'setup.py --help-commands' for new options). Made the file executable, added some classifiers and setup_cclib() function for clarity.<commit_after>#!/usr/bin/env python
"""cclib: parsers and algorithms for computational chemistry

cclib is a Python library that provides parsers for computational
chemistry log files. It also provides a platform to implement
algorithms in a package-independent manner.
"""

doclines = __doc__.split("\n")

# Chosen from http://www.python.org/pypi?:action=list_classifiers
classifiers = """\
Development Status :: 4 - Beta
Environment :: Console
Intended Audience :: Science/Research
Intended Audience :: Developers
License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)
Natural Language :: English
Operating System :: OS Independent
Programming Language :: Python
Topic :: Scientific/Engineering :: Chemistry
Topic :: Software Development :: Libraries :: Python Modules
"""

def setup_cclib():

    # If setuptools is installed, use the more advanced setup function.
    try:
        from setuptools import setup
    except ImportError:
        from distutils.core import setup

    setup(
        name = "cclib",
        version = "0.7",
        url = "http://cclib.sf.net",
        author = "cclib development team",
        author_email = "<EMAIL>",
        maintainer = "cclib development team",
        maintainer_email = "cclib development team",
        license = "LGPL",
        description = doclines[0],
        long_description = "\n".join(doclines[2:]),      
        classifiers = filter(None, classifiers.split("\n")),
        platforms = ["Any."],
        scripts = ["src/scripts/ccget", "src/scripts/cda"],
        package_dir = {'cclib':'src/cclib'},
        packages = ['cclib', 'cclib.parser', 'cclib.progress', 'cclib.method', 'cclib.bridge'] )

if __name__ == '__main__':
    setup_cclib()
{'fraction_non_alphanumeric': 0.12465202598206, 'fraction_numerical': 0.003093102381688834, 'mean_word_length': 3.848575712143928, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5776011', 'n_tokens_mistral': 940, 'n_tokens_neox': 903, 'n_words': 276}