EditorConfig-0.12.2/0000775000175100017510000000000013265555545014163 5ustar treytrey00000000000000EditorConfig-0.12.2/setup.cfg0000664000175100017510000000004613265555545016004 0ustar treytrey00000000000000[egg_info] tag_build = tag_date = 0 EditorConfig-0.12.2/PKG-INFO0000664000175100017510000001021613265555545015260 0ustar treytrey00000000000000Metadata-Version: 1.1 Name: EditorConfig Version: 0.12.2 Summary: EditorConfig File Locator and Interpreter for Python Home-page: http://editorconfig.org/ Author: EditorConfig Team Author-email: UNKNOWN License: python Description-Content-Type: UNKNOWN Description: ======================== EditorConfig Python Core ======================== .. image:: https://img.shields.io/pypi/v/EditorConfig.svg :target: https://pypi.python.org/pypi/EditorConfig .. image:: https://img.shields.io/pypi/wheel/EditorConfig.svg :target: https://pypi.python.org/pypi/EditorConfig .. image:: https://img.shields.io/pypi/pyversions/EditorConfig.svg :target: https://pypi.python.org/pypi/EditorConfig .. image:: https://secure.travis-ci.org/editorconfig/editorconfig-core-py.svg?branch=master :target: http://travis-ci.org/editorconfig/editorconfig-core-py EditorConfig Python Core provides the same functionality as the `EditorConfig C Core `_. EditorConfig Python core can be used as a command line program or as an importable library. EditorConfig Project ==================== EditorConfig makes it easy to maintain the correct coding style when switching between different text editors and between different projects. The EditorConfig project maintains a file format and plugins for various text editors which allow this file format to be read and used by those editors. For information on the file format and supported text editors, see the `EditorConfig website `_. Installation ============ With setuptools:: sudo python setup.py install Getting Help ============ For help with the EditorConfig core code, please write to our `mailing list `_. Bugs and feature requests should be submitted to our `issue tracker `_. If you are writing a plugin a language that can import Python libraries, you may want to import and use the EditorConfig Python Core directly. Using as a Library ================== Basic example use of EditorConfig Python Core as a library: .. code-block:: python from editorconfig import get_properties, EditorConfigError filename = "/home/zoidberg/humans/anatomy.md" try: options = get_properties(filename) except EditorConfigError: print "Error occurred while getting EditorConfig properties" else: for key, value in options.items(): print "%s=%s" % (key, value) For details, please take a look at the `online documentation `_. Running Test Cases ================== `Cmake `_ has to be installed first. Run the test cases using the following commands:: cmake . ctest . Use ``-DPYTHON_EXECUTABLE`` to run the tests using an alternative versions of Python (e.g. Python 3):: cmake -DPYTHON_EXECUTABLE=/usr/bin/python3 . ctest . License ======= See COPYING file for licensing details. Platform: UNKNOWN Classifier: License :: OSI Approved :: Python Software Foundation License Classifier: Operating System :: OS Independent Classifier: Programming Language :: Python Classifier: Programming Language :: Python :: 2.7 Classifier: Programming Language :: Python :: 3 Classifier: Programming Language :: Python :: 3.4 Classifier: Programming Language :: Python :: 3.5 Classifier: Programming Language :: Python :: 3.6 Classifier: Programming Language :: Python :: Implementation :: PyPy EditorConfig-0.12.2/setup.py0000664000175100017510000000172513265270472015673 0ustar treytrey00000000000000from setuptools import setup import editorconfig setup( name='EditorConfig', version=editorconfig.__version__, author='EditorConfig Team', packages=['editorconfig'], url='http://editorconfig.org/', license='python', description='EditorConfig File Locator and Interpreter for Python', long_description=open('README.rst').read(), entry_points = { 'console_scripts': [ 'editorconfig = editorconfig.main:main', ] }, classifiers=[ 'License :: OSI Approved :: Python Software Foundation License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: Implementation :: PyPy', ], ) EditorConfig-0.12.2/LICENSE.PSF0000664000175100017510000002316413265555340015616 0ustar treytrey00000000000000PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2 -------------------------------------------- 1. This LICENSE AGREEMENT is between the Python Software Foundation ("PSF"), and the Individual or Organization ("Licensee") accessing and otherwise using this software ("Python") in source or binary form and its associated documentation. 2. Subject to the terms and conditions of this License Agreement, PSF hereby grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce, analyze, test, perform and/or display publicly, prepare derivative works, distribute, and otherwise use Python alone or in any derivative version, provided, however, that PSF's License Agreement and PSF's notice of copyright, i.e., "Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Python Software Foundation; All Rights Reserved" are retained in Python alone or in any derivative version prepared by Licensee. 3. In the event Licensee prepares a derivative work that is based on or incorporates Python or any part thereof, and wants to make the derivative work available to others as provided herein, then Licensee hereby agrees to include in any such work a brief summary of the changes made to Python. 4. PSF is making Python available to Licensee on an "AS IS" basis. PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON WILL NOT INFRINGE ANY THIRD PARTY RIGHTS. 5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON, OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. 6. This License Agreement will automatically terminate upon a material breach of its terms and conditions. 7. Nothing in this License Agreement shall be deemed to create any relationship of agency, partnership, or joint venture between PSF and Licensee. This License Agreement does not grant permission to use PSF trademarks or trade name in a trademark sense to endorse or promote products or services of Licensee, or any third party. 8. By copying, installing or otherwise using Python, Licensee agrees to be bound by the terms and conditions of this License Agreement. BEOPEN.COM LICENSE AGREEMENT FOR PYTHON 2.0 ------------------------------------------- BEOPEN PYTHON OPEN SOURCE LICENSE AGREEMENT VERSION 1 1. This LICENSE AGREEMENT is between BeOpen.com ("BeOpen"), having an office at 160 Saratoga Avenue, Santa Clara, CA 95051, and the Individual or Organization ("Licensee") accessing and otherwise using this software in source or binary form and its associated documentation ("the Software"). 2. Subject to the terms and conditions of this BeOpen Python License Agreement, BeOpen hereby grants Licensee a non-exclusive, royalty-free, world-wide license to reproduce, analyze, test, perform and/or display publicly, prepare derivative works, distribute, and otherwise use the Software alone or in any derivative version, provided, however, that the BeOpen Python License is retained in the Software, alone or in any derivative version prepared by Licensee. 3. BeOpen is making the Software available to Licensee on an "AS IS" basis. BEOPEN MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, BEOPEN MAKES NO AND DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE WILL NOT INFRINGE ANY THIRD PARTY RIGHTS. 4. BEOPEN SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF THE SOFTWARE FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THE SOFTWARE, OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. 5. This License Agreement will automatically terminate upon a material breach of its terms and conditions. 6. This License Agreement shall be governed by and interpreted in all respects by the law of the State of California, excluding conflict of law provisions. Nothing in this License Agreement shall be deemed to create any relationship of agency, partnership, or joint venture between BeOpen and Licensee. This License Agreement does not grant permission to use BeOpen trademarks or trade names in a trademark sense to endorse or promote products or services of Licensee, or any third party. As an exception, the "BeOpen Python" logos available at http://www.pythonlabs.com/logos.html may be used according to the permissions granted on that web page. 7. By copying, installing or otherwise using the software, Licensee agrees to be bound by the terms and conditions of this License Agreement. CNRI LICENSE AGREEMENT FOR PYTHON 1.6.1 --------------------------------------- 1. This LICENSE AGREEMENT is between the Corporation for National Research Initiatives, having an office at 1895 Preston White Drive, Reston, VA 20191 ("CNRI"), and the Individual or Organization ("Licensee") accessing and otherwise using Python 1.6.1 software in source or binary form and its associated documentation. 2. Subject to the terms and conditions of this License Agreement, CNRI hereby grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce, analyze, test, perform and/or display publicly, prepare derivative works, distribute, and otherwise use Python 1.6.1 alone or in any derivative version, provided, however, that CNRI's License Agreement and CNRI's notice of copyright, i.e., "Copyright (c) 1995-2001 Corporation for National Research Initiatives; All Rights Reserved" are retained in Python 1.6.1 alone or in any derivative version prepared by Licensee. Alternately, in lieu of CNRI's License Agreement, Licensee may substitute the following text (omitting the quotes): "Python 1.6.1 is made available subject to the terms and conditions in CNRI's License Agreement. This Agreement together with Python 1.6.1 may be located on the Internet using the following unique, persistent identifier (known as a handle): 1895.22/1013. This Agreement may also be obtained from a proxy server on the Internet using the following URL: http://hdl.handle.net/1895.22/1013". 3. In the event Licensee prepares a derivative work that is based on or incorporates Python 1.6.1 or any part thereof, and wants to make the derivative work available to others as provided herein, then Licensee hereby agrees to include in any such work a brief summary of the changes made to Python 1.6.1. 4. CNRI is making Python 1.6.1 available to Licensee on an "AS IS" basis. CNRI MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, CNRI MAKES NO AND DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON 1.6.1 WILL NOT INFRINGE ANY THIRD PARTY RIGHTS. 5. CNRI SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON 1.6.1 FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON 1.6.1, OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. 6. This License Agreement will automatically terminate upon a material breach of its terms and conditions. 7. This License Agreement shall be governed by the federal intellectual property law of the United States, including without limitation the federal copyright law, and, to the extent such U.S. federal law does not apply, by the law of the Commonwealth of Virginia, excluding Virginia's conflict of law provisions. Notwithstanding the foregoing, with regard to derivative works based on Python 1.6.1 that incorporate non-separable material that was previously distributed under the GNU General Public License (GPL), the law of the Commonwealth of Virginia shall govern this License Agreement only as to issues arising under or with respect to Paragraphs 4, 5, and 7 of this License Agreement. Nothing in this License Agreement shall be deemed to create any relationship of agency, partnership, or joint venture between CNRI and Licensee. This License Agreement does not grant permission to use CNRI trademarks or trade name in a trademark sense to endorse or promote products or services of Licensee, or any third party. 8. By clicking on the "ACCEPT" button where indicated, or by copying, installing or otherwise using Python 1.6.1, Licensee agrees to be bound by the terms and conditions of this License Agreement. ACCEPT CWI LICENSE AGREEMENT FOR PYTHON 0.9.0 THROUGH 1.2 -------------------------------------------------- Copyright (c) 1991 - 1995, Stichting Mathematisch Centrum Amsterdam, The Netherlands. All rights reserved. Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation, and that the name of Stichting Mathematisch Centrum or CWI not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission. STICHTING MATHEMATISCH CENTRUM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH CENTRUM BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. EditorConfig-0.12.2/MANIFEST.in0000664000175100017510000000006313265555340015711 0ustar treytrey00000000000000include COPYING README.rst LICENSE.BSD LICENSE.PSF EditorConfig-0.12.2/EditorConfig.egg-info/0000775000175100017510000000000013265555545020231 5ustar treytrey00000000000000EditorConfig-0.12.2/EditorConfig.egg-info/PKG-INFO0000664000175100017510000001021613265555545021326 0ustar treytrey00000000000000Metadata-Version: 1.1 Name: EditorConfig Version: 0.12.2 Summary: EditorConfig File Locator and Interpreter for Python Home-page: http://editorconfig.org/ Author: EditorConfig Team Author-email: UNKNOWN License: python Description-Content-Type: UNKNOWN Description: ======================== EditorConfig Python Core ======================== .. image:: https://img.shields.io/pypi/v/EditorConfig.svg :target: https://pypi.python.org/pypi/EditorConfig .. image:: https://img.shields.io/pypi/wheel/EditorConfig.svg :target: https://pypi.python.org/pypi/EditorConfig .. image:: https://img.shields.io/pypi/pyversions/EditorConfig.svg :target: https://pypi.python.org/pypi/EditorConfig .. image:: https://secure.travis-ci.org/editorconfig/editorconfig-core-py.svg?branch=master :target: http://travis-ci.org/editorconfig/editorconfig-core-py EditorConfig Python Core provides the same functionality as the `EditorConfig C Core `_. EditorConfig Python core can be used as a command line program or as an importable library. EditorConfig Project ==================== EditorConfig makes it easy to maintain the correct coding style when switching between different text editors and between different projects. The EditorConfig project maintains a file format and plugins for various text editors which allow this file format to be read and used by those editors. For information on the file format and supported text editors, see the `EditorConfig website `_. Installation ============ With setuptools:: sudo python setup.py install Getting Help ============ For help with the EditorConfig core code, please write to our `mailing list `_. Bugs and feature requests should be submitted to our `issue tracker `_. If you are writing a plugin a language that can import Python libraries, you may want to import and use the EditorConfig Python Core directly. Using as a Library ================== Basic example use of EditorConfig Python Core as a library: .. code-block:: python from editorconfig import get_properties, EditorConfigError filename = "/home/zoidberg/humans/anatomy.md" try: options = get_properties(filename) except EditorConfigError: print "Error occurred while getting EditorConfig properties" else: for key, value in options.items(): print "%s=%s" % (key, value) For details, please take a look at the `online documentation `_. Running Test Cases ================== `Cmake `_ has to be installed first. Run the test cases using the following commands:: cmake . ctest . Use ``-DPYTHON_EXECUTABLE`` to run the tests using an alternative versions of Python (e.g. Python 3):: cmake -DPYTHON_EXECUTABLE=/usr/bin/python3 . ctest . License ======= See COPYING file for licensing details. Platform: UNKNOWN Classifier: License :: OSI Approved :: Python Software Foundation License Classifier: Operating System :: OS Independent Classifier: Programming Language :: Python Classifier: Programming Language :: Python :: 2.7 Classifier: Programming Language :: Python :: 3 Classifier: Programming Language :: Python :: 3.4 Classifier: Programming Language :: Python :: 3.5 Classifier: Programming Language :: Python :: 3.6 Classifier: Programming Language :: Python :: Implementation :: PyPy EditorConfig-0.12.2/EditorConfig.egg-info/SOURCES.txt0000664000175100017510000000066713265555545022126 0ustar treytrey00000000000000COPYING LICENSE.BSD LICENSE.PSF MANIFEST.in README.rst setup.py EditorConfig.egg-info/PKG-INFO EditorConfig.egg-info/SOURCES.txt EditorConfig.egg-info/dependency_links.txt EditorConfig.egg-info/entry_points.txt EditorConfig.egg-info/top_level.txt editorconfig/__init__.py editorconfig/compat.py editorconfig/exceptions.py editorconfig/fnmatch.py editorconfig/handler.py editorconfig/ini.py editorconfig/main.py editorconfig/versiontools.pyEditorConfig-0.12.2/EditorConfig.egg-info/top_level.txt0000664000175100017510000000001513265555545022757 0ustar treytrey00000000000000editorconfig EditorConfig-0.12.2/EditorConfig.egg-info/dependency_links.txt0000664000175100017510000000000113265555545024277 0ustar treytrey00000000000000 EditorConfig-0.12.2/EditorConfig.egg-info/entry_points.txt0000664000175100017510000000007113265555545023525 0ustar treytrey00000000000000[console_scripts] editorconfig = editorconfig.main:main EditorConfig-0.12.2/COPYING0000664000175100017510000000105613265555340015211 0ustar treytrey00000000000000Copyright 2011-2018 EditorConfig Team, including Hong Xu and Trey Hunner editorconfig-core-py is free software. You are free to copy, modify, and/or redistribute this work under the terms of the BSD 2-clause license. See the file "LICENSE.BSD" for details. Parts of this work – the files "fnmatch.py" and "ini.py" - are derived from work with copyright held by the Python Software Foundation. You are free to copy, modify, and/or redistribute those parts under the terms of the Python Software Foundation license. See the file "LICENSE.PSF" for details. EditorConfig-0.12.2/editorconfig/0000775000175100017510000000000013265555545016637 5ustar treytrey00000000000000EditorConfig-0.12.2/editorconfig/ini.py0000664000175100017510000001446113265555340017767 0ustar treytrey00000000000000"""EditorConfig file parser Based on code from ConfigParser.py file distributed with Python 2.6. Licensed under PSF License (see LICENSE.PSF file). Changes to original ConfigParser: - Special characters can be used in section names - Octothorpe can be used for comments (not just at beginning of line) - Only track INI options in sections that match target filename - Stop parsing files with when ``root = true`` is found """ import posixpath import re from codecs import open from collections import OrderedDict from os import sep from os.path import dirname, normpath from editorconfig.compat import u from editorconfig.exceptions import ParsingError from editorconfig.fnmatch import fnmatch __all__ = ["ParsingError", "EditorConfigParser"] class EditorConfigParser(object): """Parser for EditorConfig-style configuration files Based on RawConfigParser from ConfigParser.py in Python 2.6. """ # Regular expressions for parsing section headers and options. # Allow ``]`` and escaped ``;`` and ``#`` characters in section headers SECTCRE = re.compile( r""" \s * # Optional whitespace \[ # Opening square brace (?P
# One or more characters excluding ( [^\#;] | \\\# | \\; ) + # unescaped # and ; characters ) \] # Closing square brace """, re.VERBOSE ) # Regular expression for parsing option name/values. # Allow any amount of whitespaces, followed by separator # (either ``:`` or ``=``), followed by any amount of whitespace and then # any characters to eol OPTCRE = re.compile( r""" \s * # Optional whitespace (?P