Merge pull request #1774 from pallets/update-project
Before adoption: this commit came in with the history the project adopted, so no landing records it.
update issue templates, contributing guide, requirements
authored by David Lord · committed by GitHub · parents fbe33ba, cc54113 · Browse files · 8 files·+86 added−106 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
8 files+86 added−106 removed
- other:+86 added−106 removed
Provenance
- Commit
506e4eb- Tree
a94c005- Author
David Lord <davidism@gmail.com>- Committer
GitHub <noreply@github.com>- Parent 1
fbe33ba- Parent 2
cc54113
8 files changed+86 added−106 removed
modified:.github/ISSUE_TEMPLATE/bug-report.md+14 added-26 removed
2 unmodified lines345678910789121314151610111213141520161718192220212223242526242528293031323334353637383926272 unmodified linesabout: Report a bug in Click (not other projects which depend on Click)---
<!--This issue tracker is a tool to address bugs in Click itself.Please use the #pocoo IRC channel on freenode, the Discord server orStack Overflow for general questions about using Flask or issuesnot related to Click.This issue tracker is a tool to address bugs in Click itself. Please usePallets Discord or Stack Overflow for questions about your own code.
If you'd like to report a bug in Click, fill out the template below. Provideany extra information that may be useful / related to your problem.Ideally, create an [MCVE](https://stackoverflow.com/help/mcve), which helps usunderstand the problem and helps check that it is not caused by something inyour code.Replace this comment with a clear outline of what the bug is.-->
<!--Describe how to replicate the bug.
### Expected BehaviorInclude a minimal reproducible example that demonstrates the bug.Include the full traceback if there was an exception.-->
Tell us what should happen.<!--Describe the expected behavior that should have happened but didn't.-->
```pythonPaste a minimal example that causes the problem.```Environment:
### Actual Behavior
Tell us what happens instead.
```pytbPaste the full traceback if there was an exception.```
### Environment
* Python version:* Click version:- Python version:- Click version:modified:.github/workflows/tests.yaml-6 removed
21 unmodified lines22232425262627282911 unmodified lines41424344464748495045464721 unmodified lines - {name: '3.8', python: '3.8', os: ubuntu-latest, tox: py38} - {name: '3.7', python: '3.7', os: ubuntu-latest, tox: py37} - {name: '3.6', python: '3.6', os: ubuntu-latest, tox: py36} - {name: 'PyPy', python: pypy3, os: ubuntu-latest, tox: pypy3} - {name: Style, python: '3.9', os: ubuntu-latest, tox: style} - {name: Docs, python: '3.9', os: ubuntu-latest, tox: docs} steps: - uses: actions/checkout@v2 - uses: actions/setup-python@v211 unmodified lines uses: actions/cache@v1 with: path: ${{ steps.pip-cache.outputs.dir }} key: pip|${{ runner.os }}|${{ matrix.python }}|${{ hashFiles('setup.py') }}|${{ hashFiles('requirements/*.txt') }} - name: cache pre-commit uses: actions/cache@v1 with: path: ~/.cache/pre-commit key: pre-commit|${{ matrix.python }}|${{ hashFiles('.pre-commit-config.yaml') }} if: matrix.tox == 'style' - run: pip install tox - run: tox -e ${{ matrix.tox }}modified:.github/pull_request_template.md+11 added-6 removed
1134234567898101112131114151614171819202122237 unmodified lines
<!--Before opening a PR, open a ticket describing the issue or feature the PR will address. Follow the steps in CONTRIBUTING.rst.Replace this comment with a description of the change. Describe how it addresses the linked ticket.Before opening a PR, open a ticket describing the issue or feature thePR will address. Follow the steps in CONTRIBUTING.rst.
Replace this comment with a description of the change. Describe how itaddresses the linked ticket.-->
<!--Link to relevant issues or previous PRs, one per line. Use "fixes" to automatically close an issue.Link to relevant issues or previous PRs, one per line. Use "fixes" toautomatically close an issue.-->
- Fixes #<issue number>- fixes #<issue number>
<!--Ensure each step in CONTRIBUTING.rst is complete by adding an "x" to each box below.Ensure each step in CONTRIBUTING.rst is complete by adding an "x" toeach box below.
If only docs were changed, these aren't relevant and can be removed.-->
Checklist:7 unmodified linesmodified:requirements/dev.txt+25 added-26 removed
6 unmodified lines7 alabaster==0.7.128 # via sphinx9 appdirs==1.4.410 # via virtualenv11-attrs==19.3.011+attrs==20.3.012 # via pytest13-babel==2.8.013+babel==2.9.014 # via sphinx15-certifi==2020.4.5.115+certifi==2020.12.516 # via requests17-cfgv==3.1.017+cfgv==3.2.018 # via pre-commit19-chardet==3.0.419+chardet==4.0.020 # via requests21 click==7.1.222 # via pip-tools23 colorama==0.4.424 # via -r requirements/tests.in25-distlib==0.3.025+distlib==0.3.126 # via virtualenv27 docutils==0.1628 # via sphinx29 filelock==3.0.1230 # via31 # tox32 # virtualenv33-identify==1.4.1633+identify==1.5.1334 # via pre-commit35-idna==2.935+idna==2.1036 # via requests37 imagesize==1.2.038 # via sphinx39 importlib-metadata==3.4.040 # via -r requirements/tests.in41-iniconfig==1.0.041+iniconfig==1.1.142 # via pytest43-jinja2==2.11.243+jinja2==2.11.344 # via sphinx45 markupsafe==1.1.146 # via jinja247-nodeenv==1.3.547+nodeenv==1.5.048 # via pre-commit49-packaging==20.449+packaging==20.950 # via51 # pallets-sphinx-themes52 # pytest53 # sphinx5 unmodified lines59 pluggy==0.13.160 # via61 # pytest62 # tox63-pre-commit==2.10.063+pre-commit==2.10.164 # via -r requirements/dev.in65-py==1.9.065+py==1.10.066 # via67 # pytest68 # tox69-pygments==2.6.169+pygments==2.7.470 # via71 # sphinx72 # sphinx-tabs73 pyparsing==2.4.774 # via packaging75 pytest==6.2.276 # via -r requirements/tests.in77-pytz==2020.177+pytz==2021.178 # via babel79-pyyaml==5.3.179+pyyaml==5.4.180 # via pre-commit81-requests==2.23.081+requests==2.25.182 # via sphinx83 six==1.15.084 # via85- # packaging85 # tox86 # virtualenv88-snowballstemmer==2.0.087+snowballstemmer==2.1.088 # via sphinx89 sphinx-issues==1.2.090 # via -r requirements/docs.in92-sphinx-tabs==2.0.091+sphinx-tabs==2.0.192 # via -r requirements/docs.in93 sphinx==3.4.394 # via95 # -r requirements/docs.in14 unmodified lines110 sphinxcontrib-qthelp==1.0.3111 # via sphinx112 sphinxcontrib-serializinghtml==1.1.4113 # via sphinx115-toml==0.10.1114+toml==0.10.2115 # via116 # pre-commit117 # pytest118 # tox120-tox==3.21.3119+tox==3.21.4120 # via -r requirements/dev.in122-urllib3==1.25.9121+urllib3==1.26.3122 # via requests124-virtualenv==20.0.21123+virtualenv==20.4.2124 # via125 # pre-commit126 # tox128-zipp==3.1.0127+zipp==3.4.0128 # via importlib-metadata129 130 # The following packages are considered to be unsafe in a requirements file:131 # pip1 unmodified linemodified:requirements/docs.txt+12 added-14 removed
4 unmodified lines5 # pip-compile requirements/docs.in6 #7 alabaster==0.7.128 # via sphinx9-babel==2.8.09+babel==2.9.010 # via sphinx11-certifi==2020.4.5.111+certifi==2020.12.512 # via requests13-chardet==3.0.413+chardet==4.0.014 # via requests15 docutils==0.1616 # via sphinx17-idna==2.917+idna==2.1018 # via requests19 imagesize==1.2.020 # via sphinx21-jinja2==2.11.221+jinja2==2.11.322 # via sphinx23 markupsafe==1.1.124 # via jinja225-packaging==20.425+packaging==20.926 # via27 # pallets-sphinx-themes28 # sphinx29 pallets-sphinx-themes==1.2.330 # via -r requirements/docs.in31-pygments==2.6.131+pygments==2.7.432 # via33 # sphinx34 # sphinx-tabs35 pyparsing==2.4.736 # via packaging37-pytz==2020.137+pytz==2021.138 # via babel39-requests==2.23.039+requests==2.25.140 # via sphinx41-six==1.15.042- # via packaging43-snowballstemmer==2.0.041+snowballstemmer==2.1.042 # via sphinx43 sphinx-issues==1.2.044 # via -r requirements/docs.in47-sphinx-tabs==2.0.045+sphinx-tabs==2.0.146 # via -r requirements/docs.in47 sphinx==3.4.348 # via49 # -r requirements/docs.in14 unmodified lines64 sphinxcontrib-qthelp==1.0.365 # via sphinx66 sphinxcontrib-serializinghtml==1.1.467 # via sphinx70-urllib3==1.25.968+urllib3==1.26.369 # via requests70 71 # The following packages are considered to be unsafe in a requirements file:72 # setuptoolsmodified:requirements/tests.txt+6 added-8 removed
2 unmodified lines3 # To update, run:4 #5 # pip-compile requirements/tests.in6 #7-attrs==19.3.07+attrs==20.3.08 # via pytest9 colorama==0.4.410 # via -r requirements/tests.in11 importlib-metadata==3.4.012 # via -r requirements/tests.in13-iniconfig==1.0.013+iniconfig==1.1.114 # via pytest15-packaging==20.415+packaging==20.916 # via pytest17 pluggy==0.13.118 # via pytest19-py==1.9.019+py==1.10.020 # via pytest21 pyparsing==2.4.722 # via packaging23 pytest==6.2.224 # via -r requirements/tests.in25-six==1.15.026- # via packaging27-toml==0.10.125+toml==0.10.226 # via pytest29-zipp==3.1.027+zipp==3.4.028 # via importlib-metadatamodified:CONTRIBUTING.rst+17 added-19 removed
5 unmodified lines6 7 Support questions8 -----------------9 10-Please, don't use the issue tracker for this. The issue tracker is a11-tool to address bugs and feature requests in Click itself. Use one of12-the following resources for questions about using Click or issues with13-your own code:10+Please don't use the issue tracker for this. The issue tracker is a tool11+to address bugs and feature requests in Click itself. Use one of the12+following resources for questions about using Click or issues with your13+own code:14 15 - The ``#get-help`` channel on our Discord chat:16- https://discord.gg/t6rrQZH16+ https://discord.gg/pallets17 - The mailing list flask@python.org for long term discussion or larger18 issues.19 - Ask on `Stack Overflow`_. Search with Google first using:20 ``site:stackoverflow.com python click {search term, exception message, etc.}``21 22-.. _Stack Overflow: https://stackoverflow.com/questions/tagged/python-click?sort=linked22+.. _Stack Overflow: https://stackoverflow.com/questions/tagged/python-click?tab=Frequent23 24 25 Reporting issues26 ----------------5 unmodified lines32 identify the issue. This also helps check that the issue is not with33 your own code.34 - Describe what actually happened. Include the full traceback if there35 was an exception.36-- List your Python and Click. If possible, check if this issue is37- already fixed in the latest releases or the latest code in the38- repository.36+- List your Python and Click versions. If possible, check if this37+ issue is already fixed in the latest releases or the latest code in38+ the repository.39 40 .. _minimal reproducible example: https://stackoverflow.com/help/minimal-reproducible-example41 42 63 unmodified lines106 .. code-block:: text107 108 > env\Scripts\activate109 110-- Install the development dependencies, then install Click in editable111- mode. This order is important, otherwise you'll get the wrong112- version of Click.110+- Install the development dependencies, then install Click in111+ editable mode.112 113 .. code-block:: text114 116- $ pip install -r requirements/dev.txt117- $ pip install -e .115+ $ pip install -r requirements/dev.txt && pip install -e .116 117 - Install the pre-commit hooks.118 119 .. code-block:: text120 121 $ pre-commit install122 123 .. _latest version of git: https://git-scm.com/downloads126-.. _username: https://help.github.com/en/articles/setting-your-username-in-git127-.. _email: https://help.github.com/en/articles/setting-your-commit-email-address-in-git124+.. _username: https://docs.github.com/en/github/using-git/setting-your-username-in-git125+.. _email: https://docs.github.com/en/github/setting-up-and-managing-your-github-user-account/setting-your-commit-email-address126 .. _GitHub account: https://github.com/join129-.. _Fork: https://github.com/pallets/click/fork130-.. _Clone: https://help.github.com/en/articles/fork-a-repo#step-2-create-a-local-clone-of-your-fork127+.. _Fork: https://github.com/pallets/jinja/fork128+.. _Clone: https://docs.github.com/en/github/getting-started-with-github/fork-a-repo#step-2-create-a-local-clone-of-your-fork129 130 131 Start coding132 ~~~~~~~~~~~~27 unmodified lines160 161 $ git push --set-upstream fork your-branch-name162 163 .. _committing as you go: https://dont-be-afraid-to-commit.readthedocs.io/en/latest/git/commandlinegit.html#commit-your-changes166-.. _create a pull request: https://help.github.com/en/articles/creating-a-pull-request164+.. _create a pull request: https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/creating-a-pull-request165 166 167 Running the tests168 ~~~~~~~~~~~~~~~~~48 unmodified linesmodified:tox.ini+1 added-1 removed
5 unmodified lines6 skip_missing_interpreters = true7 8 [testenv]9 deps = -r requirements/tests.txt10-commands = pytest --tb=short --basetemp={envtmpdir} {posargs}10+commands = pytest -v --tb=short --basetemp={envtmpdir} {posargs}11 12 [testenv:style]13 deps = pre-commit14 skip_install = true5 unmodified lines