Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

switch to flit build backend #1863

Merged
merged 1 commit into from
Jun 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,6 @@ jobs:
python-version: ${{ matrix.python }}
cache: 'pip'
cache-dependency-path: 'requirements/*.txt'
- name: update pip
run: |
pip install -U wheel
pip install -U setuptools
python -m pip install -U pip
- name: cache mypy
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8
with:
Expand Down
1 change: 1 addition & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Unreleased

- Use modern packaging metadata with ``pyproject.toml`` instead of ``setup.cfg``.
:pr:`1793`
- Use ``flit_core`` instead of ``setuptools`` as build backend.


Version 3.1.3
Expand Down
6 changes: 0 additions & 6 deletions CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,6 @@ First time setup

> env\Scripts\activate

- Upgrade pip and setuptools.

.. code-block:: text

$ python -m pip install --upgrade pip setuptools

- Install the development dependencies, then install Jinja in editable
mode.

Expand Down
10 changes: 0 additions & 10 deletions MANIFEST.in

This file was deleted.

23 changes: 18 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "Jinja2"
description = "A very fast and expressive template engine."
readme = "README.rst"
license = {text = "BSD-3-Clause"}
license = {file = "LICENSE.rst"}
maintainers = [{name = "Pallets", email = "[email protected]"}]
classifiers = [
"Development Status :: 5 - Production/Stable",
Expand Down Expand Up @@ -32,11 +32,24 @@ i18n = ["Babel>=2.7"]
[project.entry-points."babel.extractors"]

[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
requires = ["flit_core<4"]
build-backend = "flit_core.buildapi"

[tool.setuptools.dynamic]
version = {attr = "jinja2.__version__"}
[tool.flit.module]
name = "jinja2"

[tool.flit.sdist]
include = [
"docs/",
"examples/",
"requirements/",
"tests/",
"CHANGES.rst",
"tox.ini",
]
exclude = [
"docs/_build/",
]

[tool.pytest.ini_options]
testpaths = ["tests"]
Expand Down