Merge pull request #3904 from pallets/update-project
Before adoption: this commit came in with the history the project adopted, so no landing records it.
update project files
authored by David Lord · committed by GitHub · parents ee08948, b496d8b · Browse files · 13 files·+150 added−103 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+150 added−103 removed
- other:+150 added−103 removed
Provenance
- Commit
adeaf27- Tree
bbe518a- Author
David Lord <davidism@gmail.com>- Committer
GitHub <noreply@github.com>- Parent 1
ee08948- Parent 2
b496d8b
13 files changed+150 added−103 removed
added:.github/ISSUE_TEMPLATE/bug-report.md+27 added
123456789101112131415161718192021222324252627---name: Bug reportabout: Report a bug in Flask (not other projects which depend on Flask)---
<!--This issue tracker is a tool to address bugs in Flask itself. Please usePallets Discord or Stack Overflow for questions about your own code.
Replace this comment with a clear outline of what the bug is.-->
<!--Describe how to replicate the bug.
Include a minimal reproducible example that demonstrates the bug.Include the full traceback if there was an exception.-->
<!--Describe the expected behavior that should have happened but didn't.-->
Environment:
- Python version:- Flask version:added:.github/ISSUE_TEMPLATE/config.yml+11 added
1234567891011blank_issues_enabled: falsecontact_links: - name: Security issue url: security@palletsprojects.com about: Do not report security issues publicly. Email our security contact. - name: Questions url: https://stackoverflow.com/questions/tagged/flask?tab=Frequent about: Search for and ask questions about your code on Stack Overflow. - name: Questions and discussions url: https://discord.gg/pallets about: Discuss questions about your code on our Discord chat.added:.github/ISSUE_TEMPLATE/feature-request.md+15 added
123456789101112131415---name: Feature requestabout: Suggest a new feature for Flask---
<!--Replace this comment with a description of what the feature should do.Include details such as links relevant specs or previous discussions.-->
<!--Replace this comment with an example of the problem which this featurewould resolve. Is this problem solvable without changes to Flask, suchas by subclassing or using an extension?-->modified:.github/workflows/tests.yaml-9 removed
40 unmodified lines41424344454647484950515253454640 unmodified lines uses: actions/cache@v2 with: path: ${{ steps.pip-cache.outputs.dir }} key: pip|${{ runner.os }}|${{ matrix.python }}|${{ hashFiles('setup.py') }}|${{ hashFiles('requirements/*.txt') }} - name: set full Python version in PY env var # See https://pre-commit.com/#github-actions-example run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV - name: cache pre-commit uses: actions/cache@v2 with: path: ~/.cache/pre-commit key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }} if: matrix.tox == 'style' - run: pip install tox - run: tox -e ${{ matrix.tox }}deleted:.github/ISSUE_TEMPLATE.md-29 removed
1234567891011121314151617181920212223242526272829<!-- **This issue tracker is a tool to address bugs in Flask itself.Please use the Pallets Discord or Stack Overflow for general questionsabout using Flask or issues not related to Flask.** -->
<!-- If you'd like to report a bug in Flask, 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. -->
### Expected Behavior<!-- Tell us what should happen. -->
```python# Paste a minimal example that causes the problem.```
### Actual Behavior<!-- Tell us what happens instead. -->
```pytbPaste the full traceback if there was an exception.```
### Environment
* Python version:* Flask version:* Werkzeug version:added:.github/pull_request_template.md+30 added
123456789101112131415161718192021222324252627282930<!--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" toautomatically close an issue.-->
- fixes #<issue number>
<!--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:
- [ ] Add tests that demonstrate the correct behavior of the change. Tests should fail without the change.- [ ] Add or update relevant docs, in the docs folder and in code.- [ ] Add an entry in `CHANGES.rst` summarizing the change and linking to the issue.- [ ] Add `.. versionchanged::` entries in any relevant code docs.- [ ] Run `pre-commit` hooks and fix any issues.- [ ] Run `pytest` and `tox`, no tests failed.deleted:.github/PULL_REQUEST_TEMPLATE.md-16 removed
12345678910111213141516Describe what this patch does to fix the issue.
Link to any relevant issues or pull requests.
<!--Commit checklist:
* add tests that fail without the patch* ensure all tests pass with ``pytest``* add documentation to the relevant docstrings or pages* add ``versionadded`` or ``versionchanged`` directives to relevant docstrings* add a changelog entry if this patch changes code
Tests, coverage, and docs will be run automatically when you submit the pullrequest, but running them yourself can save time.-->added:.github/SECURITY.md+19 added
12345678910111213141516171819# Security Policy
If you believe you have identified a security issue with a Palletsproject, **do not open a public issue**. To responsibly report asecurity issue, please email security@palletsprojects.com. A securityteam member will contact you acknowledging the report and how tocontinue.
Be sure to include as much detail as necessary in your report. As withreporting normal issues, a minimal reproducible example will help themaintainers address the issue faster. If you are able, you may alsoinclude a fix for the issue generated with `git format-patch`.
The current and previous release will receive security patches, witholder versions evaluated based on usage information and severity.
After fixing an issue, we will make a security release along with anannouncement on our blog. We may obtain a CVE id as well. You mayinclude a name and link if you would like to be credited for the report.modified:requirements/dev.txt+16 added-16 removed
6 unmodified lines7 alabaster==0.7.128 # via sphinx9 appdirs==1.4.410 # via virtualenv11-attrs==20.2.011+attrs==20.3.012 # via pytest13-babel==2.8.013+babel==2.9.014 # via sphinx15 blinker==1.416 # via -r requirements/tests.in17-certifi==2020.6.2017+certifi==2020.12.518 # via requests19 cfgv==3.2.020 # via pre-commit21-chardet==3.0.421+chardet==4.0.022 # via requests23 click==7.1.224 # via pip-tools25 distlib==0.3.15 unmodified lines31 # tox32 # virtualenv33 greenlet==1.0.034 # via -r requirements/tests.in35-identify==1.5.635+identify==1.5.1336 # via pre-commit37 idna==2.1038 # via requests39 imagesize==1.2.020 unmodified lines60 pluggy==0.13.161 # via62 # pytest63 # tox64-pre-commit==2.10.064+pre-commit==2.10.165 # via -r requirements/dev.in66-py==1.9.066+py==1.10.067 # via68 # pytest69 # tox70-pygments==2.7.270+pygments==2.7.471 # via72 # sphinx73 # sphinx-tabs74 pyparsing==2.4.71 unmodified line76 pytest==6.2.277 # via -r requirements/tests.in78 python-dotenv==0.15.079 # via -r requirements/tests.in80-pytz==2020.180+pytz==2021.181 # via babel82-pyyaml==5.3.182+pyyaml==5.4.183 # via pre-commit84-requests==2.24.084+requests==2.25.185 # via sphinx86 six==1.15.087 # via88 # tox89 # virtualenv90-snowballstemmer==2.0.090+snowballstemmer==2.1.091 # via sphinx92 sphinx-issues==1.2.093 # via -r requirements/docs.in94-sphinx-tabs==2.0.094+sphinx-tabs==2.0.195 # via -r requirements/docs.in96 sphinx==3.4.397 # via98 # -r requirements/docs.in19 unmodified lines118 # via119 # pre-commit120 # pytest121 # tox122-tox==3.21.3122+tox==3.21.4123 # via -r requirements/dev.in124-urllib3==1.25.11124+urllib3==1.26.3125 # via requests126-virtualenv==20.1.0126+virtualenv==20.4.2127 # via128 # pre-commit129 # tox130 3 unmodified linesmodified:requirements/docs.txt+9 added-9 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.6.2011+certifi==2020.12.512 # via requests13-chardet==3.0.413+chardet==4.0.014 # via requests15 docutils==0.1616 # via sphinx17 idna==2.1010 unmodified lines28 # pallets-sphinx-themes29 # sphinx30 pallets-sphinx-themes==1.2.331 # via -r requirements/docs.in32-pygments==2.7.232+pygments==2.7.433 # via34 # sphinx35 # sphinx-tabs36 pyparsing==2.4.737 # via packaging38-pytz==2020.138+pytz==2021.139 # via babel40-requests==2.24.040+requests==2.25.141 # via sphinx42-snowballstemmer==2.0.042+snowballstemmer==2.1.043 # via sphinx44 sphinx-issues==1.2.045 # via -r requirements/docs.in46-sphinx-tabs==2.0.046+sphinx-tabs==2.0.147 # via -r requirements/docs.in48 sphinx==3.4.349 # via50 # -r requirements/docs.in14 unmodified lines65 sphinxcontrib-qthelp==1.0.366 # via sphinx67 sphinxcontrib-serializinghtml==1.1.468 # via sphinx69-urllib3==1.25.1169+urllib3==1.26.370 # via requests71 72 # The following packages are considered to be unsafe in a requirements file:73 # setuptoolsmodified:requirements/tests.txt+2 added-2 removed
2 unmodified lines3 # To update, run:4 #5 # pip-compile requirements/tests.in6 #7-attrs==20.2.07+attrs==20.3.08 # via pytest9 blinker==1.410 # via -r requirements/tests.in11 greenlet==1.0.03 unmodified lines15 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.25 unmodified linesmodified:CONTRIBUTING.rst+18 added-17 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 Flask itself. Use one of12-the following resources for questions about using Flask 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 Flask itself. Use one of the12+following resources for questions about using Flask or issues with your13+own code:14 15 - The ``#get-help`` channel on our Discord chat:16 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 flask {search term, exception message, etc.}``20+ ``site:stackoverflow.com flask {search term, exception message, etc.}``21 22-.. _Stack Overflow: https://stackoverflow.com/questions/tagged/flask?sort=linked22+.. _Stack Overflow: https://stackoverflow.com/questions/tagged/flask?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, Flask, and Werkzeug versions. If possible, check37- if this issue is already fixed in the latest releases or the latest38- code in the repository.36+- List your Python and Flask 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 54 unmodified lines97 - Create a virtualenv.98 99 .. tabs::100 101- .. group-tab:: macOS/Linux101+ .. group-tab:: Linux/macOS102 103 .. code-block:: text104 105 $ python3 -m venv env5 unmodified lines111 112 > py -3 -m venv env113 > env\Scripts\activate114 115-- Install Flask in editable mode with development dependencies.115+- Install the development dependencies, then install Flask in editable116+ mode.117 118 .. code-block:: text119 119- $ pip install -e . -r requirements/dev.txt120+ $ pip install -r requirements/dev.txt && pip install -e .121 122 - Install the pre-commit hooks.123 124 .. code-block:: text125 126 $ pre-commit install127 128 .. _latest version of git: https://git-scm.com/downloads128-.. _username: https://help.github.com/en/articles/setting-your-username-in-git129-.. _email: https://help.github.com/en/articles/setting-your-commit-email-address-in-git129+.. _username: https://docs.github.com/en/github/using-git/setting-your-username-in-git130+.. _email: https://docs.github.com/en/github/setting-up-and-managing-your-github-user-account/setting-your-commit-email-address131 .. _GitHub account: https://github.com/join131-.. _Fork: https://github.com/pallets/flask/fork132-.. _Clone: https://help.github.com/en/articles/fork-a-repo#step-2-create-a-local-clone-of-your-fork132+.. _Fork: https://github.com/pallets/jinja/fork133+.. _Clone: https://docs.github.com/en/github/getting-started-with-github/fork-a-repo#step-2-create-a-local-clone-of-your-fork134 135 136 Start coding137 ~~~~~~~~~~~~27 unmodified lines165 166 $ git push --set-upstream fork your-branch-name167 168 .. _committing as you go: https://dont-be-afraid-to-commit.readthedocs.io/en/latest/git/commandlinegit.html#commit-your-changes168-.. _create a pull request: https://help.github.com/en/articles/creating-a-pull-request169+.. _create a pull request: https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/creating-a-pull-request170 171 172 Running the tests173 ~~~~~~~~~~~~~~~~~48 unmodified linesmodified:tox.ini+3 added-5 removed
13 unmodified lines14 https://github.com/pallets/jinja/archive/master.tar.gz15 https://github.com/pallets/itsdangerous/archive/master.tar.gz16 https://github.com/pallets/click/archive/master.tar.gz17 18-commands =19- pip install -q -e examples/tutorial[test]20- pip install -q -e examples/javascript[test]18+ examples/tutorial[test]19+ examples/javascript[test]20+commands = pytest -v --tb=short --basetemp={envtmpdir} {posargs:tests examples}21 22- pytest --tb=short --basetemp={envtmpdir} {posargs:tests examples}23-22 [testenv:style]23 deps = pre-commit24 skip_install = true25 commands = pre-commit run --all-files --show-diff-on-failure4 unmodified lines