Skip to content
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
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 3.12.0
current_version = 4.0.0
commit = True
tag = False

Expand Down
2 changes: 1 addition & 1 deletion doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
# built documents.
#
# The short X.Y version.
version = '3.12.0'
version = '4.0.0'
# The full version, including alpha/beta/rc tags.
release = version #+ '.1'

Expand Down
40 changes: 40 additions & 0 deletions doc/history.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,46 @@
Release history
===============

Version 4.0
-----------

This version contains breaking changes, but most projects which are already
using the ``[project]`` table for metadata shouldn't be affected, and can simply
change the ``flit_core <4`` constraint to ``<5``.

- The ``[tool.flit.metadata]`` table is no longer used for project metadata
(:ghpull:`771`). Use the newer :ref:`[project] table <pyproject_toml_project>`
instead (or if that is not possible, build with ``flit_core <4``).
- :ref:`build_cmd` and :ref:`publish_cmd` no longer include files in the sdist
based on what is committed in git or Mercurial (:ghpull:`772`). These commands
now build packages more like Flit does when called as a backend by e.g.
``python -m build``. Specify :ref:`sdist include & exclude patterns
<pyproject_toml_sdist>` instead (Flit can help to generate these), or pass
the ``--use-vcs`` option to get the old behaviour back.
- ``flit_core`` now requires Python 3.8 or above (:ghpull:`738`)
- The ``--setup-py`` option to generate sdists containing a ``setup.py`` file
is no longer available (:ghpull:`776`).
- Making typing stubs packages with a ``-stubs`` suffix will now work
(:ghpull:`742`).
- The default glob patterns for license files have been extended to include
``NOTICE*`` and ``AUTHORS*`` (:ghpull:`758`).
- ``license-files`` glob patterns can contain spaces (:ghpull:`797`).
- Fix a bug where license files could be found twice on Windows (:ghpull:`752`).
- The new ``Import-Name`` and ``Import-Namespace`` metadata fields (metadata 2.5)
are now supported (:ghpull:`774`). In most cases no new input is required,
as Flit will create this metadata automatically.
- Fix creating RECORD files when file names include commas (:ghpull:`744`).
- The ``--use-vcs`` option now correctly recognises git from inside a git
worktree folder (:ghpull:`799`).
- On Python 3.12 and above, ``flit build`` now uses the 'data' filter when
extracting the just-created sdist prior to building a wheel (:ghpull:`775`).
This restricts some special features of tar files, but sdists are unlikely
to use these features, and they would probably break in other scenarios if
you did.
- The vendorised ``readme_renderer`` package was updated to version 44.0
(:ghpull:`760`).


Version 3.12
------------

Expand Down
1 change: 1 addition & 0 deletions doc/pyproject_toml.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ Version constraints:
- The older ``[tool.flit.metadata]`` metadata table requires ``flit_core >=2,<4``.
- The very old ``flit.ini`` file requires ``flit_core <3``.
- TOML features new in version 1.0 require ``flit_core >=3.4``.
- ``flit_core`` 3.12 is the last version supporting Python 3.6 & 3.7.
- ``flit_core`` 3.3 is the last version supporting Python 3.4 & 3.5. Packages
supporting these Python versions can only use `TOML v0.5
<https://toml.io/en/v0.5.0>`_.
Expand Down
2 changes: 1 addition & 1 deletion flit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from .config import ConfigError
from .log import enable_colourful_output

__version__ = '3.12.0'
__version__ = '4.0.0'

log = logging.getLogger(__name__)

Expand Down
2 changes: 1 addition & 1 deletion flit_core/flit_core/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
All the convenient development features live in the main 'flit' package.
"""

__version__ = '3.12.0'
__version__ = '4.0.0'
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = ["flit_core >=3.11,<4"]
requires = ["flit_core >=3.11,<5"]
build-backend = "flit_core.buildapi"

[project]
Expand All @@ -8,7 +8,7 @@ authors = [
{name = "Thomas Kluyver", email = "thomas@kluyver.me.uk"},
]
dependencies = [
"flit_core >=3.12.0",
"flit_core >=4.0.0",
"requests",
"docutils",
"tomli-w",
Expand Down