]> git.ipfire.org Git - thirdparty/jinja.git/commitdiff
switch to flit build backend 1863/head
authorDavid Lord <davidism@gmail.com>
Wed, 28 Jun 2023 14:30:49 +0000 (07:30 -0700)
committerDavid Lord <davidism@gmail.com>
Wed, 28 Jun 2023 14:31:12 +0000 (07:31 -0700)
.github/workflows/tests.yaml
CHANGES.rst
CONTRIBUTING.rst
MANIFEST.in [deleted file]
pyproject.toml

index 9b2aae6ab0319486e04b3bd448c6f6597d5b05c9..c0f3da498487285ada79f1d70d1b5a6125b415ec 100644 (file)
@@ -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:
index 66575ea5ebc10af74b3795adfe7cd23cdf409960..bbfad13564f15705cd504c0852fe32969cd07c91 100644 (file)
@@ -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
index 5f835032f9f2e4b6d569e13bf9c184b25e52b3d4..ec2420a3fe97180c96b78748f739d8648f6f8292 100644 (file)
@@ -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.
 
diff --git a/MANIFEST.in b/MANIFEST.in
deleted file mode 100644 (file)
index 88fe6b1..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-include CHANGES.rst
-include tox.ini
-include requirements/*.txt
-graft artwork
-graft docs
-prune docs/_build
-graft examples
-graft tests
-include src/jinja2/py.typed
-global-exclude *.pyc
index 8ccdc139ce39a8cb87267dfa4016941164a4d138..2b6f6259ccbc19e93fc617b7d10627c84a4e592b 100644 (file)
@@ -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 = "contact@palletsprojects.com"}]
 classifiers = [
     "Development Status :: 5 - Production/Stable",
@@ -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"]