drop support for Python 2.7 and 3.5
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 19fdc85 · Browse files · 6 files·+43 added−60 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
6 files+43 added−60 removed
- other:+43 added−60 removed
Provenance
- Commit
9374365- Tree
119b91c- Author
David Lord <davidism@gmail.com>- Committer
David Lord <davidism@gmail.com>- Parent
19fdc85
6 files changed+43 added−60 removed
modified:.azure-pipelines.yml+8 added-15 removed
7 unmodified lines8910111212131414151616171819201819222021242526272829302223242526273 unmodified lines313233344235363738393 unmodified lines7 unmodified lines TOXENV: py
strategy: matrix: Python 3.8 Linux: Linux: vmImage: ubuntu-latest Python 3.8 Windows: Windows: vmImage: windows-latest Python 3.8 Mac: Mac: vmImage: macos-latest PyPy 3 Linux: python.version: pypy3 Python 3.7 Linux: Python 3.7: python.version: '3.7' Python 3.6 Linux: Python 3.6: python.version: '3.6' Python 3.5 Linux: python.version: '3.5' Python 2.7 Linux: python.version: '2.7' Python 2.7 Windows: vmImage: windows-latest python.version: '2.7' PyPy: python.version: pypy3 Docs: TOXENV: docs Style: TOXENV: style3 unmodified lines
steps: - task: UsePythonVersion@0 inputs: versionSpec: "$(python.version)" versionSpec: $(python.version) displayName: Use Python $(python.version)
- script: pip --disable-pip-version-check install -U tox displayName: Install tox3 unmodified linesmodified:.pre-commit-config.yaml+2 added-2 removed
12334567789101116 unmodified linesrepos: - repo: https://github.com/asottile/pyupgrade rev: v2.1.0 rev: v2.2.0 hooks: - id: pyupgrade - repo: https://github.com/asottile/reorder_python_imports rev: v2.0.0 rev: v2.2.0 hooks: - id: reorder-python-imports args: ["--application-directories", "src"] - repo: https://github.com/ambv/black16 unmodified linesmodified:CHANGES.rst+1 added
3 unmodified lines4 -----------5 6 Unreleased7 8+- Drop support for Python 2 and 3.5.9 - Adds a repr to Command, showing the command name for friendlier10 debugging. :issue:`1267`, :pr:`1295`11 - Add support for distinguishing the source of a command line12 parameter. :issue:`1264`, :pr:`1329`627 unmodified linesmodified:setup.cfg+30 added-4 removed
1 [metadata]2+name = click3+version = attr: click.__version__4+url = https://palletsprojects.com/p/click/5+project_urls =6+ Documentation = https://click.palletsprojects.com/7+ Code = https://github.com/pallets/click8+ Issue tracker = https://github.com/pallets/click/issues9+license = BSD-3-Clause2-license_file = LICENSE.rst10+license_files = LICENSE.rst11+maintainer = Pallets12+maintainer_email = contact@palletsprojects.com13+description = Composable command line interface toolkit14+long_description = file: README.rst15+long_description_content_type = text/x-rst16+classifiers =17+ Development Status :: 5 - Production/Stable18+ Intended Audience :: Developers19+ License :: OSI Approved :: BSD License20+ Operating System :: OS Independent21+ Programming Language :: Python22 4-[bdist_wheel]5-universal = 123+[options]24+packages = find:25+package_dir = = src26+include_package_data = true27+python_requires = >= 3.628+# Dependencies are in setup.py for GitHub's dependency graph.29 30+[options.packages.find]31+where = src32+33 [tool:pytest]34 testpaths = tests35 filterwarnings =36 error37 38 [coverage:run]13-branch = True39+branch = true40 source =41 src42 tests43 27 unmodified linesmodified:setup.py+1 added-38 removed
1-import io2-import re3-4-from setuptools import find_packages1 from setuptools import setup2 7-with io.open("README.rst", "rt", encoding="utf8") as f:8- readme = f.read()9-10-with io.open("src/click/__init__.py", "rt", encoding="utf8") as f:11- version = re.search(r'__version__ = "(.*?)"', f.read()).group(1)12-13-setup(14- name="click",15- version=version,16- url="https://palletsprojects.com/p/click/",17- project_urls={18- "Documentation": "https://click.palletsprojects.com/",19- "Code": "https://github.com/pallets/click",20- "Issue tracker": "https://github.com/pallets/click/issues",21- },22- license="BSD-3-Clause",23- maintainer="Pallets",24- maintainer_email="contact@palletsprojects.com",25- description="Composable command line interface toolkit",26- long_description=readme,27- packages=find_packages("src"),28- package_dir={"": "src"},29- include_package_data=True,30- python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*",31- classifiers=[32- "Development Status :: 5 - Production/Stable",33- "Intended Audience :: Developers",34- "License :: OSI Approved :: BSD License",35- "Operating System :: OS Independent",36- "Programming Language :: Python",37- "Programming Language :: Python :: 2",38- "Programming Language :: Python :: 3",39- ],40-)3+setup(name="click")modified:tox.ini+1 added-1 removed
1 [tox]2 envlist =3- py{38,37,36,35,27,py3,py}3+ py{38,37,36,py3}4 style5 docs6 skip_missing_interpreters = true7 14 unmodified lines