Skip to content
Myr

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

13 files+69 added−135 removed

modified:click/__init__.py-6 removed
1# -*- coding: utf-8 -*-2"""3click4~~~~~53Click is a simple Python module inspired by the stdlib optparse to make4writing command line scripts fun. Unlike other modules, it's based5around a simple API that does not come with too much magic and is6composable.1011:copyright: © 2014 by the Pallets team.12:license: BSD, see LICENSE.rst for more details.7"""89# Core classes10from .core import Context, BaseCommand, Command, MultiCommand, Group, \
81 unmodified lines
modified:click/_termui_impl.py-6 removed
1# -*- coding: utf-8 -*-2"""3click._termui_impl4~~~~~~~~~~~~~~~~~~53This module contains implementations for the termui module. To keep the4import time of Click down, some infrequently used functionality is5placed in this module and only imported as needed.910:copyright: © 2014 by the Pallets team.11:license: BSD, see LICENSE.rst for more details.6"""78import os9import sys
623 unmodified lines
modified:click/parser.py+6 added-3 removed
1# -*- coding: utf-8 -*-2"""3click.parser4~~~~~~~~~~~~53This module started out as largely a copy paste from the stdlib's4optparse module with the features removed that we do not need from5optparse because we implement them in Click on a higher level (for6instance type handling, help formatting and a lot more).
3 unmodified lines
10The reason this is a different module and not optparse from the stdlib11is that there are differences in 2.x and 3.x about the error messages12generated and optparse in the stdlib uses gettext for no good reason13and might cause us issues.1415Click uses parts of optparse written by Gregory P. Ward and maintained16by the Python Software Foundation. This is limited to code in parser.py.1718Copyright 2001-2006 Gregory P. Ward. All rights reserved.19Copyright 2002-2006 Python Software Foundation. All rights reserved.20"""2122import re23from collections import deque
407 unmodified lines
modified:docs/changelog.rst+2 added-2 removed
1Changelog2=========1Changes2=======34.. include:: ../CHANGES.rst
modified:docs/license.rst+2 added-12 removed
1License2=======1BSD-3-Clause License2====================34Click is licensed under a three-clause BSD License. It basically means:5do whatever you want with it as long as the copyright in Click sticks6around, the conditions are not modified and the disclaimer is present.7Furthermore, you must not use the names of the authors to promote derivatives8of the software without written consent.910License Text11------------124.. include:: ../LICENSE.rst14
modified:.azure-pipelines.yml+12 added-12 removed
modified:.gitignore+11 added-14 removed
1*.pyc2*.pyo1/.idea/2/.vscode/3/env/4/venv/5__pycache__/4.idea/5.ropeproject6.DS_Store7env/8venv/6*.pyc7*.egg-info/10*.eggs/11build/12dist/13docs/_build/14.pytest_cache/15.tox/8/build/9/dist/10/.pytest_cache/11/.tox/12.coverage13.coverage.*18htmlcov/14/htmlcov/15/docs/_build/
modified:LICENSE.rst+18 added-29 removed
1Copyright © 2014 by the Pallets team.1Copyright 2014 Pallets23Some rights reserved.3Redistribution and use in source and binary forms, with or without4modification, are permitted provided that the following conditions are5met:65Redistribution and use in source and binary forms of the software as6well as documentation, with or without modification, are permitted7provided that the following conditions are met:89- Redistributions of source code must retain the above copyright71. Redistributions of source code must retain the above copyright8 notice, this list of conditions and the following disclaimer.912- Redistributions in binary form must reproduce the above copyright102. 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.1316- Neither the name of the copyright holder nor the names of its143. 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.1720THIS SOFTWARE AND DOCUMENTATION IS PROVIDED BY THE COPYRIGHT HOLDERS AND21CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,22BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND23FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE24COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,25INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT26NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF27USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON28ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT29(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF30THIS SOFTWARE AND DOCUMENTATION, EVEN IF ADVISED OF THE POSSIBILITY OF31SUCH DAMAGE.3233----3435Click uses parts of optparse written by Gregory P. Ward and maintained36by the Python Software Foundation. This is limited to code in parser.py.3738Copyright © 2001-2006 Gregory P. Ward. All rights reserved.39Copyright © 2002-2006 Python Software Foundation. All rights reserved.18THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS19"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT20LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A21PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT22HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,23SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED24TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR25PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF26LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING27NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS28SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
modified:MANIFEST.in+1 added-4 removed
1include CHANGES.rst2include CONTRIBUTING.rst3include LICENSE.rst4include README.rst2include tox.ini3graft artwork4graft docs5prune docs/_build6graft examples7graft tests11global-exclude *.py[co] .DS_Store8global-exclude *.pyc
modified:README.rst+8 added-15 removed
22 unmodified lines
23Install and update using `pip`_:2425.. code-block:: text2627 $ pip install click27 $ pip install -U click2829Click supports Python 3.4 and newer, Python 2.7, and PyPy.3029.. _pip: https://pip.pypa.io/en/stable/quickstart/303132A Simple Example33----------------3437What does it look like? Here is an example of a simple Click program:3835.. code-block:: python3637 import click38
8 unmodified lines
4748 if __name__ == '__main__':49 hello()5055And what it looks like when run:5651.. code-block:: text5253 $ python hello.py --count=354 Your name: Click
15 unmodified lines
7071Links72-----7380* 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/t6rrQZH
modified:setup.cfg+3 added-2 removed
4 unmodified lines
5universal = 167[tool:pytest]8testpaths = tests9filterwarnings =10 error1112[coverage:run]13branch = True14source =
2 unmodified lines
1718[coverage:paths]19source =20 click19 .tox/*/lib/python*/site-packages/click20 .tox/pypy/site-packages/click21 */site-packages
modified:setup.py+4 added-11 removed
4 unmodified lines
5with io.open("README.rst", "rt", encoding="utf8") as f:6 readme = f.read()78with 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)1011setup(12 name="click",13 version=version,
2 unmodified lines
16 "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]2envlist =3 py{37,36,35,27,py3,py}3 py{38,37,36,35,27,py3,py}4 docs5 coverage5skip_missing_interpreters = true67[testenv]8deps =9 pytest11 coverage10 colorama13commands = coverage run -p -m pytest --tb=short -Werror --basetemp={envtmpdir} {posargs}11commands = pytest --tb=short --basetemp={envtmpdir} {posargs}1213[testenv:docs]14deps = -r docs/requirements.txt15commands = sphinx-build -W -b html -d {envtmpdir}/doctrees docs {envtmpdir}/html1819[testenv:coverage]20deps = coverage21skip_install = true22commands =23 coverage combine24 coverage html25 coverage report2627[testenv:coverage-ci]28deps = codecov29skip_install = true30commands =31 coverage combine32 coverage xml