| 1 |
Release history |
| 2 |
=============== |
| 3 |
|
| 4 |
Version 4.1 |
| 5 |
----------- |
| 6 |
|
| 7 |
- License expressions with named exceptions, the WITH syntax, are accepted |
| 8 |
(:ghpull:`809`). |
| 9 |
- ``flit init`` allows dotted module names, for a component of a namespace |
| 10 |
package (:ghissue:`822`). |
| 11 |
- Fix line endings in ``.cmd`` script wrappers on Windows (:ghpull:`824`). |
| 12 |
|
| 13 |
Version 4.0.3 |
| 14 |
------------- |
| 15 |
|
| 16 |
- Fix built wheels being created with overly restrictive ``0600`` permissions |
| 17 |
instead of the normal, world-readable ``0644`` (:ghpull:`806`). |
| 18 |
|
| 19 |
Version 4.0.2 |
| 20 |
------------- |
| 21 |
|
| 22 |
- Fix invalid metadata files with ``Import-Name`` (:ghissue:`813`). |
| 23 |
|
| 24 |
Version 4.0.1 |
| 25 |
------------- |
| 26 |
|
| 27 |
No changes, but a new tag to trigger an upload to PyPI now that twine will |
| 28 |
accept it. |
| 29 |
|
| 30 |
Version 4.0 |
| 31 |
----------- |
| 32 |
|
| 33 |
This version contains breaking changes, but most projects which are already |
| 34 |
using the ``[project]`` table for metadata shouldn't be affected, and can simply |
| 35 |
change the ``flit_core <4`` constraint to ``<5``. |
| 36 |
|
| 37 |
- The ``[tool.flit.metadata]`` table is no longer used for project metadata |
| 38 |
(:ghpull:`771`). Use the newer :ref:`[project] table <pyproject_toml_project>` |
| 39 |
instead (or if that is not possible, build with ``flit_core <4``). |
| 40 |
- :ref:`build_cmd` and :ref:`publish_cmd` no longer include files in the sdist |
| 41 |
based on what is committed in git or Mercurial (:ghpull:`772`). These commands |
| 42 |
now build packages more like Flit does when called as a backend by e.g. |
| 43 |
``python -m build``. Specify :ref:`sdist include & exclude patterns |
| 44 |
<pyproject_toml_sdist>` instead (Flit can help to generate these), or pass |
| 45 |
the ``--use-vcs`` option to get the old behaviour back. |
| 46 |
- ``flit_core`` now requires Python 3.8 or above (:ghpull:`738`) |
| 47 |
- The ``--setup-py`` option to generate sdists containing a ``setup.py`` file |
| 48 |
is no longer available (:ghpull:`776`). |
| 49 |
- Making typing stubs packages with a ``-stubs`` suffix will now work |
| 50 |
(:ghpull:`742`). |
| 51 |
- The default glob patterns for license files have been extended to include |
| 52 |
``NOTICE*`` and ``AUTHORS*`` (:ghpull:`758`). |
| 53 |
- ``license-files`` glob patterns can contain spaces (:ghpull:`797`). |
| 54 |
- Fix a bug where license files could be found twice on Windows (:ghpull:`752`). |
| 55 |
- The new ``Import-Name`` and ``Import-Namespace`` metadata fields (metadata 2.5) |
| 56 |
are now supported (:ghpull:`774`). In most cases no new input is required, |
| 57 |
as Flit will create this metadata automatically. |
| 58 |
- Fix creating RECORD files when file names include commas (:ghpull:`744`). |
| 59 |
- The ``--use-vcs`` option now correctly recognises git from inside a git |
| 60 |
worktree folder (:ghpull:`799`). |
| 61 |
- On Python 3.12 and above, ``flit build`` now uses the 'data' filter when |
| 62 |
extracting the just-created sdist prior to building a wheel (:ghpull:`775`). |
| 63 |
This restricts some special features of tar files, but sdists are unlikely |
| 64 |
to use these features, and they would probably break in other scenarios if |
| 65 |
you did. |
| 66 |
- The vendorised ``readme_renderer`` package was updated to version 44.0 |
| 67 |
(:ghpull:`760`). |
| 68 |
|
| 69 |
|
| 70 |
Version 3.12 |
| 71 |
------------ |
| 72 |
|
| 73 |
- Support for license expressions using the AND and OR operators (:ghpull:`731`). |
| 74 |
- Recognise ``__version__: str = "0.1"`` annotated assignments when finding the |
| 75 |
version number (:ghpull:`728`). |
| 76 |
- Clear error message when referring to a license file in a parent directory, |
| 77 |
which is not supported (:ghpull:`725`). |
| 78 |
|
| 79 |
Version 3.11 |
| 80 |
------------ |
| 81 |
|
| 82 |
- Support for SPDX license expressions and multiple license files, as detailed |
| 83 |
in :pep:`639`:: |
| 84 |
|
| 85 |
license = "BSD-3-Clause" |
| 86 |
license-files = ["LICENSE"] |
| 87 |
|
| 88 |
For now, only a single license identifier is allowed. More complex expressions |
| 89 |
describing multiple licenses & expressions may be supported in a future |
| 90 |
version. |
| 91 |
- The `metadata format <https://packaging.python.org/en/latest/specifications/core-metadata/>`_ |
| 92 |
in produced packages is now version 2.4, to support the expanded license |
| 93 |
information. |
| 94 |
|
| 95 |
Version 3.10.1 |
| 96 |
-------------- |
| 97 |
|
| 98 |
- The sdist of ``flit_core`` now includes the corresponding tests (:ghpull:`704`). |
| 99 |
These were missing in 3.10. |
| 100 |
|
| 101 |
Version 3.10 |
| 102 |
------------ |
| 103 |
|
| 104 |
- ``flit publish`` can now use PyPI tokens stored in keyring (:ghpull:`649`), |
| 105 |
either project tokens with a 'username' like |
| 106 |
:samp:`pypi_token:project:{project_name}` (use the `normalised form of the |
| 107 |
name <https://packaging.python.org/en/latest/specifications/name-normalization/>`_) |
| 108 |
or user tokens (:samp:`pypi_token:user:{username}`). |
| 109 |
- The ``--python`` option can now take the path of a virtualenv folder, as an |
| 110 |
alternative to a Python executable (:ghpull:`667`). |
| 111 |
- Flit will work with current development versions of Python again (:ghpull:`684`). |
| 112 |
- The ``flit`` command line package now requires Python 3.8 or above (:ghpull:`660`). |
| 113 |
``flit_core`` still works with Python 3.6 or above. |
| 114 |
- The metadata in packages now has the names of optional dependency groups |
| 115 |
("extras") normalised, complying with version 2.3 of the metadata standard |
| 116 |
(:ghpull:`676`, :ghpull:`697`). |
| 117 |
- The ``flit`` command line package now depends on pip (:ghpull:`647`). |
| 118 |
- Fix potential substitution of environment variables into passwords read from |
| 119 |
``.pypirc`` files (:ghpull:`652`). |
| 120 |
- A warning is now shown when building packages which specify the old |
| 121 |
``flit.buildapi`` backend, which should be replaced by ``flit_core.buildapi`` |
| 122 |
(:ghpull:`674`). It's a good idea to always set a maximum version for the |
| 123 |
build requirement, to protect against changes in future major versions of Flit. |
| 124 |
- Avoid using the deprecated ``datetime.utcfromtimestamp()`` (:ghpull:`682`). |
| 125 |
- Flit now has a ``SECURITY.md`` file in the GitHub repository (:ghpull:`665`). |
| 126 |
- The tests for ``flit_core`` are no longer part of the installed package, |
| 127 |
reducing the size of the wheels (:ghpull:`691`). |
| 128 |
|
| 129 |
Version 3.9 |
| 130 |
----------- |
| 131 |
|
| 132 |
- New options :option:`flit build --use-vcs` and :option:`flit build --no-use-vcs` |
| 133 |
to enable & disable including all committed files in the sdist. For now |
| 134 |
``--use-vcs`` is the default, but this is likely to change in a future |
| 135 |
version, to bring ``flit build`` in line with standard build frontends like |
| 136 |
``python -m build`` (:ghpull:`625`). |
| 137 |
- Sdist file names, and the name of the top-level folder in an sdist, are now |
| 138 |
normalised, in accordance with :pep:`625` (:ghpull:`628`). |
| 139 |
- A statically defined version number can now be parsed from files called |
| 140 |
``version.py``, ``_version.py`` or ``__version__.py`` inside a package, as well |
| 141 |
as from ``__init__.py``, so executing code is required in fewer cases |
| 142 |
(:ghpull:`630`). |
| 143 |
- Fix setting the flag for regular files in zip metadata (:ghpull:`639`). |
| 144 |
- The timestamp embedded in the gzip wrapper for sdists now defaults to a fixed |
| 145 |
date, so building an sdist twice on the same machine should produce identical |
| 146 |
results, even without any special steps (:ghpull:`635`). Setting |
| 147 |
:envvar:`SOURCE_DATE_EPOCH` is still recommended for properly |
| 148 |
:doc:`reproducible builds <reproducible>`. |
| 149 |
|
| 150 |
Version 3.8 |
| 151 |
----------- |
| 152 |
|
| 153 |
- A project name containing hyphens is now automatically translated to use |
| 154 |
underscores for the import name (:ghpull:`566`). |
| 155 |
- New option :option:`flit install --only-deps` to install the dependencies of |
| 156 |
the package, but not the package itself. |
| 157 |
- Add support for recursive globbing (``**``) in sdist includes and excludes |
| 158 |
(:ghpull:`550`). |
| 159 |
- Python's bytecode cache files (``__pycache__`` folders and ``.pyc`` files) |
| 160 |
are now always excluded from sdists (:ghpull:`581`). |
| 161 |
- Use tomllib in Python 3.11, rather than tomli (:ghpull:`573`, :ghpull:`604`). |
| 162 |
- Fix crash when unable to get a password from ``keyring`` (:ghpull:`567`). |
| 163 |
- Fix including modified files in sdist when using Mercurial (:ghpull:`541`). |
| 164 |
- Fix for some cases of determining whether a package supports Python 2 or not |
| 165 |
(:ghpull:`593`). |
| 166 |
- Fix parsing version number from code using multiple assignments (:ghpull:`474`). |
| 167 |
- Document how to use a PyPI token with :envvar:`FLIT_PASSWORD` (:ghpull:`602`). |
| 168 |
- Fix link to information about environment variables for pip (:ghpull:`576`). |
| 169 |
- Link to the docs for the latest stable version in package metadata |
| 170 |
(:ghpull:`589`). |
| 171 |
- Remove a mention of the ``toml`` package, which is no longer needed, from the |
| 172 |
:doc:`development` page (:ghpull:`601`). |
| 173 |
- The :doc:`bootstrap <bootstrap>` install script for ``flit_core`` accepts a |
| 174 |
new ``--install-root`` option. |
| 175 |
- Ensure the license file is included in packages on PyPI (:ghpull:`603`). |
| 176 |
|
| 177 |
Version 3.7.1 |
| 178 |
------------- |
| 179 |
|
| 180 |
- Fix building packages which need execution to get the version number, |
| 181 |
and have a relative import in ``__init__.py`` (:ghpull:`531`). |
| 182 |
|
| 183 |
Version 3.7 |
| 184 |
----------- |
| 185 |
|
| 186 |
- Support for :ref:`external data files <pyproject_toml_external_data>` such |
| 187 |
as man pages or Jupyter extension support files (:ghpull:`510`). |
| 188 |
- Project names are now lowercase in wheel filenames and ``.dist-info`` folder |
| 189 |
names, in line with the specifications (:ghpull:`498`). |
| 190 |
- Improved support for :doc:`bootstrapping <bootstrap>` a Python environment, |
| 191 |
e.g. for downstream packagers (:ghpull:`511`). ``flit_core.wheel`` is usable |
| 192 |
with ``python -m`` to create wheels before the `build <https://pypi.org/project/build/>`_ |
| 193 |
tool is available, and ``flit_core`` sdists also include a script to install |
| 194 |
itself from a wheel before `installer <https://pypi.org/project/installer/>`_ |
| 195 |
is available. |
| 196 |
- Use newer importlib APIs, fixing some deprecation warnings (:ghpull:`499`). |
| 197 |
|
| 198 |
Version 3.6 |
| 199 |
----------- |
| 200 |
|
| 201 |
- ``flit_core`` now bundles the `tomli <https://pypi.org/project/tomli/>`_ TOML |
| 202 |
parser library (version 1.2.3) to avoid a circular dependency between |
| 203 |
``flit_core`` and ``tomli`` (:ghpull:`492`). This means ``flit_core`` now has |
| 204 |
no dependencies except Python itself, both at build time and at runtime, |
| 205 |
simplifying :doc:`bootstrapping <bootstrap>`. |
| 206 |
|
| 207 |
Version 3.5.1 |
| 208 |
------------- |
| 209 |
|
| 210 |
- Fix development installs with ``flit install --symlink`` and ``--pth-file``, |
| 211 |
which were broken in 3.5.0, especially for packages using a ``src`` folder |
| 212 |
(:ghpull:`472`). |
| 213 |
|
| 214 |
Version 3.5 |
| 215 |
----------- |
| 216 |
|
| 217 |
- You can now use Flit to distribute a module or package inside a namespace |
| 218 |
package (as defined by :pep:`420`). To do this, specify the import name of the |
| 219 |
concrete, inner module you are packaging - e.g. ``name = "sphinxcontrib.foo"`` |
| 220 |
- either in the ``[project]`` table, or under ``[tool.flit.module]`` if you |
| 221 |
want to use a different name on PyPI (:ghpull:`468`). |
| 222 |
- Flit no longer generates a ``setup.py`` file in sdists (``.tar.gz`` packages) |
| 223 |
by default (:ghpull:`462`). Modern packaging tools don't need this. You can |
| 224 |
use the ``--setup-py`` flag to keep adding it for now, but this will probably |
| 225 |
be removed at some point in the future. |
| 226 |
- Fixed how ``flit init`` handles authors' names with non-ASCII characters |
| 227 |
(:ghpull:`460`). |
| 228 |
- When ``flit init`` generates a LICENSE file, the new ``pyproject.toml`` now |
| 229 |
references it (:ghpull:`467`). |
| 230 |
|
| 231 |
Version 3.4 |
| 232 |
----------- |
| 233 |
|
| 234 |
- Python 3.6 or above is now required, both for ``flit`` and ``flit_core``. |
| 235 |
- Add a ``--setup-py`` option to ``flit build`` and ``flit publish``, and a |
| 236 |
warning when neither this nor ``--no-setup-py`` are specified (:ghpull:`431`). |
| 237 |
A future version will stop generating ``setup.py`` files in sdists by default. |
| 238 |
- Add support for standardised editable installs - ``pip install -e`` - |
| 239 |
according to :pep:`660` (:ghpull:`400`). |
| 240 |
- Add a ``--pypirc`` option for ``flit publish`` to specify an alternative path |
| 241 |
to a ``.pypirc`` config file describing package indexes (:ghpull:`434`). |
| 242 |
- Fix installing dependencies specified in a ``[project]`` table (:ghpull:`433`). |
| 243 |
- Fix building wheels when ``SOURCE_DATE_EPOCH`` (see :doc:`reproducible`) is |
| 244 |
set to a date before 1980 (:ghpull:`448`). |
| 245 |
- Switch to using the `tomli <https://pypi.org/project/tomli/>`_ TOML parser, |
| 246 |
in common with other packaging projects (:ghpull:`438`). |
| 247 |
This supports TOML version 1.0. |
| 248 |
- Add a document on :doc:`bootstrap` (:ghpull:`441`). |
| 249 |
|
| 250 |
Version 3.3 |
| 251 |
----------- |
| 252 |
|
| 253 |
- ``PKG-INFO`` files in sdists are now generated the same way as ``METADATA`` in |
| 254 |
wheels, fixing some issues with sdists (:ghpull:`410`). |
| 255 |
- ``flit publish`` now sends SHA-256 hashes, fixing uploads to GitLab package |
| 256 |
repositories (:ghpull:`416`). |
| 257 |
- The ``[project]`` metadata table from :pep:`621` is now fully supported and |
| 258 |
:ref:`documented <pyproject_toml_project>`. Projects using this can now |
| 259 |
specify ``requires = ["flit_core >=3.2,<4"]`` in the ``[build-system]`` table. |
| 260 |
|
| 261 |
Version 3.2 |
| 262 |
----------- |
| 263 |
|
| 264 |
- Experimental support for specifying metadata in a ``[project]`` table in |
| 265 |
``pyproject.toml`` as specified by :pep:`621` (:ghpull:`393`). If you try |
| 266 |
using this, please specify ``requires = ["flit_core >=3.2.0,<3.3"]`` in the |
| 267 |
``[build-system]`` table for now, in case it needs to change for the next |
| 268 |
release. |
| 269 |
- Fix writing METADATA file with multi-line information in certain fields |
| 270 |
such as ``Author`` (:ghpull:`402`). |
| 271 |
- Fix building wheel when a directory such as LICENSES appears in the project |
| 272 |
root directory (:ghpull:`401`). |
| 273 |
|
| 274 |
Version 3.1 |
| 275 |
----------- |
| 276 |
|
| 277 |
- Update handling of names & version numbers in wheel filenames and |
| 278 |
``.dist-info`` folders in line with changes in the specs (:ghpull:`395`). |
| 279 |
- Switch from the deprecated ``pytoml`` package to ``toml`` (:ghpull:`378`). |
| 280 |
- Fix specifying backend-path in ``pyproject.toml`` for flit-core (as a list |
| 281 |
instead of a string). |
| 282 |
|
| 283 |
Version 3.0 |
| 284 |
----------- |
| 285 |
|
| 286 |
Breaking changes: |
| 287 |
|
| 288 |
- Projects must now provide Flit with information in ``pyproject.toml`` files, |
| 289 |
not the older ``flit.ini`` format (:ghpull:`338`). |
| 290 |
- ``flit_core`` once again requires Python 3 (>=3.4). Packages that support |
| 291 |
Python 2 can still be built by ``flit_core`` 2.x, but can't rely on new |
| 292 |
features (:ghpull:`342`). |
| 293 |
- The deprecated ``flit installfrom`` command was removed (:ghpull:`334`). |
| 294 |
You can use ``pip install git+https://github.com/...`` instead. |
| 295 |
|
| 296 |
Features and fixes: |
| 297 |
|
| 298 |
- Fix building sdists from a git repository with non-ASCII characters in |
| 299 |
filenames (:ghpull:`346`). |
| 300 |
- Fix identifying the version number when the code contains a subscript |
| 301 |
assignment before ``__version__ =`` (:ghpull:`348`). |
| 302 |
- Script entry points can now use a class method (:ghpull:`359`). |
| 303 |
- Set suitable permission bits on metadata files in wheels (:ghpull:`256`). |
| 304 |
- Fixed line endings in the ``RECORD`` file when installing on Windows |
| 305 |
(:ghpull:`368`). |
| 306 |
- Support for recording the source of local installations, as in :pep:`610` |
| 307 |
(:ghpull:`335`). |
| 308 |
- ``flit init`` will check for a README in the root of the project and |
| 309 |
automatically set it as ``description-file`` (:ghpull:`337`). |
| 310 |
- Pygments is not required for checking reStructuredText READMEs (:ghpull:`357`). |
| 311 |
- Packages where the version number can be recognised without executing their |
| 312 |
code don't need their dependencies installed to build, which should make them |
| 313 |
build faster (:ghpull:`361`). |
| 314 |
- Ensure the installed ``RECORD`` file is predictably ordered (:ghpull:`366`). |
| 315 |
|
| 316 |
Version 2.3 |
| 317 |
----------- |
| 318 |
|
| 319 |
- New projects created with :ref:`init_cmd` now declare that they require |
| 320 |
``flit_core >=2,<4`` (:ghpull:`328`). Any projects using ``pyproject.toml`` |
| 321 |
(not ``flit.ini``) should be compatible with flit 3.x. |
| 322 |
- Fix selecting files from a git submodule to include in an sdist |
| 323 |
(:ghpull:`324`). |
| 324 |
- Fix checking classifiers when no writeable cache directory is available |
| 325 |
(:ghpull:`319`). |
| 326 |
- Better errors when trying to install to a mis-spelled or missing Python |
| 327 |
interpreter (:ghpull:`331`). |
| 328 |
- Fix specifying ``--repository`` before ``upload`` (:ghpull:`322`). Passing the |
| 329 |
option like this is deprecated, and you should now pass it after ``upload``. |
| 330 |
- Documentation improvements (:ghpull:`327`, :ghpull:`318`, :ghpull:`314`) |
| 331 |
|
| 332 |
Version 2.2 |
| 333 |
----------- |
| 334 |
|
| 335 |
- Allow underscores in package names with Python 2 (:ghpull:`305`). |
| 336 |
- Add a ``--no-setup-py`` option to build sdists without a backwards-compatible |
| 337 |
``setup.py`` file (:ghpull:`311`). |
| 338 |
- Fix the generated ``setup.py`` file for packages using a ``src/`` layout |
| 339 |
(:ghpull:`303`). |
| 340 |
- Fix detecting when more than one file matches the module name specified |
| 341 |
(:ghpull:`307`). |
| 342 |
- Fix installing to a venv on Windows with the ``--python`` option |
| 343 |
(:ghpull:`300`). |
| 344 |
- Don't echo the command in scripts installed with ``--symlink`` or |
| 345 |
``--pth-file`` on Windows (:ghpull:`310`). |
| 346 |
- New ``bootstrap_dev.py`` script to set up a development installation of Flit |
| 347 |
from the repository (:ghpull:`301`, :ghpull:`306`). |
| 348 |
|
| 349 |
Version 2.1 |
| 350 |
----------- |
| 351 |
|
| 352 |
- Use compression when adding files to wheels. |
| 353 |
- Added the :envvar:`FLIT_INSTALL_PYTHON` environment variable (:ghpull:`295`), |
| 354 |
to configure flit to always install into a Python other than the one it's |
| 355 |
running on. |
| 356 |
- ``flit_core`` uses the ``intreehooks`` shim package to load its bootstrapping |
| 357 |
backend, until a released version of pip supports the standard |
| 358 |
``backend-path`` mechanism. |
| 359 |
|
| 360 |
Version 2.0 |
| 361 |
----------- |
| 362 |
|
| 363 |
Flit 2 is a major architecture change. The ``flit_core`` package now provides |
| 364 |
a :pep:`517` backend for building packages, while ``flit`` is a |
| 365 |
:doc:`command line interface <cmdline>` extending that. |
| 366 |
|
| 367 |
The build backend works on Python 2, so tools like pip should be able to install |
| 368 |
packages built with flit from source on Python 2. |
| 369 |
The ``flit`` command requires Python 3.5 or above. |
| 370 |
You will need to change the build-system table in your ``pyproject.toml`` file |
| 371 |
to look like this: |
| 372 |
|
| 373 |
.. code-block:: toml |
| 374 |
|
| 375 |
[build-system] |
| 376 |
requires = ["flit_core >=2,<4"] |
| 377 |
build-backend = "flit_core.buildapi" |
| 378 |
|
| 379 |
Other changes include: |
| 380 |
|
| 381 |
- Support for storing your code under a ``src/`` folder (:ghpull:`260`). |
| 382 |
You don't need to change any configuration if you do this. |
| 383 |
- Options to control what files are included in an sdist - see |
| 384 |
:ref:`pyproject_toml_sdist` for the details. |
| 385 |
- Requirements can specify a URL 'direct reference', as an alternative to a |
| 386 |
version number, with the syntax defined in :pep:`440`: |
| 387 |
``requests @ https://example.com/requests-2.22.0.tar.gz``. |
| 388 |
- Fix the shebang of scripts installed with the ``--python`` option and the |
| 389 |
``--symlink`` flag (:ghpull:`286`). |
| 390 |
- Installing with ``--deps develop`` now installs normal dependencies |
| 391 |
as well as development dependencies. |
| 392 |
- Author email is no longer required in the metadata table (:ghpull:`289`). |
| 393 |
- More error messages are now shown without a traceback (:ghpull:`254`) |
| 394 |
|
| 395 |
Version 1.3 |
| 396 |
----------- |
| 397 |
|
| 398 |
- Fix for building sdists from a subdirectory in a Mercurial repository |
| 399 |
(:ghpull:`233`). |
| 400 |
- Fix for getting the docstring and version from modules defining their encoding |
| 401 |
(:ghpull:`239`). |
| 402 |
- Fix for installing packages with ``flit installfrom`` (:ghpull:`221`). |
| 403 |
- Packages with requirements no longer get a spurious ``Provides-Extra: .none`` |
| 404 |
metadata entry (:ghissue:`228`). |
| 405 |
- Better check of whether ``python-requires`` includes any Python 2 version |
| 406 |
(:ghpull:`232`). |
| 407 |
- Better check of home page URLs in ``flit init`` (:ghpull:`230`). |
| 408 |
- Better error message when the description file is not found (:ghpull:`234`). |
| 409 |
- Updated a help message to refer to ``pyproject.toml`` (:ghpull:`240`). |
| 410 |
- Improve tests of ``flit init`` (:ghpull:`229`). |
| 411 |
|
| 412 |
Version 1.2.1 |
| 413 |
------------- |
| 414 |
|
| 415 |
- Fix for installing packages with ``flit install``. |
| 416 |
- Make ``requests_download`` an extra dependency, to avoid a circular build |
| 417 |
dependency. To use ``flit installfrom``, you can install with |
| 418 |
``pip install flit[installfrom]``. Note that the ``installfrom`` subcommand |
| 419 |
is deprecated, as it will soon be possible to use pip to install Flit projects |
| 420 |
directly from a VCS URL. |
| 421 |
|
| 422 |
Version 1.2 |
| 423 |
----------- |
| 424 |
|
| 425 |
- Fixes for packages specifying ``requires-extra``: sdists should now work, and |
| 426 |
environment markers can be used together with ``requires-extra``. |
| 427 |
- Fix running ``flit installfrom`` without a config file present in the |
| 428 |
working directory. |
| 429 |
- The error message for a missing or empty docstring tells you what file |
| 430 |
the docstring should be in. |
| 431 |
- Improvements to documentation on version selectors for requirements. |
| 432 |
|
| 433 |
Version 1.1 |
| 434 |
----------- |
| 435 |
|
| 436 |
- Packages can now have 'extras', specified as ``requires-extra`` in the |
| 437 |
:doc:`pyproject.toml file <pyproject_toml>`. These are additional dependencies |
| 438 |
for optional features. |
| 439 |
- The ``home-page`` metadata field is no longer required. |
| 440 |
- Additional project URLs are now validated. |
| 441 |
- ``flit -V`` is now equivalent to ``flit --version``. |
| 442 |
- Various improvements to documentation. |
| 443 |
|
| 444 |
Version 1.0 |
| 445 |
----------- |
| 446 |
|
| 447 |
- The description file may now be written in reStructuredText, Markdown or |
| 448 |
plain text. The file extension should indicate which of these formats it is |
| 449 |
(``.rst``, ``.md`` or ``.txt``). Previously, only reStructuredText was |
| 450 |
officially supported. |
| 451 |
- Multiple links (e.g. documentation, bug tracker) can now be specified in a |
| 452 |
new ``[tool.flit.metadata.urls]`` section of |
| 453 |
``pyproject.toml``. |
| 454 |
- Dependencies are now correctly installed to the target Python when you use |
| 455 |
the ``--symlink`` or ``--pth-file`` options. |
| 456 |
- Dependencies are only installed to the Python where Flit is running if |
| 457 |
it fails to get the docstring and version number without them. |
| 458 |
- The commands deprecated in 0.13—``flit wheel``, ``flit sdist`` and |
| 459 |
``flit register``—have been removed. |
| 460 |
|
| 461 |
Although version 1.0 sounds like a milestone, there's nothing that makes this |
| 462 |
release especially significant. It doesn't represent a step change in stability |
| 463 |
or completeness. Flit has been gradually maturing for some time, and I chose |
| 464 |
this point to end the series of 0.x version numbers. |
| 465 |
|
| 466 |
Version 0.13 |
| 467 |
------------ |
| 468 |
|
| 469 |
- Better validation of several metadata fields (``dist-name``, ``requires``, |
| 470 |
``requires-python``, ``home-page``), and of the version number. |
| 471 |
- New :envvar:`FLIT_ALLOW_INVALID` environment variable to ignore validation |
| 472 |
failures in case they go wrong. |
| 473 |
- The list of valid classifiers is now fetched from Warehouse (https://pypi.org), |
| 474 |
rather than the older https://pypi.python.org site. |
| 475 |
- Deprecated ``flit wheel`` and ``flit sdist`` subcommands: use |
| 476 |
:ref:`build_cmd`. |
| 477 |
- Deprecated ``flit register``: you can no longer register a package separately |
| 478 |
from uploading it. |
| 479 |
|
| 480 |
Version 0.12.3 |
| 481 |
-------------- |
| 482 |
|
| 483 |
- Fix building and installing packages with a ``-`` in the distribution name. |
| 484 |
- Fix numbering in README. |
| 485 |
|
| 486 |
Version 0.12.2 |
| 487 |
-------------- |
| 488 |
|
| 489 |
- New tool to convert ``flit.ini`` to ``pyproject.toml``:: |
| 490 |
|
| 491 |
python3 -m flit.tomlify |
| 492 |
|
| 493 |
- Use the PAX tar format for sdists, as specified by PEP 517. |
| 494 |
|
| 495 |
Version 0.12.1 |
| 496 |
-------------- |
| 497 |
|
| 498 |
- Restore dependency on ``zipfile36`` backport package. |
| 499 |
- Add some missing options to documentation of ``flit install`` subcommand. |
| 500 |
- Rearrange environment variables in the docs. |
| 501 |
|
| 502 |
Version 0.12 |
| 503 |
------------ |
| 504 |
|
| 505 |
- Switch the config to ``pyproject.toml`` by default instead of ``flit.ini``, |
| 506 |
and implement the PEP 517 API. |
| 507 |
- A new option ``--pth-file`` allows for development installation on Windows |
| 508 |
(where ``--symlink`` usually won't work). |
| 509 |
- Normalise file permissions in the zip file, making builds more reproducible |
| 510 |
across different systems. |
| 511 |
- Sdists (.tar.gz packages) can now also be reproducibly built by setting |
| 512 |
:envvar:`SOURCE_DATE_EPOCH`. |
| 513 |
- For most modules, Flit can now extract the version number and docstring |
| 514 |
without importing it. It will still fall back to importing where getting |
| 515 |
these from the AST fails. |
| 516 |
- ``flit build`` will build the wheel from the sdist, helping to ensure that |
| 517 |
files aren't left out of the sdist. |
| 518 |
- All list fields in the INI file now ignore blank lines (``requires``, |
| 519 |
``dev-requires``, ``classifiers``). |
| 520 |
- Fix the path separator in the ``RECORD`` file of a wheel built on Windows. |
| 521 |
- Some minor fixes to building reproducible wheels. |
| 522 |
- If building a wheel fails, the temporary file created will be cleaned up. |
| 523 |
- Various improvements to docs and README. |
| 524 |
|
| 525 |
Version 0.11.4 |
| 526 |
-------------- |
| 527 |
|
| 528 |
- Explicitly open various files as UTF-8, rather than relying on locale |
| 529 |
encoding. |
| 530 |
- Link to docs from README. |
| 531 |
- Better test coverage, and a few minor fixes for problems revealed by tests. |
| 532 |
|
| 533 |
Version 0.11.3 |
| 534 |
-------------- |
| 535 |
|
| 536 |
- Fixed a bug causing failed uploads when the password is entered in the |
| 537 |
terminal. |
| 538 |
|
| 539 |
Version 0.11.2 |
| 540 |
-------------- |
| 541 |
|
| 542 |
- A couple of behaviour changes when uploading to warehouse. |
| 543 |
|
| 544 |
Version 0.11.1 |
| 545 |
-------------- |
| 546 |
|
| 547 |
- Fixed a bug when you use flit to build an sdist from a subdirectory inside a |
| 548 |
VCS checkout. The VCS is now correctly detected. |
| 549 |
- Fix the rst checker for newer versions of docutils, by upgrading the bundled |
| 550 |
copy of readme_renderer. |
| 551 |
|
| 552 |
Version 0.11 |
| 553 |
------------ |
| 554 |
|
| 555 |
- Flit can now build sdists (tarballs) and upload them to PyPI, if your code is |
| 556 |
in a git or mercurial repository. There are new commands: |
| 557 |
|
| 558 |
- ``flit build`` builds both a wheel and an sdist. |
| 559 |
- ``flit publish`` builds and uploads a wheel and an sdist. |
| 560 |
|
| 561 |
- Smarter ways of getting the information needed for upload: |
| 562 |
|
| 563 |
- If you have the `keyring <https://github.com/jaraco/keyring>`_ package |
| 564 |
installed, flit can use it to store your password, rather than keeping it |
| 565 |
in plain text in ``~/.pypirc``. |
| 566 |
- If ``~/.pypirc`` does not already exist, and you are prompted for your |
| 567 |
username, flit will write it into that file. |
| 568 |
- You can provide the information as environment variables: |
| 569 |
:envvar:`FLIT_USERNAME`, :envvar:`FLIT_PASSWORD` and :envvar:`FLIT_INDEX_URL`. |
| 570 |
Use this to upload packages from a CI service, for instance. |
| 571 |
|
| 572 |
- Include 'LICENSE' or 'COPYING' files in wheels. |
| 573 |
- Fix for ``flit install --symlink`` inside a virtualenv. |
| 574 |
|
| 575 |
|
| 576 |
Version 0.10 |
| 577 |
------------ |
| 578 |
|
| 579 |
- Downstream packagers can use the :envvar:`FLIT_NO_NETWORK` environment |
| 580 |
variable to stop flit downloading data from the network. |
| 581 |
|
| 582 |
Version 0.9 |
| 583 |
----------- |
| 584 |
|
| 585 |
- ``flit install`` and ``flit installfrom`` now take an optional ``--python`` argument, |
| 586 |
with the path to the Python executable you want to install it for. |
| 587 |
Using this, you can install modules to Python 2. |
| 588 |
- Installing a module normally (without ``--symlink``) builds a wheel and uses |
| 589 |
pip to install it, which should work better in some corner cases. |
| 590 |
|
| 591 |
Version 0.8 |
| 592 |
----------- |
| 593 |
|
| 594 |
- A new ``flit installfrom`` subcommand to install a project from a source |
| 595 |
archive, such as from GitHub. |
| 596 |
- :doc:`Reproducible builds <reproducible>` - you can produce byte-for-byte |
| 597 |
identical wheels. |
| 598 |
- A warning for non-canonical version numbers according to `PEP 440 |
| 599 |
<https://www.python.org/dev/peps/pep-0440/>`__. |
| 600 |
- Fix for installing projects on Windows. |
| 601 |
- Better error message when module docstring is only whitespace. |
| 602 |
|
| 603 |
Version 0.7 |
| 604 |
----------- |
| 605 |
|
| 606 |
- A new ``dev-requires`` field in the config file for development requirements, |
| 607 |
used when doing ``flit install``. |
| 608 |
- Added a ``--deps`` option for ``flit install`` to control which dependencies |
| 609 |
are installed. |
| 610 |
- Flit can now be invoked with ``python -m flit``. |
| 611 |
|
| 612 |
Version 0.6 |
| 613 |
----------- |
| 614 |
|
| 615 |
- ``flit install`` now ensures requirements specified in ``flit.ini`` are |
| 616 |
installed, using pip. |
| 617 |
- If you specify a description file, flit now warns you if it's not valid |
| 618 |
reStructuredText (since invalid reStructuredText is treated as plain text on |
| 619 |
PyPI). |
| 620 |
- Improved the error message for mis-spelled keys in ``flit.ini``. |
| 621 |
|
| 622 |
Version 0.5 |
| 623 |
----------- |
| 624 |
|
| 625 |
- A new ``flit init`` command to quickly define the essential basic metadata |
| 626 |
for a package. |
| 627 |
- Support for entry points. |
| 628 |
- A new ``flit register`` command to register a package without uploading it, |
| 629 |
for when you want to claim a name before you're ready to release. |
| 630 |
- Added a ``--repository`` option for specifying an alternative PyPI instance. |
| 631 |
- Added a ``--debug`` flag to show debug-level log messages. |
| 632 |
- Better error messages when the module docstring or ``__version__`` is missing. |
| 633 |
|
| 634 |
Version 0.4 |
| 635 |
----------- |
| 636 |
|
| 637 |
- Users can now specify ``dist-name`` in the config file if they need to use |
| 638 |
different names on PyPI and for imports. |
| 639 |
- Classifiers are now checked against a locally cached list of valid |
| 640 |
classifiers. |
| 641 |
- Packages can be locally installed into environments for development. |
| 642 |
- Local installation now creates a PEP 376 ``.dist-info`` folder instead of |
| 643 |
``.egg-info``. |