pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel py-flit_core py-flit: updated o 3.6.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/265c64baf2aa
branches:  trunk
changeset: 371515:265c64baf2aa
user:      adam <adam%pkgsrc.org@localhost>
date:      Mon Jan 10 19:17:09 2022 +0000

description:
py-flit_core py-flit: updated o 3.6.0

Version 3.6

flit_core now bundles the tomli TOML parser library (version 1.2.3) to avoid a circular dependency between flit_core and tomli

Version 3.5.1

Fix development installs with flit install --symlink and --pth-file, which were broken in 3.5.0, especially for packages using a src folder

Version 3.5

You can now use Flit to distribute a module or package inside a namespace package (as defined by PEP 420). To do this, specify the import name of the concrete, inner module you are packaging - e.g. 
name = "sphinxcontrib.foo" - either in the [project] table, or under [tool.flit.module] if you want to use a different name on PyPI
Flit no longer generates a setup.py file in sdists (.tar.gz packages) by default
Fixed how flit init handles authors' names with non-ASCII characters
When flit init generates a LICENSE file, the new pyproject.toml now references it

Version 3.4

Python 3.6 or above is now required, both for flit and flit_core.
Add a --setup-py option to flit build and flit publish, and a warning when neither this nor --no-setup-py are specified
Add support for standardised editable installs - pip install -e - according to PEP 660
Add a --pypirc option for flit publish to specify an alternative path to a .pypirc config file describing package indexes
Fix installing dependencies specified in a [project] table
Fix building wheels when SOURCE_DATE_EPOCH (see :doc:`reproducible`) is set to a date before 1980
Switch to using the tomli TOML parser, in common with other packaging projects
Add a document on :doc:`bootstrap`

Version 3.3

PKG-INFO files in sdists are now generated the same way as METADATA in wheels, fixing some issues with sdists
flit publish now sends SHA-256 hashes, fixing uploads to GitLab package repositories
The [project] metadata table from PEP 621 is now fully supported and :ref:`documented <pyproject_toml_project>`. Projects using this can now specify requires = ["flit_core >=3.2,<4"] in the 
[build-system] table.

Version 3.2

Experimental support for specifying metadata in a [project] table in pyproject.toml as specified by PEP 621
Fix writing METADATA file with multi-line information in certain fields such as Author
Fix building wheel when a directory such as LICENSES appears in the project root directory

Version 3.1

Update handling of names & version numbers in wheel filenames and .dist-info folders in line with changes in the specs
Switch from the deprecated pytoml package to toml
Fix specifying backend-path in pyproject.toml for flit-core (as a list instead of a string).

diffstat:

 devel/py-flit/ALTERNATIVES    |   1 +
 devel/py-flit/Makefile        |  60 ++++++++++---------------------
 devel/py-flit/Makefile.common |  17 ---------
 devel/py-flit/PLIST           |  40 +++++++++++++++-----
 devel/py-flit/distinfo        |   8 ++--
 devel/py-flit/files/setup.py  |  33 +++++++++++++++++
 devel/py-flit_core/Makefile   |  44 ++++++++--------------
 devel/py-flit_core/PLIST      |  81 ++++++++++++++++++++++++++++++++++++++----
 8 files changed, 175 insertions(+), 109 deletions(-)

diffs (truncated from 479 to 300 lines):

diff -r 56d35825dba5 -r 265c64baf2aa devel/py-flit/ALTERNATIVES
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-flit/ALTERNATIVES        Mon Jan 10 19:17:09 2022 +0000
@@ -0,0 +1,1 @@
+bin/flit @PREFIX@/bin/flit-@PYVERSSUFFIX@
diff -r 56d35825dba5 -r 265c64baf2aa devel/py-flit/Makefile
--- a/devel/py-flit/Makefile    Mon Jan 10 19:16:03 2022 +0000
+++ b/devel/py-flit/Makefile    Mon Jan 10 19:17:09 2022 +0000
@@ -1,61 +1,39 @@
-# $NetBSD: Makefile,v 1.2 2020/12/05 03:22:34 riastradh Exp $
+# $NetBSD: Makefile,v 1.3 2022/01/10 19:17:10 adam Exp $
 
-PKGNAME=       ${PYPKGPREFIX}-${GITHUB_PROJECT}-${DISTNAME}
-CATEGORIES=    devel
+# Important: Re-generate files/setup.py on update.
+DISTNAME=      flit-3.6.0
+PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES=    devel python
+MASTER_SITES=  ${MASTER_SITE_PYPI:=f/flit/}
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
 HOMEPAGE=      https://flit.readthedocs.io/
-COMMENT=       Python and PyPI packaging tool
+COMMENT=       Simple packaging tool for simple packages
 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}-tomli>=0:../../textproc/py-tomli
+DEPENDS+=      ${PYPKGPREFIX}-tomli_w>=0:../../textproc/py-tomli_w
 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:../../net/py-responses
-TEST_DEPENDS+= ${PYPKGPREFIX}-test>=0:../../devel/py-test
+TEST_DEPENDS+= ${PYPKGPREFIX}-test>=2.7.3:../../devel/py-test
+TEST_DEPENDS+= ${PYPKGPREFIX}-test-cov>=0:../../devel/py-test-cov
 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}
+PYTHON_VERSIONS_INCOMPATIBLE=  27
 
-do-build:
-       ${RUN} \
-       cd ${WRKSRC} && \
-       ${SETENV} ${MAKE_ENV} \
-       ${PYTHONBIN} -c \
-               'from flit_core.buildapi import build_wheel; build_wheel(".")'
+pre-configure:
+       ${CP} ${FILESDIR}/setup.py ${WRKSRC}/
 
-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}
+post-install:
+       cd ${DESTDIR}${PREFIX}/bin && \
+       ${MV} flit flit-${PYVERSSUFFIX} || ${TRUE}
 
 do-test:
-       ${RUN} \
-       cd ${WRKSRC} && \
-       ${SETENV} ${TEST_ENV} ${PYTHONBIN} -m pytest
+       cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHONBIN} -m pytest tests
 
-PY_PATCHPLIST= yes
-.include "../../lang/python/extension.mk"
+.include "../../lang/python/egg.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 56d35825dba5 -r 265c64baf2aa devel/py-flit/Makefile.common
--- a/devel/py-flit/Makefile.common     Mon Jan 10 19:16:03 2022 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,17 +0,0 @@
-# $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 56d35825dba5 -r 265c64baf2aa devel/py-flit/PLIST
--- a/devel/py-flit/PLIST       Mon Jan 10 19:16:03 2022 +0000
+++ b/devel/py-flit/PLIST       Mon Jan 10 19:17:09 2022 +0000
@@ -1,57 +1,77 @@
-@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
+@comment $NetBSD: PLIST,v 1.2 2022/01/10 19:17:10 adam Exp $
+bin/flit-${PYVERSSUFFIX}
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/entry_points.txt
+${PYSITELIB}/${EGG_INFODIR}/requires.txt
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
 ${PYSITELIB}/flit/__init__.py
 ${PYSITELIB}/flit/__init__.pyc
+${PYSITELIB}/flit/__init__.pyo
 ${PYSITELIB}/flit/__main__.py
 ${PYSITELIB}/flit/__main__.pyc
+${PYSITELIB}/flit/__main__.pyo
 ${PYSITELIB}/flit/_get_dirs.py
 ${PYSITELIB}/flit/_get_dirs.pyc
+${PYSITELIB}/flit/_get_dirs.pyo
 ${PYSITELIB}/flit/build.py
 ${PYSITELIB}/flit/build.pyc
+${PYSITELIB}/flit/build.pyo
 ${PYSITELIB}/flit/buildapi.py
 ${PYSITELIB}/flit/buildapi.pyc
+${PYSITELIB}/flit/buildapi.pyo
 ${PYSITELIB}/flit/config.py
 ${PYSITELIB}/flit/config.pyc
+${PYSITELIB}/flit/config.pyo
 ${PYSITELIB}/flit/init.py
 ${PYSITELIB}/flit/init.pyc
+${PYSITELIB}/flit/init.pyo
 ${PYSITELIB}/flit/install.py
 ${PYSITELIB}/flit/install.pyc
+${PYSITELIB}/flit/install.pyo
 ${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/log.pyo
 ${PYSITELIB}/flit/logo.py
 ${PYSITELIB}/flit/logo.pyc
+${PYSITELIB}/flit/logo.pyo
 ${PYSITELIB}/flit/sdist.py
 ${PYSITELIB}/flit/sdist.pyc
+${PYSITELIB}/flit/sdist.pyo
 ${PYSITELIB}/flit/tomlify.py
 ${PYSITELIB}/flit/tomlify.pyc
+${PYSITELIB}/flit/tomlify.pyo
 ${PYSITELIB}/flit/upload.py
 ${PYSITELIB}/flit/upload.pyc
+${PYSITELIB}/flit/upload.pyo
 ${PYSITELIB}/flit/validate.py
 ${PYSITELIB}/flit/validate.pyc
+${PYSITELIB}/flit/validate.pyo
 ${PYSITELIB}/flit/vcs/__init__.py
 ${PYSITELIB}/flit/vcs/__init__.pyc
+${PYSITELIB}/flit/vcs/__init__.pyo
 ${PYSITELIB}/flit/vcs/git.py
 ${PYSITELIB}/flit/vcs/git.pyc
+${PYSITELIB}/flit/vcs/git.pyo
 ${PYSITELIB}/flit/vcs/hg.py
 ${PYSITELIB}/flit/vcs/hg.pyc
+${PYSITELIB}/flit/vcs/hg.pyo
 ${PYSITELIB}/flit/vendorized/__init__.py
 ${PYSITELIB}/flit/vendorized/__init__.pyc
+${PYSITELIB}/flit/vendorized/__init__.pyo
 ${PYSITELIB}/flit/vendorized/readme/__init__.py
 ${PYSITELIB}/flit/vendorized/readme/__init__.pyc
+${PYSITELIB}/flit/vendorized/readme/__init__.pyo
 ${PYSITELIB}/flit/vendorized/readme/clean.py
 ${PYSITELIB}/flit/vendorized/readme/clean.pyc
+${PYSITELIB}/flit/vendorized/readme/clean.pyo
 ${PYSITELIB}/flit/vendorized/readme/rst.py
 ${PYSITELIB}/flit/vendorized/readme/rst.pyc
+${PYSITELIB}/flit/vendorized/readme/rst.pyo
 ${PYSITELIB}/flit/wheel.py
 ${PYSITELIB}/flit/wheel.pyc
+${PYSITELIB}/flit/wheel.pyo
diff -r 56d35825dba5 -r 265c64baf2aa devel/py-flit/distinfo
--- a/devel/py-flit/distinfo    Mon Jan 10 19:16:03 2022 +0000
+++ b/devel/py-flit/distinfo    Mon Jan 10 19:17:09 2022 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.3 2021/10/26 10:18:28 nia Exp $
+$NetBSD: distinfo,v 1.4 2022/01/10 19:17:10 adam Exp $
 
-BLAKE2s (flit/3.0.0.tar.gz) = c5e42c94cba846452b8d5de612045f6605ac2a9c219e4b296fc4059862ebd4b9
-SHA512 (flit/3.0.0.tar.gz) = eaac412613f18e711603ee3dcf692aa0b652cd59de726e547ab91ee96368d804dbe4f312a0c169565ff96f34dd4e72e7fccf63f719910c17955afa64d2f36485
-Size (flit/3.0.0.tar.gz) = 104604 bytes
+BLAKE2s (flit-3.6.0.tar.gz) = 789e58530006aa94eeb37fa2aa35f81df420d9aac92055dcb77288c6f6eb61f7
+SHA512 (flit-3.6.0.tar.gz) = 6506ecc73f9e0373e84b5b90a3d567f1edad6d95561886ff1f08f37addfc39006e75ab199c376a7d18452f6b8e2cbdd9e8f59a1fc96037702c3c682dc0b5a757
+Size (flit-3.6.0.tar.gz) = 133365 bytes
 SHA1 (patch-tests_test__find__python__executable.py) = ba687b8828f40720da7d3bbaea60b0665d781b5b
diff -r 56d35825dba5 -r 265c64baf2aa devel/py-flit/files/setup.py
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-flit/files/setup.py      Mon Jan 10 19:17:09 2022 +0000
@@ -0,0 +1,33 @@
+#!/usr/bin/env python
+
+from setuptools import setup
+
+packages = \
+['flit', 'flit.vcs', 'flit.vendorized', 'flit.vendorized.readme']
+
+package_data = \
+{'': ['*'], 'flit': ['license_templates/*']}
+
+install_requires = \
+['flit_core >=3.6.0', 'requests', 'docutils', 'tomli', 'tomli-w']
+
+extras_require = \
+{'doc': ['sphinx', 'sphinxcontrib_github_alt', 'pygments-github-lexers'],
+ 'test': ['testpath', 'responses', 'pytest>=2.7.3', 'pytest-cov']}
+
+entry_points = \
+{'console_scripts': ['flit = flit:main']}
+
+setup(name='flit',
+      version='3.6.0',
+      description='A simple packaging tool for simple packages.',
+      author=None,
+      author_email='Thomas Kluyver <thomas%kluyver.me.uk@localhost>',
+      url=None,
+      packages=packages,
+      package_data=package_data,
+      install_requires=install_requires,
+      extras_require=extras_require,
+      entry_points=entry_points,
+      python_requires='>=3.6',
+     )
diff -r 56d35825dba5 -r 265c64baf2aa devel/py-flit_core/Makefile
--- a/devel/py-flit_core/Makefile       Mon Jan 10 19:16:03 2022 +0000
+++ b/devel/py-flit_core/Makefile       Mon Jan 10 19:17:09 2022 +0000
@@ -1,40 +1,28 @@
-# $NetBSD: Makefile,v 1.1 2020/12/04 23:29:33 riastradh Exp $
+# $NetBSD: Makefile,v 1.2 2022/01/10 19:17:09 adam Exp $
 
-PKGNAME=       ${PYPKGPREFIX}-${GITHUB_PROJECT}_core-${DISTNAME}
-CATEGORIES=    devel
+# Important: Re-generate files/setup.py on update.
+DISTNAME=      flit_core-3.6.0
+PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES=    devel python
+MASTER_SITES=  ${MASTER_SITE_PYPI:=f/flit-core/}
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
 HOMEPAGE=      https://flit.readthedocs.io/
-COMMENT=       Python and PyPI packaging tool -- core library
+COMMENT=       Distribution-building parts of Flit
 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
+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}
+PYTHON_VERSIONS_INCOMPATIBLE=  27
+
+pre-configure:
+       ${CP} ${FILESDIR}/setup.py ${WRKSRC}/
 
-do-build:
-       ${RUN} \
-       cd ${WRKSRC}/flit_core && \
-       ${SETENV} ${MAKE_ENV} ${PYTHONBIN} build_dists.py
+do-test:



Home | Main Index | Thread Index | Old Index