summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--devel/Makefile1
-rw-r--r--devel/py-poetry-core/Makefile27
-rw-r--r--devel/py-poetry-core/distinfo3
-rw-r--r--devel/py-poetry-core/files/patch-setup.py11
-rw-r--r--devel/py-poetry-core/pkg-descr6
5 files changed, 48 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 4530e17f0b89..3ea93e6d1f1e 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -4781,6 +4781,7 @@
SUBDIR += py-ply
SUBDIR += py-pockets
SUBDIR += py-podcastparser
+ SUBDIR += py-poetry-core
SUBDIR += py-polib
SUBDIR += py-pooch
SUBDIR += py-portalocker
diff --git a/devel/py-poetry-core/Makefile b/devel/py-poetry-core/Makefile
new file mode 100644
index 000000000000..2ea1a9f5a0be
--- /dev/null
+++ b/devel/py-poetry-core/Makefile
@@ -0,0 +1,27 @@
+# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= poetry-core
+PORTVERSION= 1.0.0
+CATEGORIES= devel python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= sunpoet@FreeBSD.org
+COMMENT= Poetry PEP 517 Build Backend
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+USES= python:3.6+
+USE_PYTHON= autoplist concurrent distutils
+
+NO_ARCH= yes
+
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_REL} < 3800
+RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}importlib-metadata>=1.7.0:devel/py-importlib-metadata@${PY_FLAVOR}
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/py-poetry-core/distinfo b/devel/py-poetry-core/distinfo
new file mode 100644
index 000000000000..0bf5d04d2d01
--- /dev/null
+++ b/devel/py-poetry-core/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1601996440
+SHA256 (poetry-core-1.0.0.tar.gz) = 6a664ff389b9f45382536f8fa1611a0cb4d2de7c5a5c885db1f0c600cd11fbd5
+SIZE (poetry-core-1.0.0.tar.gz) = 333868
diff --git a/devel/py-poetry-core/files/patch-setup.py b/devel/py-poetry-core/files/patch-setup.py
new file mode 100644
index 000000000000..dd66b393016d
--- /dev/null
+++ b/devel/py-poetry-core/files/patch-setup.py
@@ -0,0 +1,11 @@
+--- 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/pkg-descr b/devel/py-poetry-core/pkg-descr
new file mode 100644
index 000000000000..cafc1c6c1a39
--- /dev/null
+++ b/devel/py-poetry-core/pkg-descr
@@ -0,0 +1,6 @@
+Poetry Core is a PEP 517 build backend implementation developed for Poetry. This
+project is intended to be a light weight, fully compliant, self-contained
+package allowing PEP 517 compatible build frontends to build Poetry managed
+projects.
+
+WWW: https://github.com/python-poetry/poetry-core