Repository - API - Source
install
command now supports a --sync
option to synchronize the environment with the lock file. (#4336)--remove-untracked
option of the install
command is now deprecated in favor of the new --sync
option. (#4336)init
command in non-interactive mode. (#2899)virtualenvs.create
is deactivated. (#4329)This release is the first testing release of the upcoming 1.2.0 version.
It drops support for Python 2.7 and 3.5.
new
command now supports namespace packages. (#2768)add
command now supports the --editable
option to add packages in editable mode. (#3940)get-poetry.py
script is now deprecated and is replaced by the install-poetry.py
script. (#3706)pip
, setuptools
, wheels
and distribute
) can now be managed as any other package. (#2826)new
command now defaults to the Markdown format for README files. (#2768)virtualenvs.create
is deactivated. (#4507)git
commands. (python-poetry/poetry-core#203)git
executable could be used on Windows. (python-poetry/poetry-core#205)virtualenvs.create
is deactivated. (#4330, #4407)in/not in
markers (python-poetry/poetry-core#189)Note: Lock files might need to be regenerated for the first fix below to take effect.
You can use poetry lock
to do so without the --no-update
option.
install-poetry.py
installation script to ease the migration path from 1.1
releases to 1.2
releases. (#4192)installer.parallel
boolean flag (defaults to true
) configuration to enable/disable parallel execution of operations when using the new installer. (#3088)poetry lock --no-update
. (#3229).pth
file exists. (#3210)stderr
. (#3131)KeyError
when PATH
is not defined in environment variables. (#3159)config
command in a directory with an existing pyproject.toml
without any Poetry configuration. (#3172)show
command to use already resolved package metadata. (#3117)export
command output when using requirements.txt
format. (#3119)requirements.txt
when project dependency contains git dependencies. (#3100)--no-update
option to lock
command. (#3034)requirements.txt
dependencies to include development dependencies. (#3024)build
command. (#3056)init
command when specifying --dependency
in non-interactive mode when a pyproject.toml
file already exists. (#3076)init
command will now use existing pyproject.toml
if possible (#2448).rc
prereleases (#2978).setup.cfg
files (#2957).pyproject.toml
file not being taken into account for authentication when downloading packages (#2990).site-packages
directory is not writeable (#3002).requirements.txt
format (#3002).virtualenvs.in-project
setting will now always be honored, if set explicitly, regardless of the presence of a .venv
directory (#2771).pyproject.toml
file will no longer raise an error (#2886).dependency
option of the init
command being ignored (#2587).show
command displaying erroneous information following the changes in the lock file format (#2967).develop
option is set to true
(#2887).PyPI
always being displayed when publishing even for custom repositories (#2905).virtualenv
(#2666).content-hash
value not being updated when using the add
and remove
commands (#2710).Note that lock files generated with this release are not compatible with previous releases of Poetry.
install
command now supports a --remove-untracked
option to ensure only packages from the lock file are present in the environment (#2172).This release must be downloaded via the get-poetry.py
script and not via the self update
command.
--dry-run
option to the publish
command (#2199).poetry-core
(#2212).poetry.masonry.api
but poetry.core.masonry.api
which requires poetry-core>=1.0.0a5
(#2212).setup.py
file (#2349).self update
command has been updated in order to handle future releases of Poetry (#2429).env info
(#2196).packages
property was empty (#2265)..venv
virtual environment not being displayed in env list
(#1762).virtualenv
(#2096).setup.py
files (#2041).POETRY_HTTP_BASIC_XXX_PASSWORD
) to not be used (#1909).--help
option was not working (#1910).pyproject.toml
file (#1892).get_requires_for_build_wheel()
function of masonry.api
which wasn't returning the proper result (#1875).env use
where the wrong Python executable was being used to check compatibility (#1736).shell
command (#1673).env
commands on Windows if the path to the executable contained a space (#1774).keyring
on some systems (#1788).export
command (#1840).setup.py
file in some cases (#1764).export
command to export the lock file to other formats (only requirements.txt
is currently supported).env info
command to get basic information about the current environment.env use
command to control the Python version used by the project.env list
command to list the virtualenvs associated with the current project.env remove
command to delete virtualenvs associated with the current project.POETRY_HOME
declaration within get-poetry.py
.markers
property.add
, it no longer requires the --git
option.add
, it no longer requires the --path
option.cache:clear
command has been renamed to cache clear
.debug:info
command has been renamed to debug info
.debug:resolve
command has been renamed to debug resolve
.self:update
command has been renamed to self update
.--git
option of the add
command has been removed.--path
option of the add
command has been removed.add
command will now automatically select the latest prerelease if only prereleases are available.add
command can now update a dependencies if an explicit constraint is given (#1221).--develop
option from the install
command.init
command.shell
command has been improved.poetry run
command now uses os.execvp()
rather than spawning a new subprocess.allows-prereleases
in the pyproject.toml
file is deprecated for consistency with the add
command. Use allow-prereleases
instead.sys.executable
instead of the python
command.site-packages
directory detection (#1683).pyproject.toml
configuration is now properly validated.pip
.~=
operator.run
command now properly handles the --
separator.path
dependencies being seen as git
dependencies.extra
markers in dependencies were handled.run
command.show -l
.TooManyRedirects
errors being raised when resolving dependencies.--install
option of the debug resolve command.show
when using the -o/--outdated
option.exclude
being included in distributions.env use
if the virtualenvs.in-project
setting is activated (#1682)empty
and any
markers in unions of markers (#1650)..venv
when it's not a directory. (Thanks to @mpanarin)AttributeError
in the editable builder.pip>=19.0
.remove
command.python_version
with precision < 3.dist-info
files.prepare_metadata_for_build_wheel()
missing in the build backend.platform_release
markers.extras_require
in some setup.py
files. (Thanks to @asodeur)run
not executing scripts.exclude
option.run
command for namespaced packages.add
command.Pool
not raising an exception when no package could be found.bz2
source distribution.InstalledRepository
.setup.py
files.KeyError
when getting information for packages which require reading setup files.src
layout.setup.py
and/or setup.cfg
) if the egg_info
command fails when resolving dependencies.not in
marker operator.exclude
property not being respected if no VCS was available.python_full_version
marker.Python-Requires
metadata being invalid for single Python versions.VIRTUAL_ENV
to detect activated virtualenvs.--no-dev
option in install
not working properly.setup.py
had special characters.install
for applications not following a known structure.debug:info
not showing the current project's virtualenv.--lock
option to update
to only update the lock file without executing operations. (Thanks to @greysteil)Project-URL
metadata.--no-dev
option to show
. (Thanks to @rodcloutier)python
dependencies are now equivalent to ~2.7 || ^3.4
.install
command will now install the current project in editable mode.develop
command is now deprecated in favor of install
.check
command.package_data
of the generated setup.py
.cache:clear
for Python 2.7.config
command setting incorrect values for paths.OSError
on Python >= 3.5 for git
dependencies with recursive symlinks.cache:clear
.tomlkit
.packages
property set.config
command..zip
and .bz2
archives.pyproject.toml
validity. (Thanks to @ojii)extras
information from pyproject.toml
. (Thanks to @cauebs)dev-dependencies
.init
. (Thanks to @cauebs)packages
, include
and exclude
properties.shell
command. (Thanks to @cauebs)init
command.poetry
now always reads/writes the pyproject.toml
file with the utf-8
encoding.config --list
now lists all available settings.init
no longer adds pytest
to development dependencies.remove
command's case sensitivity. (Thanks to @cauebs).egg-info
directory for non-poetry projects. (Thanks to @gtors)git
could not be found.self:update
command on Windows.self:update
not picking up new versions.RuntimeError
on Python 3.7.version
command.in
environment markers with commas.UnicodeDecodeError
when an error occurs in venv.poetry run
.~=
version constraint.init
and add
commands.init
command to generate a pyproject.toml
file in existing projects.settings.virtualenvs.in-project
to make poetry
create the project's virtualenv inside the project's directory.--extras
and --python
options to debug:resolve
to help debug dependency resolution.--src
option to new
command to create an src
layout.platform
for dependencies.--python
option to the add
command.--platform
option to the add
command.--develop
option to the install command to install path dependencies in development/editable mode.develop
command to install the current project in development mode.show
command to make it easier to check if packages are properly installed.script
command has been deprecated, use run
instead.publish
command no longer build packages by default. Use --build
to retrieve the previous behavior.LICENSE
file, or similar, is now automatically added to the built packages.dev-dependencies
.pyproject.toml
file. (Thanks to radix)cache:clear
command.git
dependencies in the add
command.path
dependencies in the add
command.add
command.src/
layout for packages..venv
virtualenvs.pyproject.toml
not only in the directory it was
invoked in, but in all its parents up to the root. This allows to run Poetry
commands in project subdirectories.self:update
command for some installation.search
command for Python 2.7.pyproject.lock
.add
command picking up prereleases by default.version
for prereleases.search
not working outside of a project.self:update
not working outside of a project.search
command.self:update
command.install_requires
and extras
in generated sdist.license
metadata is not set.version
command to automatically bump the package's version.poetry
isolated.pyproject.toml
.script
command.in
operator.update
not properly adding new packages to the lock file.new
command creating invalid pyproject.toml
files.debug:info
command to get information about current environment.--optional
option in the add
command not being used.run
command to execute commands inside the created virtualenvs.debug:resolve
command to debug dependency resolution.pyproject.toml
file validation.show
command for semver-compatible updates.update
command reinstalling every dependency.requires_dist
is null on PyPI.build
command.config
command.publish
command.show
command for VCS dependencies.show
command.--dry-run
option to the add
command.poetry.toml
file for the new, standardized pyproject.toml
.add
command for packages with dots in their names.remove
command.poetry.lock
format.Initial release