git: 002028b994f0 - main - devel/py-poetry-core: Update to 1.1.0
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 31 Aug 2022 18:51:37 UTC
The branch main has been updated by sunpoet:
URL: https://cgit.FreeBSD.org/ports/commit/?id=002028b994f0de5ced1431bafbe20263c40ce3a3
commit 002028b994f0de5ced1431bafbe20263c40ce3a3
Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-08-31 18:27:17 +0000
Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-08-31 18:49:42 +0000
devel/py-poetry-core: Update to 1.1.0
Changes: https://github.com/python-poetry/poetry-core/releases
---
devel/py-poetry-core/Makefile | 7 ++-
devel/py-poetry-core/distinfo | 6 +--
devel/py-poetry-core/files/patch-setup.py | 11 -----
devel/py-poetry-core/files/setup.py | 71 +++++++++++++++++++++++++++++++
4 files changed, 79 insertions(+), 16 deletions(-)
diff --git a/devel/py-poetry-core/Makefile b/devel/py-poetry-core/Makefile
index 083bd7100972..eb71f453796f 100644
--- a/devel/py-poetry-core/Makefile
+++ b/devel/py-poetry-core/Makefile
@@ -1,5 +1,5 @@
PORTNAME= poetry-core
-PORTVERSION= 1.0.8
+PORTVERSION= 1.1.0
CATEGORIES= devel python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -10,7 +10,7 @@ COMMENT= Poetry PEP 517 Build Backend
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
-USES= python:3.6+
+USES= python:3.7+
USE_PYTHON= autoplist concurrent distutils
NO_ARCH= yes
@@ -21,4 +21,7 @@ NO_ARCH= yes
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}importlib-metadata>=1.7.0:devel/py-importlib-metadata@${PY_FLAVOR}
.endif
+post-patch:
+ @${SED} -e 's|%%PORTVERSION%%|${PORTVERSION}|' ${FILESDIR}/setup.py > ${WRKSRC}/setup.py
+
.include <bsd.port.post.mk>
diff --git a/devel/py-poetry-core/distinfo b/devel/py-poetry-core/distinfo
index 92099832c7c7..5a17955cd21b 100644
--- a/devel/py-poetry-core/distinfo
+++ b/devel/py-poetry-core/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1647264564
-SHA256 (poetry-core-1.0.8.tar.gz) = 951fc7c1f8d710a94cb49019ee3742125039fc659675912ea614ac2aa405b118
-SIZE (poetry-core-1.0.8.tar.gz) = 346260
+TIMESTAMP = 1661950920
+SHA256 (poetry-core-1.1.0.tar.gz) = d145ae121cf79118a8901b60f2c951c4edcc16f55eb8aaefc156aa33aa921f07
+SIZE (poetry-core-1.1.0.tar.gz) = 508157
diff --git a/devel/py-poetry-core/files/patch-setup.py b/devel/py-poetry-core/files/patch-setup.py
deleted file mode 100644
index dd66b393016d..000000000000
--- a/devel/py-poetry-core/files/patch-setup.py
+++ /dev/null
@@ -1,11 +0,0 @@
---- setup.py.orig 2020-09-30 23:13:15 UTC
-+++ setup.py
-@@ -44,7 +44,7 @@ extras_require = \
- 'typing>=3.7.4.1,<4.0.0.0',
- 'enum34>=1.1.10,<2.0.0',
- 'functools32>=3.2.3-2,<4.0.0'],
-- ':python_version >= "2.7" and python_version < "2.8" or python_version >= "3.5" and python_version < "3.8"': ['importlib-metadata>=1.7.0,<2.0.0']}
-+ ':python_version >= "2.7" and python_version < "2.8" or python_version >= "3.5" and python_version < "3.8"': ['importlib-metadata>=1.7.0']}
-
- setup_kwargs = {
- 'name': 'poetry-core',
diff --git a/devel/py-poetry-core/files/setup.py b/devel/py-poetry-core/files/setup.py
new file mode 100644
index 000000000000..a1ecfaa978b4
--- /dev/null
+++ b/devel/py-poetry-core/files/setup.py
@@ -0,0 +1,71 @@
+# -*- coding: utf-8 -*-
+from setuptools import setup
+
+package_dir = \
+{'': 'src'}
+
+packages = \
+['poetry',
+ 'poetry.core',
+ 'poetry.core._vendor',
+ 'poetry.core._vendor.attr',
+ 'poetry.core._vendor.attrs',
+ 'poetry.core._vendor.jsonschema',
+ 'poetry.core._vendor.jsonschema.benchmarks',
+ 'poetry.core._vendor.lark',
+ 'poetry.core._vendor.lark.__pyinstaller',
+ 'poetry.core._vendor.lark.parsers',
+ 'poetry.core._vendor.lark.tools',
+ 'poetry.core._vendor.packaging',
+ 'poetry.core._vendor.pyparsing',
+ 'poetry.core._vendor.pyparsing.diagram',
+ 'poetry.core._vendor.pyrsistent',
+ 'poetry.core._vendor.tomlkit',
+ 'poetry.core.exceptions',
+ 'poetry.core.json',
+ 'poetry.core.masonry',
+ 'poetry.core.masonry.builders',
+ 'poetry.core.masonry.utils',
+ 'poetry.core.packages',
+ 'poetry.core.packages.constraints',
+ 'poetry.core.packages.utils',
+ 'poetry.core.pyproject',
+ 'poetry.core.semver',
+ 'poetry.core.spdx',
+ 'poetry.core.toml',
+ 'poetry.core.utils',
+ 'poetry.core.vcs',
+ 'poetry.core.version',
+ 'poetry.core.version.grammars',
+ 'poetry.core.version.pep440']
+
+package_data = \
+{'': ['*'],
+ 'poetry.core._vendor.jsonschema': ['schemas/*'],
+ 'poetry.core._vendor.lark': ['grammars/*'],
+ 'poetry.core.json': ['schemas/*'],
+ 'poetry.core.spdx': ['data/*']}
+
+extras_require = \
+{':python_version < "3.8"': ['importlib-metadata>=1.7.0']}
+
+setup_kwargs = {
+ 'name': 'poetry-core',
+ 'version': '%%PORTVERSION%%',
+ 'description': 'Poetry PEP 517 Build Backend',
+ 'long_description': '# Poetry Core\n[](https://pypi.org/project/poetry-core/)\n[](https://pypi.org/project/poetry-core/)\n[](https://opensource.org/licenses/MIT)\n[](https://github.com/psf/black)\n[](https://github.com/python-poetry/poetry-core/actions?query=workflow%3ATests)\n\nA [PEP 517](https://www.python.org/dev/peps/pep-0517/) build backend implementation developed for\n[Poetry](https://github.com/python-poetry/poetry). This project is intended to be a light weight, fully compliant,\nself-contained package allowing PEP 517 compatible build frontends to build Poetry managed projects.\n\n## Usage\nIn most cases, the usage of this
package is transparent to the end-user as it is either made use by Poetry itself\nor a PEP 517 frontend (eg: `pip`).\n\nIn order to enable the use `poetry-core` as your build backend, the following snippet must be present in your\nproject\'s `pyproject.toml` file.\n\n```toml\n[build-system]\nrequires = ["poetry-core"]\nbuild-backend = "poetry.core.masonry.api"\n```\n\nOnce this is present, a PEP 517 frontend like `pip` can build and install your project from source without the need\nfor Poetry or any of it\'s dependencies.\n\n```shell\n# install to current environment\npip install /path/to/poetry/managed/project\n\n# build a wheel package\npip wheel /path/to/poetry/managed/project\n```\n\n## Why is this required?\nPrior to the release of version `1.1.0`, Poetry was a build as a project management tool that included a PEP 517\nbuild backend. This was inefficient and time consuming in majority cases a PEP 517 build was required. For example,\nboth `pip` and `tox` (with isolated builds
) would install Poetry and all dependencies !
it required. Most of these\ndependencies are not required when the objective is to simply build either a source or binary distribution of your\nproject.\n\nIn order to improve the above situation, `poetry-core` was created. Shared functionality pertaining to PEP 517 build\nbackends, including reading lock file, `pyproject.toml` and building wheel/sdist, were implemented in this package. This\nmakes PEP 517 builds extremely fast for Poetry managed packages.\n',
+ 'author': 'Sébastien Eustace',
+ 'author_email': 'sebastien@eustace.io',
+ 'maintainer': None,
+ 'maintainer_email': None,
+ 'url': 'https://github.com/python-poetry/poetry-core',
+ 'package_dir': package_dir,
+ 'packages': packages,
+ 'package_data': package_data,
+ 'extras_require': extras_require,
+ 'python_requires': '>=3.7,<4.0',
+}
+
+
+setup(**setup_kwargs)
+