head	1.11;
access;
symbols
	pkgsrc-2026Q1:1.11.0.8
	pkgsrc-2026Q1-base:1.11
	pkgsrc-2025Q4:1.11.0.6
	pkgsrc-2025Q4-base:1.11
	pkgsrc-2025Q3:1.11.0.4
	pkgsrc-2025Q3-base:1.11
	pkgsrc-2025Q2:1.11.0.2
	pkgsrc-2025Q2-base:1.11
	pkgsrc-2025Q1:1.10.0.2
	pkgsrc-2025Q1-base:1.10
	pkgsrc-2024Q4:1.9.0.2
	pkgsrc-2024Q4-base:1.9
	pkgsrc-2024Q3:1.8.0.8
	pkgsrc-2024Q3-base:1.8
	pkgsrc-2024Q2:1.8.0.6
	pkgsrc-2024Q2-base:1.8
	pkgsrc-2024Q1:1.8.0.4
	pkgsrc-2024Q1-base:1.8
	pkgsrc-2023Q4:1.8.0.2
	pkgsrc-2023Q4-base:1.8
	pkgsrc-2023Q3:1.6.0.4
	pkgsrc-2023Q3-base:1.6
	pkgsrc-2023Q2:1.6.0.2
	pkgsrc-2023Q2-base:1.6
	pkgsrc-2023Q1:1.5.0.4
	pkgsrc-2023Q1-base:1.5
	pkgsrc-2022Q4:1.5.0.2
	pkgsrc-2022Q4-base:1.5
	pkgsrc-2022Q3:1.4.0.4
	pkgsrc-2022Q3-base:1.4
	pkgsrc-2022Q2:1.4.0.2
	pkgsrc-2022Q2-base:1.4
	pkgsrc-2022Q1:1.3.0.2
	pkgsrc-2022Q1-base:1.3
	pkgsrc-2021Q4:1.2.0.10
	pkgsrc-2021Q4-base:1.2
	pkgsrc-2021Q3:1.2.0.8
	pkgsrc-2021Q3-base:1.2
	pkgsrc-2021Q2:1.2.0.6
	pkgsrc-2021Q2-base:1.2
	pkgsrc-2021Q1:1.2.0.4
	pkgsrc-2021Q1-base:1.2
	pkgsrc-2020Q4:1.2.0.2
	pkgsrc-2020Q4-base:1.2;
locks; strict;
comment	@# @;


1.11
date	2025.04.21.06.53.53;	author adam;	state Exp;
branches;
next	1.10;
commitid	NR1QsKadOUek1TRF;

1.10
date	2025.02.23.17.58.45;	author wiz;	state Exp;
branches;
next	1.9;
commitid	GnTYMkllSVd3xCKF;

1.9
date	2024.11.03.07.50.30;	author adam;	state Exp;
branches;
next	1.8;
commitid	OigwtDgkbTRgLawF;

1.8
date	2023.10.28.19.57.00;	author wiz;	state Exp;
branches;
next	1.7;
commitid	jP8MYROLWZ3yJqKE;

1.7
date	2023.10.25.23.00.33;	author wiz;	state Exp;
branches;
next	1.6;
commitid	KVNNudK6jfR2R3KE;

1.6
date	2023.05.15.07.18.20;	author adam;	state Exp;
branches;
next	1.5;
commitid	eg0pbPYh9rhBS1pE;

1.5
date	2022.11.14.09.09.27;	author adam;	state Exp;
branches;
next	1.4;
commitid	dwx0weRXVECqlE1E;

1.4
date	2022.04.07.12.28.15;	author adam;	state Exp;
branches;
next	1.3;
commitid	FuLwnHJQlT52ygzD;

1.3
date	2022.01.10.19.17.10;	author adam;	state Exp;
branches;
next	1.2;
commitid	jqoejcc0TOcCB7oD;

1.2
date	2020.12.05.03.22.34;	author riastradh;	state Exp;
branches;
next	1.1;
commitid	rV57Nz04DFoodvyC;

1.1
date	2020.12.04.23.29.32;	author riastradh;	state Exp;
branches;
next	;
commitid	WNBVMijbPIMBVtyC;


desc
@@


1.11
log
@py-flit: updated to 3.12.0

Version 3.12

- Support for license expressions using the AND and OR operators (:ghpull:`731`).
- Recognise ``__version__: str = "0.1"`` annotated assignments when finding the
  version number (:ghpull:`728`).
- Clear error message when referring to a license file in a parent directory,
  which is not supported (:ghpull:`725`).
@
text
@# $NetBSD: Makefile,v 1.10 2025/02/23 17:58:45 wiz Exp $

DISTNAME=	flit-3.12.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-9]*:../../textproc/py-docutils
DEPENDS+=	${PYPKGPREFIX}-flit_core-${PKGVERSION_NOREV}{,nb*}:../../devel/py-flit_core
DEPENDS+=	${PYPKGPREFIX}-pip-[0-9]*:../../devel/py-pip
DEPENDS+=	${PYPKGPREFIX}-requests-[0-9]*:../../devel/py-requests
DEPENDS+=	${PYPKGPREFIX}-tomli_w-[0-9]*:../../textproc/py-tomli_w
TEST_DEPENDS+=	${PYPKGPREFIX}-responses-[0-9]*:../../net/py-responses
TEST_DEPENDS+=	${PYPKGPREFIX}-test-cov-[0-9]*:../../devel/py-test-cov
TEST_DEPENDS+=	${PYPKGPREFIX}-testpath-[0-9]*:../../devel/py-testpath
TEST_DEPENDS+=	${PYPKGPREFIX}-tomli-[0-9]*:../../textproc/py-tomli

USE_LANGUAGES=	# none

post-install:
	cd ${DESTDIR}${PREFIX}/bin && \
	${MV} flit flit-${PYVERSSUFFIX} || ${TRUE}

.include "../../lang/python/wheel.mk"
.include "../../mk/bsd.pkg.mk"
@


1.10
log
@py-flit: update to 3.11.0.

Version 3.11
------------

- Support for SPDX license expressions and multiple license files, as detailed
  in :pep:`639`::

        license = "BSD-3-Clause"
        license-files = ["LICENSE"]

  For now, only a single license identifier is allowed. More complex expressions
  describing multiple licenses & expressions may be supported in a future
  version.
- The `metadata format <https://packaging.python.org/en/latest/specifications/core-metadata/>`_
  in produced packages is now version 2.4, to support the expanded license
  information.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.9 2024/11/03 07:50:30 adam Exp $
d3 1
a3 1
DISTNAME=	flit-3.11.0
@


1.9
log
@py-flit_core py-flit: updated to 3.10.1

Version 3.10.1

- The sdist of ``flit_core`` now includes the corresponding tests
  These were missing in 3.10.

Version 3.10

- ``flit publish`` can now use PyPI tokens stored in keyring
  either project tokens with a 'username' like
  :samp:`pypi_token:project:{project_name}` (use the `normalised form of the
  name <https://packaging.python.org/en/latest/specifications/name-normalization/>`_)
  or user tokens
- The ``--python`` option can now take the path of a virtualenv folder, as an
  alternative to a Python executable
- Flit will work with current development versions of Pythona again
- The ``flit`` command line package now requires Python 3.8 or above
  ``flit_core`` still works with Python 3.6 or above.
- The metadata in packages now has the names of optional dependency groups
  ("extras") normalised, complying with version 2.3 of the metadata standard
- The ``flit`` command line package now depends on pip
- Fix potential substitution of environment variables into passwords read from
  ``.pypirc`` files
- A warning is now shown when building packages which specify the old
  ``flit.buildapi`` backend, which should be replaced by ``flit_core.buildapi``
  build requirement, to protect against changes in future major versions of Flit.
- Avoid using the deprecated ``datetime.utcfromtimestamp()``
- Flit now has a ``SECURITY.md`` file in the Github repository
- The tests for ``flit_core`` are no longer part of the installed package,
  reducing the size of the wheels
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.8 2023/10/28 19:57:00 wiz Exp $
d3 1
a3 1
DISTNAME=	flit-3.10.1
@


1.8
log
@python/wheel.mk: simplify a lot, and switch to 'installer' for installation

This follows the recommended bootstrap method (flit_core, build, installer).

However, installer installs different files than pip, so update PLISTs
for all packages using wheel.mk and bump their PKGREVISIONs.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.7 2023/10/25 23:00:33 wiz Exp $
d3 1
a3 1
DISTNAME=	flit-3.9.0
a4 1
PKGREVISION=	1
d15 1
a18 1
TEST_DEPENDS+=	${PYPKGPREFIX}-test>=2.7.3:../../devel/py-test
a24 2
PYTHON_VERSIONS_INCOMPATIBLE=	27

a28 3
do-test:
	cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX} tests

@


1.7
log
@py-flit: fix wrong DEPENDS

Even when you want one particular package version, you must always consider
PKGREVISION.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.6 2023/05/15 07:18:20 adam Exp $
d5 1
@


1.6
log
@py-flit_core py_flit: updated to 3.9.0

Version 3.9

New options flit build --use-vcs and flit build --no-use-vcs to enable & disable including all committed files in the sdist. For now --use-vcs is the default, but this is likely to change in a future version, to bring flit build in line with standard build frontends like python -m build.
Sdist file names, and the name of the top-level folder in an sdist, are now normalised, in accordance with PEP 625.
A statically defined version number can now be parsed from files called version.py, _version.py or __version__.py inside a packge, as well as from __init__.py, so executing code is required in fewer cases.
Fix setting the flag for regular files in zip metadata.
The timestamp embedded in the gzip wrapper for sdists now defaults to a fixed date, so building an sdist twice on the same machine should produce identical results, even without any special steps. Setting SOURCE_DATE_EPOCH is still recommended for properly reproducible builds.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.5 2022/11/14 09:09:27 adam Exp $
d14 1
a14 1
DEPENDS+=	${PYPKGPREFIX}-flit_core-${PKGVERSION_NOREV}:../../devel/py-flit_core
@


1.5
log
@py-flit_core py-flit: updated to 3.8.0

Version 3.8

A project name containing hyphens is now automatically translated to use underscores for the import name
New option flit install --only-deps to install the dependencies of the package, but not the package itself.
Add support for recursive globbing (**) in sdist includes and excludes
Python’s bytecode cache files (__pycache__ folders and .pyc files) are now always excluded from sdists
Use tomllib in Python 3.11, rather than tomli
Fix crash when unable to get a password from keyring
Fix including modified files in sdist when using Mercurial
Fix for some cases of determining whether a package supports Python 2 or not
Fix parsing version number from code using multiple assignments
Document how to use a PyPI token with FLIT_PASSWORD
Fix link to information about environment variables for pip
Link to the docs for the latest stable version in package metadata
Remove a mention of the toml package, which is no longer needed, from the Developing Flit page
The bootstrap install script for flit_core accepts a new --install-root option.
Ensure the license file is included in packages on PyPI
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 2022/04/07 12:28:15 adam Exp $
d3 1
a3 1
DISTNAME=	flit-3.8.0
d13 1
a13 1
DEPENDS+=	${PYPKGPREFIX}-docutils>=0:../../textproc/py-docutils
d15 3
a17 3
DEPENDS+=	${PYPKGPREFIX}-requests>=0:../../devel/py-requests
DEPENDS+=	${PYPKGPREFIX}-tomli_w>=0:../../textproc/py-tomli_w
TEST_DEPENDS+=	${PYPKGPREFIX}-responses>=0:../../net/py-responses
d19 3
a21 3
TEST_DEPENDS+=	${PYPKGPREFIX}-test-cov>=0:../../devel/py-test-cov
TEST_DEPENDS+=	${PYPKGPREFIX}-testpath>=0:../../devel/py-testpath
TEST_DEPENDS+=	${PYPKGPREFIX}-tomli>=0:../../textproc/py-tomli
@


1.4
log
@py-flit_core py-flit: updated to 3.7.1

Version 3.7.1

Fix building packages which need execution to get the version number, and have a relative import in __init__.py.


Version 3.7

Support for external data files such as man pages or Jupyter extension support files.
Project names are now lowercase in wheel filenames and .dist-info folder names, in line with the specification.
Improved support for bootstrapping a Python environment, e.g. for downstream packagers. flit_core.wheel is usable with python -m to create wheels before the build tool is available, and flit_core sdists also include a script to install itself from a wheel before installer is available.
Use newer importlib APIs, fixing some deprecation warnings
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 2022/01/10 19:17:10 adam Exp $
d3 1
a3 1
DISTNAME=	flit-3.7.1
a15 1
DEPENDS+=	${PYPKGPREFIX}-tomli>=0:../../textproc/py-tomli
d21 1
@


1.3
log
@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).
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2020/12/05 03:22:34 riastradh Exp $
d3 1
a3 2
# Important: Re-generate files/setup.py on update.
DISTNAME=	flit-3.6.0
d15 1
a17 1
DEPENDS+=	${PYPKGPREFIX}-requests>=0:../../devel/py-requests
a26 3
pre-configure:
	${CP} ${FILESDIR}/setup.py ${WRKSRC}/

d32 1
a32 1
	cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHONBIN} -m pytest tests
d34 1
a34 1
.include "../../lang/python/egg.mk"
@


1.2
log
@Revert addition of devel/py-responses.

Turns out we already had net/py-responses, and somehow I missed it.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1 2020/12/04 23:29:32 riastradh Exp $
d3 5
a7 2
PKGNAME=	${PYPKGPREFIX}-${GITHUB_PROJECT}-${DISTNAME}
CATEGORIES=	devel
d11 1
a11 1
COMMENT=	Python and PyPI packaging tool
a13 2
.include "Makefile.common"

d16 2
a17 1
DEPENDS+=	${PYPKGPREFIX}-pytoml>=0:../../textproc/py-pytoml
a18 5

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

d20 2
a21 1
TEST_DEPENDS+=	${PYPKGPREFIX}-test>=0:../../devel/py-test
d26 8
a33 25
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}
d36 1
a36 3
	${RUN} \
	cd ${WRKSRC} && \
	${SETENV} ${TEST_ENV} ${PYTHONBIN} -m pytest
d38 1
a38 2
PY_PATCHPLIST=	yes
.include "../../lang/python/extension.mk"
@


1.1
log
@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.
@
text
@d1 1
a1 1
# $NetBSD$
d22 1
a22 1
TEST_DEPENDS+=	${PYPKGPREFIX}-responses>=0:../../devel/py-responses
@

