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

Release 1.5.0 #551

Merged
merged 3 commits into from
Jan 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
51 changes: 49 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,48 @@
# Change Log


## [1.5.0] - 2023-01-27

### Added

- Improve marker handling ([#528](https://github.com/python-poetry/poetry-core/pull/528),
[#534](https://github.com/python-poetry/poetry-core/pull/534),
[#530](https://github.com/python-poetry/poetry-core/pull/530),
[#546](https://github.com/python-poetry/poetry-core/pull/546),
[#547](https://github.com/python-poetry/poetry-core/pull/547)).
- Allow overriding the output directory when building dist files ([#527](https://github.com/python-poetry/poetry-core/pull/527)).
- Validate whether dependencies referenced in `extras` are defined in the main dependency group ([#542](https://github.com/python-poetry/poetry-core/pull/542)).
- Improve handling of generic constraints ([#515](https://github.com/python-poetry/poetry-core/pull/515)).

### Changed

- Deprecate the hash function of `FileDependency` ([#535](https://github.com/python-poetry/poetry-core/pull/535)).
- Do not set `allows_preleases` implicitly anymore if the lower bound of a constraint is a pre-release ([#543](https://github.com/python-poetry/poetry-core/pull/543)).
- Poetry no longer generates a `setup.py` file in sdists by default ([#318](https://github.com/python-poetry/poetry-core/pull/318)).
- Remove the unused `platform` attribute from `Package` ([#548](https://github.com/python-poetry/poetry-core/pull/548)).
- Deprecate the `pretty_version` parameter when creating a `Package` ([#549](https://github.com/python-poetry/poetry-core/pull/549)).
- Validate path dependencies during use instead of during construction ([#520](https://github.com/python-poetry/poetry-core/pull/520)).

### Fixed

- Fix an issue where the PEP 517 `metadata_directory` was not respected when building an editable wheel ([#537](https://github.com/python-poetry/poetry-core/pull/537)).
- Fix an issue where trailing newlines were allowed in `tool.poetry.description` ([#505](https://github.com/python-poetry/poetry-core/pull/505)).
- Fix an issue where the name of the data folder in wheels was not normalized ([#532](https://github.com/python-poetry/poetry-core/pull/532)).
- Fix an issue where the order of entries in the RECORD file was not deterministic ([#545](https://github.com/python-poetry/poetry-core/pull/545)).
- Fix an issue where parsing of VCS URLs with escaped characters failed ([#524](https://github.com/python-poetry/poetry-core/pull/524)).
- Fix an issue where the subdirectory parameter of VCS URLs was not respected ([#518](https://github.com/python-poetry/poetry-core/pull/518)).
- Fix an issue where zero padding was not correctly handled in version comparisons ([#540](https://github.com/python-poetry/poetry-core/pull/540)).
- Fix an issue where sdist builds did not support multiple READMEs ([#486](https://github.com/python-poetry/poetry-core/pull/486)).

### Vendoring

- [`attrs==22.2.0`](https://github.com/python-attrs/attrs/blob/main/CHANGELOG.md)
- [`jsonschema==4.17.3`](https://github.com/python-jsonschema/jsonschema/blob/main/CHANGELOG.rst)
- [`lark==1.1.5`](https://github.com/lark-parser/lark/releases/tag/1.1.5)
- [`packaging==23.0`](https://github.com/pypa/packaging/blob/main/CHANGELOG.rst)
- [`pyrsistent==0.19.3`](https://github.com/tobgu/pyrsistent/blob/master/CHANGES.txt)


## [1.4.0] - 2022-11-22

### Added
Expand All @@ -20,23 +63,26 @@
### Vendoring

- [`jsonschema==4.17.0`](https://github.com/python-jsonschema/jsonschema/blob/main/CHANGELOG.rst)
- [`lark==1.1.14`](https://github.com/lark-parser/lark/releases/tag/1.1.4)
- [`lark==1.1.4`](https://github.com/lark-parser/lark/releases/tag/1.1.4)
- [`pyrsistent==0.19.2`](https://github.com/tobgu/pyrsistent/blob/master/CHANGES.txt)
- [`tomlkit==0.11.6`](https://github.com/sdispater/tomlkit/blob/master/CHANGELOG.md)
- [`typing-extensions==4.4.0`](https://github.com/python/typing_extensions/blob/main/CHANGELOG.md)


## [1.3.2] - 2022-10-07

### Fixed

- Fix an issue where the normalization was not applied to the path of an sdist built using a PEP 517 frontend ([#495](https://github.com/python-poetry/poetry-core/pull/495)).


## [1.3.1] - 2022-10-05

### Fixed

- Fix an issue where a typing-driven assertion could be false at runtime, causing a failure during prepare_metadata_for_build_wheel ([#492](https://github.com/python-poetry/poetry-core/pull/492)).


## [1.3.0] - 2022-10-05

### Added
Expand Down Expand Up @@ -443,7 +489,8 @@ No changes.
- Fixed support for stub-only packages ([#28](https://github.com/python-poetry/core/pull/28)).


[Unreleased]: https://github.com/python-poetry/poetry-core/compare/1.4.0...main
[Unreleased]: https://github.com/python-poetry/poetry-core/compare/1.5.0...main
[1.5.0]: https://github.com/python-poetry/poetry-core/releases/tag/1.5.0
[1.4.0]: https://github.com/python-poetry/poetry-core/releases/tag/1.4.0
[1.3.2]: https://github.com/python-poetry/poetry-core/releases/tag/1.3.2
[1.3.1]: https://github.com/python-poetry/poetry-core/releases/tag/1.3.1
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "poetry-core"
version = "1.4.0"
version = "1.5.0"
description = "Poetry PEP 517 Build Backend"
authors = ["Sébastien Eustace <[email protected]>"]

Expand Down
2 changes: 1 addition & 1 deletion src/poetry/core/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

# this cannot presently be replaced with importlib.metadata.version as when building
# itself, poetry-core is not available as an installed distribution.
__version__ = "1.4.0"
__version__ = "1.5.0"

__vendor_site__ = (Path(__file__).parent / "_vendor").as_posix()

Expand Down
2 changes: 1 addition & 1 deletion src/poetry/core/_vendor/_pyrsistent_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.19.2'
__version__ = '0.19.3'
28 changes: 21 additions & 7 deletions src/poetry/core/_vendor/attr/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: MIT


import sys
import warnings

from functools import partial

Expand All @@ -20,10 +20,19 @@
make_class,
validate,
)
from ._next_gen import define, field, frozen, mutable
from ._version_info import VersionInfo


__version__ = "22.1.0"
if sys.version_info < (3, 7): # pragma: no cover
warnings.warn(
"Running attrs on Python 3.6 is deprecated & we intend to drop "
"support soon. If that's a problem for you, please let us know why & "
"we MAY re-evaluate: <https://github.com/python-attrs/attrs/pull/993>",
DeprecationWarning,
)

__version__ = "22.2.0"
__version_info__ = VersionInfo._from_version_string(__version__)

__title__ = "attrs"
Expand All @@ -43,8 +52,14 @@
ib = attr = attrib
dataclass = partial(attrs, auto_attribs=True) # happy Easter ;)


class AttrsInstance:
pass


__all__ = [
"Attribute",
"AttrsInstance",
"Factory",
"NOTHING",
"asdict",
Expand All @@ -56,24 +71,23 @@
"attrs",
"cmp_using",
"converters",
"define",
"evolve",
"exceptions",
"field",
"fields",
"fields_dict",
"filters",
"frozen",
"get_run_validators",
"has",
"ib",
"make_class",
"mutable",
"resolve_types",
"s",
"set_run_validators",
"setters",
"validate",
"validators",
]

if sys.version_info[:2] >= (3, 6):
from ._next_gen import define, field, frozen, mutable # noqa: F401

__all__.extend(("define", "field", "frozen", "mutable"))
6 changes: 3 additions & 3 deletions src/poetry/core/_vendor/attr/_cmp.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,9 @@ def method(self, other):

return result

method.__name__ = "__%s__" % (name,)
method.__doc__ = "Return a %s b. Computed by attrs." % (
_operation_names[name],
method.__name__ = f"__{name}__"
method.__doc__ = (
f"Return a {_operation_names[name]} b. Computed by attrs."
)

return method
Expand Down
11 changes: 1 addition & 10 deletions src/poetry/core/_vendor/attr/_compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,8 @@


PYPY = platform.python_implementation() == "PyPy"
PY36 = sys.version_info[:2] >= (3, 6)
HAS_F_STRINGS = PY36
PY310 = sys.version_info[:2] >= (3, 10)


if PYPY or PY36:
ordered_dict = dict
else:
from collections import OrderedDict

ordered_dict = OrderedDict
PY_3_12_PLUS = sys.version_info[:2] >= (3, 12)


def just_warn(*args, **kw):
Expand Down
6 changes: 2 additions & 4 deletions src/poetry/core/_vendor/attr/_funcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,9 +331,7 @@ def assoc(inst, **changes):
a = getattr(attrs, k, NOTHING)
if a is NOTHING:
raise AttrsAttributeNotFoundError(
"{k} is not an attrs attribute on {cl}.".format(
k=k, cl=new.__class__
)
f"{k} is not an attrs attribute on {new.__class__}."
)
_obj_setattr(new, k, v)
return new
Expand Down Expand Up @@ -361,7 +359,7 @@ def evolve(inst, **changes):
if not a.init:
continue
attr_name = a.name # To deal with private attributes.
init_name = attr_name if attr_name[0] != "_" else attr_name[1:]
init_name = a.alias
if init_name not in changes:
changes[init_name] = getattr(inst, attr_name)

Expand Down
Loading