Merge pull request #3922 from pallets/consistency
Before adoption: this commit came in with the history the project adopted, so no landing records it.
various cleanup for consistency between projects
authored by David Lord · committed by GitHub · parents aee3f3f, 0c7cbe2 · Browse files · 11 files·+44 added−35 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
11 files+44 added−35 removed
- other:+44 added−35 removed
Provenance
- Commit
dcd3b5c- Tree
bea6003- Author
David Lord <davidism@gmail.com>- Committer
GitHub <noreply@github.com>- Parent 1
aee3f3f- Parent 2
0c7cbe2
11 files changed+44 added−35 removed
modified:.github/workflows/tests.yaml+8 added-1 removed
2 unmodified lines3456789101112131415161718192021227 unmodified lines30313233263435363716 unmodified lines2 unmodified lines push: branches: - master - '*.x' paths-ignore: - 'docs/**' - '*.md' - '*.rst' pull_request: branches: - master - '*.x' paths-ignore: - 'docs/**' - '*.md' - '*.rst'jobs: tests: name: ${{ matrix.name }} runs-on: ${{ matrix.os }}7 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: Docs, python: '3.9', os: ubuntu-latest, tox: docs} steps: - uses: actions/checkout@v2 - uses: actions/setup-python@v2 with:16 unmodified linesdeleted:docs/changelog.rst-4 removed
1-Changes2-=======3-4-.. include:: ../CHANGES.rstadded:docs/changes.rst+4 added
1+Changes2+=======3+4+.. include:: ../CHANGES.rstmodified:docs/conf.py+5 added-3 removed
36 unmodified lines37 html_theme = "flask"38 html_theme_options = {"index_sidebar_logo": False}39 html_context = {40 "project_links": [41- ProjectLink("Donate to Pallets", "https://palletsprojects.com/donate"),42- ProjectLink("Flask Website", "https://palletsprojects.com/p/flask/"),43- ProjectLink("PyPI releases", "https://pypi.org/project/Flask/"),41+ ProjectLink("Donate", "https://palletsprojects.com/donate"),42+ ProjectLink("PyPI Releases", "https://pypi.org/project/Flask/"),43 ProjectLink("Source Code", "https://github.com/pallets/flask/"),44 ProjectLink("Issue Tracker", "https://github.com/pallets/flask/issues/"),45+ ProjectLink("Website", "https://palletsprojects.com/p/flask/"),46+ ProjectLink("Twitter", "https://twitter.com/PalletsTeam"),47+ ProjectLink("Chat", "https://discord.gg/pallets"),48 ]49 }50 html_sidebars = {51 "index": ["project.html", "localtoc.html", "searchbox.html"],46 unmodified linesmodified:docs/index.rst+2 added-2 removed
83 unmodified lines84 design85 htmlfaq86 security87 extensiondev88- changelog89- license88 contributing89+ license90+ changesmodified:docs/license.rst+2 added-2 removed
1 License2 =======3 4-Source License5---------------4+BSD-3-Clause Source License5+---------------------------6 7 The BSD-3-Clause license applies to all files in the Flask repository8 and source distribution. This includes Flask's source code, the9 examples, and tests, as well as the documentation.10 unmodified linesmodified:.readthedocs.yaml+1 added
4 unmodified lines567894 unmodified lines - method: pip path: .sphinx: builder: dirhtml fail_on_warning: truemodified:MANIFEST.in-1 removed
1 include CHANGES.rst2 include CONTRIBUTING.rst3-include LICENSE.rst3 include tox.ini4 include requirements/*.txt5 graft artwork6 graft docs4 unmodified linesmodified:README.rst+15 added-13 removed
10 unmodified lines11 project layout. It is up to the developer to choose the tools and12 libraries they want to use. There are many extensions provided by the13 community that make adding new functionality easy.14 15+.. _WSGI: https://wsgi.readthedocs.io/16+.. _Werkzeug: https://werkzeug.palletsprojects.com/17+.. _Jinja: https://jinja.palletsprojects.com/18 19+20 Installing21 ----------22 23 Install and update using `pip`_:1 unmodified line25 .. code-block:: text26 27 $ pip install -U Flask28 29+.. _pip: https://pip.pypa.io/en/stable/quickstart/30 31+32 A Simple Example33 ----------------34 35 .. code-block:: python29 unmodified lines65 it uses. In order to grow the community of contributors and users, and66 allow the maintainers to devote more time to the projects, `please67 donate today`_.68 63-.. _please donate today: https://psfmember.org/civicrm/contribute/transact?reset=1&id=2069+.. _please donate today: https://palletsprojects.com/donate70 71 72 Links73 -----74 69-* Website: https://palletsprojects.com/p/flask/70-* Documentation: https://flask.palletsprojects.com/71-* Releases: https://pypi.org/project/Flask/72-* Code: https://github.com/pallets/flask73-* Issue tracker: https://github.com/pallets/flask/issues74-* Test status: https://dev.azure.com/pallets/flask/_build75-* Official chat: https://discord.gg/pallets76-77-.. _WSGI: https://wsgi.readthedocs.io78-.. _Werkzeug: https://www.palletsprojects.com/p/werkzeug/79-.. _Jinja: https://www.palletsprojects.com/p/jinja/80-.. _pip: https://pip.pypa.io/en/stable/quickstart/75+- Documentation: https://flask.palletsprojects.com/76+- Changes: https://flask.palletsprojects.com/changes/77+- PyPI Releases: https://pypi.org/project/Flask/78+- Source Code: https://github.com/pallets/flask/79+- Issue Tracker: https://github.com/pallets/flask/issues/80+- Website: https://palletsprojects.com/p/flask/81+- Twitter: https://twitter.com/PalletsTeam82+- Chat: https://discord.gg/palletsmodified:setup.cfg+7 added-3 removed
1 [metadata]2 name = Flask3-# Version needs regex in setup.py.3+version = attr: flask.__version__4 url = https://palletsprojects.com/p/flask5 project_urls =6+ Donate = https://palletsprojects.com/donate7 Documentation = https://flask.palletsprojects.com/7- Code = https://github.com/pallets/flask8- Issue tracker = https://github.com/pallets/flask/issues8+ Changes = https://flask.palletsprojects.com/changes/9+ Source Code = https://github.com/pallets/flask/10+ Issue Tracker = https://github.com/pallets/flask/issues/11+ Twitter = https://twitter.com/PalletsTeam12+ Chat = https://discord.gg/pallets13 license = BSD-3-Clause14 author = Armin Ronacher15 author_email = armin.ronacher@active-4.com16 maintainer = Pallets71 unmodified linesmodified:setup.py-6 removed
1-import re2-1 from setuptools import setup2 5-with open("src/flask/__init__.py", encoding="utf8") as f:6- version = re.search(r'__version__ = "(.*?)"', f.read()).group(1)7-3 # Metadata goes in setup.cfg. These are here for GitHub's dependency graph.4 setup(5 name="Flask",11- version=version,6 install_requires=[7 "Werkzeug>=0.15",8 "Jinja2>=2.10.1",9 "itsdangerous>=0.24",4 unmodified lines