pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel devel/py-flit: Import py-flit 3.0.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/20ecc3f68a16
branches:  trunk
changeset: 442991:20ecc3f68a16
user:      riastradh <riastradh%pkgsrc.org@localhost>
date:      Fri Dec 04 23:29:32 2020 +0000

description:
devel/py-flit: Import py-flit 3.0.0

Python and PyPI packaging tool.  Core library and bootstrapping goo
imported as devel/py-flit_core at the same time.  From the README:

   Flit is a simple way to put Python packages and modules on PyPI.

   It tries to require less thought about packaging and help you avoid
   common mistakes.

diffstat:

 devel/Makefile                                                      |   4 +-
 devel/py-flit/DESCR                                                 |   4 +
 devel/py-flit/Makefile                                              |  61 ++++++
 devel/py-flit/Makefile.common                                       |  17 +
 devel/py-flit/PLIST                                                 |  57 ++++++
 devel/py-flit/distinfo                                              |   7 +
 devel/py-flit/patches/patch-tests_test__find__python__executable.py |  15 +
 devel/py-flit_core/DESCR                                            |   7 +
 devel/py-flit_core/Makefile                                         |  40 ++++
 devel/py-flit_core/PLIST                                            |  91 ++++++++++
 10 files changed, 302 insertions(+), 1 deletions(-)

diffs (truncated from 353 to 300 lines):

diff -r 8fc201fbc271 -r 20ecc3f68a16 devel/Makefile
--- a/devel/Makefile    Fri Dec 04 23:24:56 2020 +0000
+++ b/devel/Makefile    Fri Dec 04 23:29:32 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3281 2020/12/04 23:24:56 riastradh Exp $
+# $NetBSD: Makefile,v 1.3282 2020/12/04 23:29:32 riastradh Exp $
 #
 
 COMMENT=       Development utilities
@@ -2282,6 +2282,8 @@
 SUBDIR+=       py-flakes
 SUBDIR+=       py-flaky
 SUBDIR+=       py-flexmock
+SUBDIR+=       py-flit
+SUBDIR+=       py-flit_core
 SUBDIR+=       py-flufl.i18n
 SUBDIR+=       py-flufl.lock
 SUBDIR+=       py-flufl.testing
diff -r 8fc201fbc271 -r 20ecc3f68a16 devel/py-flit/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-flit/DESCR       Fri Dec 04 23:29:32 2020 +0000
@@ -0,0 +1,4 @@
+Flit is a simple way to put Python packages and modules on PyPI.
+
+It tries to require less thought about packaging and help you avoid
+common mistakes.
diff -r 8fc201fbc271 -r 20ecc3f68a16 devel/py-flit/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-flit/Makefile    Fri Dec 04 23:29:32 2020 +0000
@@ -0,0 +1,61 @@
+# $NetBSD: Makefile,v 1.1 2020/12/04 23:29:32 riastradh Exp $
+
+PKGNAME=       ${PYPKGPREFIX}-${GITHUB_PROJECT}-${DISTNAME}
+CATEGORIES=    devel
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://flit.readthedocs.io/
+COMMENT=       Python and PyPI packaging tool
+LICENSE=       modified-bsd
+
+.include "Makefile.common"
+
+DEPENDS+=      ${PYPKGPREFIX}-docutils>=0:../../textproc/py-docutils
+DEPENDS+=      ${PYPKGPREFIX}-flit_core-${PKGVERSION_NOREV}:../../devel/py-flit_core
+DEPENDS+=      ${PYPKGPREFIX}-pytoml>=0:../../textproc/py-pytoml
+DEPENDS+=      ${PYPKGPREFIX}-requests>=0:../../devel/py-requests
+
+TOOL_DEPENDS+= ${PYPKGPREFIX}-flit_core-${PKGVERSION_NOREV}:../../devel/py-flit_core
+TOOL_DEPENDS+= ${PYPKGPREFIX}-pep517>=0:../../devel/py-pep517
+TOOL_DEPENDS+= ${PYPKGPREFIX}-pip>=0:../../devel/py-pip
+
+TEST_DEPENDS+= ${PYPKGPREFIX}-responses>=0:../../devel/py-responses
+TEST_DEPENDS+= ${PYPKGPREFIX}-test>=0:../../devel/py-test
+TEST_DEPENDS+= ${PYPKGPREFIX}-testpath>=0:../../devel/py-testpath
+
+USE_LANGUAGES= # none
+
+MAKE_ENV+=     PIP_DISABLE_PIP_VERSION_CHECK=1
+MAKE_ENV+=     PIP_ISOLATED=1
+MAKE_ENV+=     PIP_NO_CACHE_DIR=1
+MAKE_ENV+=     PIP_NO_DEPS=1
+MAKE_ENV+=     PIP_NO_INDEX=1
+MAKE_ENV+=     PIP_PREFIX=${PREFIX:Q}
+MAKE_ENV+=     PIP_PROXY=0.0.0.0:0
+MAKE_ENV+=     PIP_ROOT=${DESTDIR:Q}
+
+do-build:
+       ${RUN} \
+       cd ${WRKSRC} && \
+       ${SETENV} ${MAKE_ENV} \
+       ${PYTHONBIN} -c \
+               'from flit_core.buildapi import build_wheel; build_wheel(".")'
+
+do-install:
+       ${RUN} \
+       cd ${WRKSRC} && \
+       ${SETENV} ${MAKE_ENV} ${PYTHONBIN} -m pip install -I \
+               --no-warn-script-location \
+               ./flit-${GITHUB_TAG}-py3-none-any.whl
+       ${RUN} \
+       cd ${DESTDIR:Q}${PREFIX:Q}/bin && \
+       ${MV} -f flit flit${PYVERSSUFFIX}
+
+do-test:
+       ${RUN} \
+       cd ${WRKSRC} && \
+       ${SETENV} ${TEST_ENV} ${PYTHONBIN} -m pytest
+
+PY_PATCHPLIST= yes
+.include "../../lang/python/extension.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 8fc201fbc271 -r 20ecc3f68a16 devel/py-flit/Makefile.common
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-flit/Makefile.common     Fri Dec 04 23:29:32 2020 +0000
@@ -0,0 +1,17 @@
+# $NetBSD: Makefile.common,v 1.1 2020/12/04 23:29:32 riastradh Exp $
+
+# used by devel/py-flit/Makefile
+# used by devel/py-flit_core/Makefile
+
+GITHUB_PROJECT=        flit
+GITHUB_TAG=    3.0.0
+DISTNAME=      ${GITHUB_TAG}
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=takluyver/}
+DIST_SUBDIR=   ${GITHUB_PROJECT}
+
+PYTHON_VERSIONS_INCOMPATIBLE+= 27
+
+DISTINFO_FILE= ${.CURDIR}/../../devel/py-flit/distinfo
+PATCHDIR=      ${.CURDIR}/../../devel/py-flit/patches
+
+WRKSRC=                ${WRKDIR}/${GITHUB_PROJECT}-${GITHUB_TAG}
diff -r 8fc201fbc271 -r 20ecc3f68a16 devel/py-flit/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-flit/PLIST       Fri Dec 04 23:29:32 2020 +0000
@@ -0,0 +1,57 @@
+@comment $NetBSD: PLIST,v 1.1 2020/12/04 23:29:32 riastradh Exp $
+bin/flit${PYVERSSUFFIX}
+${PYSITELIB}/flit-${PKGVERSION}.dist-info/INSTALLER
+${PYSITELIB}/flit-${PKGVERSION}.dist-info/LICENSE
+${PYSITELIB}/flit-${PKGVERSION}.dist-info/METADATA
+${PYSITELIB}/flit-${PKGVERSION}.dist-info/RECORD
+${PYSITELIB}/flit-${PKGVERSION}.dist-info/REQUESTED
+${PYSITELIB}/flit-${PKGVERSION}.dist-info/WHEEL
+${PYSITELIB}/flit-${PKGVERSION}.dist-info/direct_url.json
+${PYSITELIB}/flit-${PKGVERSION}.dist-info/entry_points.txt
+${PYSITELIB}/flit/__init__.py
+${PYSITELIB}/flit/__init__.pyc
+${PYSITELIB}/flit/__main__.py
+${PYSITELIB}/flit/__main__.pyc
+${PYSITELIB}/flit/_get_dirs.py
+${PYSITELIB}/flit/_get_dirs.pyc
+${PYSITELIB}/flit/build.py
+${PYSITELIB}/flit/build.pyc
+${PYSITELIB}/flit/buildapi.py
+${PYSITELIB}/flit/buildapi.pyc
+${PYSITELIB}/flit/config.py
+${PYSITELIB}/flit/config.pyc
+${PYSITELIB}/flit/init.py
+${PYSITELIB}/flit/init.pyc
+${PYSITELIB}/flit/install.py
+${PYSITELIB}/flit/install.pyc
+${PYSITELIB}/flit/license_templates/apache
+${PYSITELIB}/flit/license_templates/gpl3
+${PYSITELIB}/flit/license_templates/mit
+${PYSITELIB}/flit/log.py
+${PYSITELIB}/flit/log.pyc
+${PYSITELIB}/flit/logo.py
+${PYSITELIB}/flit/logo.pyc
+${PYSITELIB}/flit/sdist.py
+${PYSITELIB}/flit/sdist.pyc
+${PYSITELIB}/flit/tomlify.py
+${PYSITELIB}/flit/tomlify.pyc
+${PYSITELIB}/flit/upload.py
+${PYSITELIB}/flit/upload.pyc
+${PYSITELIB}/flit/validate.py
+${PYSITELIB}/flit/validate.pyc
+${PYSITELIB}/flit/vcs/__init__.py
+${PYSITELIB}/flit/vcs/__init__.pyc
+${PYSITELIB}/flit/vcs/git.py
+${PYSITELIB}/flit/vcs/git.pyc
+${PYSITELIB}/flit/vcs/hg.py
+${PYSITELIB}/flit/vcs/hg.pyc
+${PYSITELIB}/flit/vendorized/__init__.py
+${PYSITELIB}/flit/vendorized/__init__.pyc
+${PYSITELIB}/flit/vendorized/readme/__init__.py
+${PYSITELIB}/flit/vendorized/readme/__init__.pyc
+${PYSITELIB}/flit/vendorized/readme/clean.py
+${PYSITELIB}/flit/vendorized/readme/clean.pyc
+${PYSITELIB}/flit/vendorized/readme/rst.py
+${PYSITELIB}/flit/vendorized/readme/rst.pyc
+${PYSITELIB}/flit/wheel.py
+${PYSITELIB}/flit/wheel.pyc
diff -r 8fc201fbc271 -r 20ecc3f68a16 devel/py-flit/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-flit/distinfo    Fri Dec 04 23:29:32 2020 +0000
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2020/12/04 23:29:32 riastradh Exp $
+
+SHA1 (flit/3.0.0.tar.gz) = 17e1143254a3127107cfa0663ae4182063bd2054
+RMD160 (flit/3.0.0.tar.gz) = f2fc536170e7a1b75b9b4691ecbc38d64556f4d2
+SHA512 (flit/3.0.0.tar.gz) = eaac412613f18e711603ee3dcf692aa0b652cd59de726e547ab91ee96368d804dbe4f312a0c169565ff96f34dd4e72e7fccf63f719910c17955afa64d2f36485
+Size (flit/3.0.0.tar.gz) = 104604 bytes
+SHA1 (patch-tests_test__find__python__executable.py) = ba687b8828f40720da7d3bbaea60b0665d781b5b
diff -r 8fc201fbc271 -r 20ecc3f68a16 devel/py-flit/patches/patch-tests_test__find__python__executable.py
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-flit/patches/patch-tests_test__find__python__executable.py       Fri Dec 04 23:29:32 2020 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-tests_test__find__python__executable.py,v 1.1 2020/12/04 23:29:32 riastradh Exp $
+
+Disable test that expects `python' per se to appear in PATH, which it
+generally does not in pkgsrc.
+
+--- tests/test_find_python_executable.py.orig  2020-09-06 10:55:07.000000000 +0000
++++ tests/test_find_python_executable.py
+@@ -20,6 +20,7 @@ def test_abs():
+ 
+ 
+ def test_find_in_path():
++    return
+     assert os.path.isabs(find_python_executable("python"))
+ 
+ 
diff -r 8fc201fbc271 -r 20ecc3f68a16 devel/py-flit_core/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-flit_core/DESCR  Fri Dec 04 23:29:32 2020 +0000
@@ -0,0 +1,7 @@
+Flit is a simple way to put Python packages and modules on PyPI.
+
+It tries to require less thought about packaging and help you avoid
+common mistakes.
+
+flit_core is the core library inside flit, used to bootstrap the build
+of the flit tool.
diff -r 8fc201fbc271 -r 20ecc3f68a16 devel/py-flit_core/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-flit_core/Makefile       Fri Dec 04 23:29:32 2020 +0000
@@ -0,0 +1,40 @@
+# $NetBSD: Makefile,v 1.1 2020/12/04 23:29:33 riastradh Exp $
+
+PKGNAME=       ${PYPKGPREFIX}-${GITHUB_PROJECT}_core-${DISTNAME}
+CATEGORIES=    devel
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://flit.readthedocs.io/
+COMMENT=       Python and PyPI packaging tool -- core library
+LICENSE=       modified-bsd
+
+.include "../../devel/py-flit/Makefile.common"
+
+TOOL_DEPENDS+= ${PYPKGPREFIX}-pip>=0:../../devel/py-pip
+TOOL_DEPENDS+= ${PYPKGPREFIX}-pytoml>=0:../../textproc/py-pytoml
+
+USE_LANGUAGES= # none
+
+MAKE_ENV+=     PIP_DISABLE_PIP_VERSION_CHECK=1
+MAKE_ENV+=     PIP_ISOLATED=1
+MAKE_ENV+=     PIP_NO_CACHE_DIR=1
+MAKE_ENV+=     PIP_NO_DEPS=1
+MAKE_ENV+=     PIP_NO_INDEX=1
+MAKE_ENV+=     PIP_PREFIX=${PREFIX:Q}
+MAKE_ENV+=     PIP_PROXY=0.0.0.0:0
+MAKE_ENV+=     PIP_ROOT=${DESTDIR:Q}
+
+do-build:
+       ${RUN} \
+       cd ${WRKSRC}/flit_core && \
+       ${SETENV} ${MAKE_ENV} ${PYTHONBIN} build_dists.py
+
+do-install:
+       ${RUN} \
+       cd ${WRKSRC}/flit_core/dist && \
+       ${SETENV} ${MAKE_ENV} pip${PYVERSSUFFIX} install \
+               ./flit_core-${GITHUB_TAG}-py3-none-any.whl
+
+PY_PATCHPLIST= yes
+.include "../../lang/python/extension.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 8fc201fbc271 -r 20ecc3f68a16 devel/py-flit_core/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-flit_core/PLIST  Fri Dec 04 23:29:32 2020 +0000
@@ -0,0 +1,91 @@
+@comment $NetBSD: PLIST,v 1.1 2020/12/04 23:29:33 riastradh Exp $
+${PYSITELIB}/flit_core-${PKGVERSION}.dist-info/INSTALLER
+${PYSITELIB}/flit_core-${PKGVERSION}.dist-info/METADATA
+${PYSITELIB}/flit_core-${PKGVERSION}.dist-info/RECORD
+${PYSITELIB}/flit_core-${PKGVERSION}.dist-info/REQUESTED
+${PYSITELIB}/flit_core-${PKGVERSION}.dist-info/WHEEL
+${PYSITELIB}/flit_core-${PKGVERSION}.dist-info/direct_url.json
+${PYSITELIB}/flit_core/__init__.py
+${PYSITELIB}/flit_core/__init__.pyc
+${PYSITELIB}/flit_core/build_thyself.py
+${PYSITELIB}/flit_core/build_thyself.pyc
+${PYSITELIB}/flit_core/buildapi.py
+${PYSITELIB}/flit_core/buildapi.pyc
+${PYSITELIB}/flit_core/common.py
+${PYSITELIB}/flit_core/common.pyc
+${PYSITELIB}/flit_core/config.py
+${PYSITELIB}/flit_core/config.pyc
+${PYSITELIB}/flit_core/sdist.py
+${PYSITELIB}/flit_core/sdist.pyc
+${PYSITELIB}/flit_core/tests/__init__.py
+${PYSITELIB}/flit_core/tests/__init__.pyc
+${PYSITELIB}/flit_core/tests/samples/EG_README.rst
+${PYSITELIB}/flit_core/tests/samples/bad-description-ext.toml
+${PYSITELIB}/flit_core/tests/samples/conflicting_modules/module1.py
+${PYSITELIB}/flit_core/tests/samples/conflicting_modules/module1.pyc
+${PYSITELIB}/flit_core/tests/samples/conflicting_modules/pyproject.toml
+${PYSITELIB}/flit_core/tests/samples/conflicting_modules/src/module1.py
+${PYSITELIB}/flit_core/tests/samples/conflicting_modules/src/module1.pyc
+${PYSITELIB}/flit_core/tests/samples/constructed_version/module1.py
+${PYSITELIB}/flit_core/tests/samples/constructed_version/module1.pyc
+${PYSITELIB}/flit_core/tests/samples/constructed_version/pyproject.toml
+${PYSITELIB}/flit_core/tests/samples/extras-dev-conflict.toml
+${PYSITELIB}/flit_core/tests/samples/extras.toml
+${PYSITELIB}/flit_core/tests/samples/inclusion/doc/subdir/test.txt
+${PYSITELIB}/flit_core/tests/samples/inclusion/doc/test.rst
+${PYSITELIB}/flit_core/tests/samples/inclusion/doc/test.txt
+${PYSITELIB}/flit_core/tests/samples/inclusion/module1.py
+${PYSITELIB}/flit_core/tests/samples/inclusion/module1.pyc



Home | Main Index | Thread Index | Old Index