update project metadata
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by David Lord · committed by David Lord · parent 559a46c · Browse files · 13 files·+69 added−135 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
13 files+69 added−135 removed
- other:+69 added−135 removed
Provenance
- Commit
3592995- Tree
5c53474- Author
David Lord <davidism@gmail.com>- Committer
David Lord <davidism@gmail.com>- Parent
559a46c
13 files changed+69 added−135 removed
modified:click/__init__.py-6 removed
1 # -*- coding: utf-8 -*-2 """3-click4-~~~~~5-3 Click is a simple Python module inspired by the stdlib optparse to make4 writing command line scripts fun. Unlike other modules, it's based5 around a simple API that does not come with too much magic and is6 composable.10-11-:copyright: © 2014 by the Pallets team.12-:license: BSD, see LICENSE.rst for more details.7 """8 9 # Core classes10 from .core import Context, BaseCommand, Command, MultiCommand, Group, \81 unmodified linesmodified:click/_termui_impl.py-6 removed
1 # -*- coding: utf-8 -*-2 """3-click._termui_impl4-~~~~~~~~~~~~~~~~~~5-3 This module contains implementations for the termui module. To keep the4 import time of Click down, some infrequently used functionality is5 placed in this module and only imported as needed.9-10-:copyright: © 2014 by the Pallets team.11-:license: BSD, see LICENSE.rst for more details.6 """7 8 import os9 import sys623 unmodified linesmodified:click/parser.py+6 added-3 removed
1 # -*- coding: utf-8 -*-2 """3-click.parser4-~~~~~~~~~~~~5-3 This module started out as largely a copy paste from the stdlib's4 optparse module with the features removed that we do not need from5 optparse because we implement them in Click on a higher level (for6 instance type handling, help formatting and a lot more).3 unmodified lines10 The reason this is a different module and not optparse from the stdlib11 is that there are differences in 2.x and 3.x about the error messages12 generated and optparse in the stdlib uses gettext for no good reason13 and might cause us issues.14+15+Click uses parts of optparse written by Gregory P. Ward and maintained16+by the Python Software Foundation. This is limited to code in parser.py.17+18+Copyright 2001-2006 Gregory P. Ward. All rights reserved.19+Copyright 2002-2006 Python Software Foundation. All rights reserved.20 """21 22 import re23 from collections import deque407 unmodified linesmodified:docs/changelog.rst+2 added-2 removed
1-Changelog2-=========1+Changes2+=======3 4 .. include:: ../CHANGES.rstmodified:docs/license.rst+2 added-12 removed
1-License2-=======1+BSD-3-Clause License2+====================3 4-Click is licensed under a three-clause BSD License. It basically means:5-do whatever you want with it as long as the copyright in Click sticks6-around, the conditions are not modified and the disclaimer is present.7-Furthermore, you must not use the names of the authors to promote derivatives8-of the software without written consent.9-10-License Text11-------------12-4 .. include:: ../LICENSE.rst14-modified:.azure-pipelines.yml+12 added-12 removed
1233456789789101113121315141517161718192021222223242425262627282829303132323334353625 unmodified linestrigger: - master - "*.x" - '*.x'
variables: vmImage: ubuntu-latest python.version: "3.7" TOXENV: py,coverage-ci hasTestResults: true python.version: '3.8' TOXENV: py
strategy: matrix: Python 3.7 Linux: Python 3.8 Linux: vmImage: ubuntu-latest Python 3.7 Windows: Python 3.8 Windows: vmImage: windows-latest Python 3.7 Mac: Python 3.8 Mac: vmImage: macos-latest PyPy 3 Linux: python.version: pypy3 Python 3.7 Linux: python.version: '3.7' Python 3.6 Linux: python.version: 3.6 python.version: '3.6' Python 3.5 Linux: python.version: 3.5 python.version: '3.5' Python 2.7 Linux: python.version: 2.7 python.version: '2.7' Python 2.7 Windows: python.version: 2.7 vmImage: windows-latest python.version: '2.7' Docs: TOXENV: docs hasTestResults: false
pool: vmImage: $(vmImage)
25 unmodified linesmodified:.gitignore+11 added-14 removed
1-*.pyc2-*.pyo1+/.idea/2+/.vscode/3+/env/4+/venv/5 __pycache__/4-.idea/5-.ropeproject6-.DS_Store7-env/8-venv/6+*.pyc7 *.egg-info/10-*.eggs/11-build/12-dist/13-docs/_build/14-.pytest_cache/15-.tox/8+/build/9+/dist/10+/.pytest_cache/11+/.tox/12 .coverage13 .coverage.*18-htmlcov/14+/htmlcov/15+/docs/_build/modified:LICENSE.rst+18 added-29 removed
1-Copyright © 2014 by the Pallets team.1+Copyright 2014 Pallets2 3-Some rights reserved.3+Redistribution and use in source and binary forms, with or without4+modification, are permitted provided that the following conditions are5+met:6 5-Redistribution and use in source and binary forms of the software as6-well as documentation, with or without modification, are permitted7-provided that the following conditions are met:8-9-- Redistributions of source code must retain the above copyright7+1. Redistributions of source code must retain the above copyright8 notice, this list of conditions and the following disclaimer.9 12-- Redistributions in binary form must reproduce the above copyright10+2. Redistributions in binary form must reproduce the above copyright11 notice, this list of conditions and the following disclaimer in the12 documentation and/or other materials provided with the distribution.13 16-- Neither the name of the copyright holder nor the names of its14+3. Neither the name of the copyright holder nor the names of its15 contributors may be used to endorse or promote products derived from16 this software without specific prior written permission.17 20-THIS SOFTWARE AND DOCUMENTATION IS PROVIDED BY THE COPYRIGHT HOLDERS AND21-CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,22-BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND23-FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE24-COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,25-INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT26-NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF27-USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON28-ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT29-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF30-THIS SOFTWARE AND DOCUMENTATION, EVEN IF ADVISED OF THE POSSIBILITY OF31-SUCH DAMAGE.32-33-----34-35-Click uses parts of optparse written by Gregory P. Ward and maintained36-by the Python Software Foundation. This is limited to code in parser.py.37-38-Copyright © 2001-2006 Gregory P. Ward. All rights reserved.39-Copyright © 2002-2006 Python Software Foundation. All rights reserved.18+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS19+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT20+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A21+PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT22+HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,23+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED24+TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR25+PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF26+LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING27+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS28+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.modified:MANIFEST.in+1 added-4 removed
1 include CHANGES.rst2-include CONTRIBUTING.rst3-include LICENSE.rst4-include README.rst2 include tox.ini3 graft artwork4 graft docs5 prune docs/_build6 graft examples7 graft tests11-global-exclude *.py[co] .DS_Store8+global-exclude *.pycmodified:README.rst+8 added-15 removed
22 unmodified lines23 Install and update using `pip`_:24 25 .. code-block:: text26 27- $ pip install click27+ $ pip install -U click28 29-Click supports Python 3.4 and newer, Python 2.7, and PyPy.30-29 .. _pip: https://pip.pypa.io/en/stable/quickstart/30 31 32 A Simple Example33 ----------------34 37-What does it look like? Here is an example of a simple Click program:38-35 .. code-block:: python36 37 import click38 8 unmodified lines47 48 if __name__ == '__main__':49 hello()50 55-And what it looks like when run:56-51 .. code-block:: text52 53 $ python hello.py --count=354 Your name: Click15 unmodified lines70 71 Links72 -----73 80-* Website: https://palletsprojects.com/p/click/81-* Documentation: https://click.palletsprojects.com/82-* License: `BSD <https://github.com/pallets/click/blob/master/LICENSE.rst>`_83-* Releases: https://pypi.org/project/click/84-* Code: https://github.com/pallets/click85-* Issue tracker: https://github.com/pallets/click/issues86-* Test status: https://dev.azure.com/pallets/click/_build87-* Official chat: https://discord.gg/t6rrQZH74+- Website: https://palletsprojects.com/p/click/75+- Documentation: https://click.palletsprojects.com/76+- Releases: https://pypi.org/project/click/77+- Code: https://github.com/pallets/click78+- Issue tracker: https://github.com/pallets/click/issues79+- Test status: https://dev.azure.com/pallets/click/_build80+- Official chat: https://discord.gg/t6rrQZHmodified:setup.cfg+3 added-2 removed
4 unmodified lines5 universal = 16 7 [tool:pytest]8 testpaths = tests9+filterwarnings =10+ error11 12 [coverage:run]13 branch = True14 source =2 unmodified lines17 18 [coverage:paths]19 source =20 click19- .tox/*/lib/python*/site-packages/click20- .tox/pypy/site-packages/click21+ */site-packagesmodified:setup.py+4 added-11 removed
4 unmodified lines5 with io.open("README.rst", "rt", encoding="utf8") as f:6 readme = f.read()7 8 with io.open("click/__init__.py", "rt", encoding="utf8") as f:9- version = re.search(r"__version__ = \'(.*?)\'", f.read()).group(1)9+ version = re.search(r"__version__ = '(.*?)'", f.read()).group(1)10 11 setup(12 name="click",13 version=version,2 unmodified lines16 "Documentation": "https://click.palletsprojects.com/",17 "Code": "https://github.com/pallets/click",18 "Issue tracker": "https://github.com/pallets/click/issues",19 },20- license="BSD",21- author="Armin Ronacher",22- author_email="armin.ronacher@active-4.com",23- maintainer="Pallets Team",20+ license="BSD-3-Clause",21+ maintainer="Pallets",22 maintainer_email="contact@palletsprojects.com",23 description="Composable command line interface toolkit",24 long_description=readme,25 packages=["click"],26 include_package_data=True,29- python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*",27+ python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*",28 classifiers=[29 "Development Status :: 5 - Production/Stable",30 "Intended Audience :: Developers",31 "License :: OSI Approved :: BSD License",32 "Operating System :: OS Independent",33 "Programming Language :: Python",34 "Programming Language :: Python :: 2",37- "Programming Language :: Python :: 2.7",35 "Programming Language :: Python :: 3",39- "Programming Language :: Python :: 3.4",40- "Programming Language :: Python :: 3.5",41- "Programming Language :: Python :: 3.6",42- "Programming Language :: Python :: 3.7",36 ],37 )modified:tox.ini+2 added-19 removed
1 [tox]2 envlist =3- py{37,36,35,27,py3,py}3+ py{38,37,36,35,27,py3,py}4 docs5- coverage5 skip_missing_interpreters = true6 7 [testenv]8 deps =9 pytest11- coverage10 colorama13-commands = coverage run -p -m pytest --tb=short -Werror --basetemp={envtmpdir} {posargs}11+commands = pytest --tb=short --basetemp={envtmpdir} {posargs}12 13 [testenv:docs]14 deps = -r docs/requirements.txt15 commands = sphinx-build -W -b html -d {envtmpdir}/doctrees docs {envtmpdir}/html18-19-[testenv:coverage]20-deps = coverage21-skip_install = true22-commands =23- coverage combine24- coverage html25- coverage report26-27-[testenv:coverage-ci]28-deps = codecov29-skip_install = true30-commands =31- coverage combine32- coverage xml