a1f8904bc2
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).
39 lines
1.3 KiB
Makefile
39 lines
1.3 KiB
Makefile
# $NetBSD: Makefile,v 1.3 2022/01/10 19:17:10 adam Exp $
|
|
|
|
# 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
|
|
HOMEPAGE= https://flit.readthedocs.io/
|
|
COMMENT= Simple packaging tool for simple packages
|
|
LICENSE= modified-bsd
|
|
|
|
DEPENDS+= ${PYPKGPREFIX}-docutils>=0:../../textproc/py-docutils
|
|
DEPENDS+= ${PYPKGPREFIX}-flit_core-${PKGVERSION_NOREV}:../../devel/py-flit_core
|
|
DEPENDS+= ${PYPKGPREFIX}-tomli>=0:../../textproc/py-tomli
|
|
DEPENDS+= ${PYPKGPREFIX}-tomli_w>=0:../../textproc/py-tomli_w
|
|
DEPENDS+= ${PYPKGPREFIX}-requests>=0:../../devel/py-requests
|
|
TEST_DEPENDS+= ${PYPKGPREFIX}-responses>=0:../../net/py-responses
|
|
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
|
|
|
|
PYTHON_VERSIONS_INCOMPATIBLE= 27
|
|
|
|
pre-configure:
|
|
${CP} ${FILESDIR}/setup.py ${WRKSRC}/
|
|
|
|
post-install:
|
|
cd ${DESTDIR}${PREFIX}/bin && \
|
|
${MV} flit flit-${PYVERSSUFFIX} || ${TRUE}
|
|
|
|
do-test:
|
|
cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHONBIN} -m pytest tests
|
|
|
|
.include "../../lang/python/egg.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|