head	1.15;
access;
symbols
	pkgsrc-2026Q1:1.15.0.8
	pkgsrc-2026Q1-base:1.15
	pkgsrc-2025Q4:1.15.0.6
	pkgsrc-2025Q4-base:1.15
	pkgsrc-2025Q3:1.15.0.4
	pkgsrc-2025Q3-base:1.15
	pkgsrc-2025Q2:1.15.0.2
	pkgsrc-2025Q2-base:1.15
	pkgsrc-2025Q1:1.14.0.4
	pkgsrc-2025Q1-base:1.14
	pkgsrc-2024Q4:1.14.0.2
	pkgsrc-2024Q4-base:1.14
	pkgsrc-2024Q3:1.13.0.6
	pkgsrc-2024Q3-base:1.13
	pkgsrc-2024Q2:1.13.0.4
	pkgsrc-2024Q2-base:1.13
	pkgsrc-2024Q1:1.13.0.2
	pkgsrc-2024Q1-base:1.13
	pkgsrc-2023Q4:1.12.0.2
	pkgsrc-2023Q4-base:1.12
	pkgsrc-2023Q3:1.11.0.4
	pkgsrc-2023Q3-base:1.11
	pkgsrc-2023Q2:1.11.0.2
	pkgsrc-2023Q2-base:1.11
	pkgsrc-2023Q1:1.10.0.4
	pkgsrc-2023Q1-base:1.10
	pkgsrc-2022Q4:1.10.0.2
	pkgsrc-2022Q4-base:1.10
	pkgsrc-2022Q3:1.7.0.6
	pkgsrc-2022Q3-base:1.7
	pkgsrc-2022Q2:1.7.0.4
	pkgsrc-2022Q2-base:1.7
	pkgsrc-2022Q1:1.7.0.2
	pkgsrc-2022Q1-base:1.7
	pkgsrc-2021Q4:1.5.0.4
	pkgsrc-2021Q4-base:1.5
	pkgsrc-2021Q3:1.5.0.2
	pkgsrc-2021Q3-base:1.5
	pkgsrc-2021Q2:1.4.0.10
	pkgsrc-2021Q2-base:1.4
	pkgsrc-2021Q1:1.4.0.8
	pkgsrc-2021Q1-base:1.4
	pkgsrc-2020Q4:1.4.0.6
	pkgsrc-2020Q4-base:1.4
	pkgsrc-2020Q3:1.4.0.4
	pkgsrc-2020Q3-base:1.4
	pkgsrc-2020Q2:1.4.0.2
	pkgsrc-2020Q2-base:1.4
	pkgsrc-2020Q1:1.2.0.4
	pkgsrc-2020Q1-base:1.2
	pkgsrc-2019Q4:1.2.0.6
	pkgsrc-2019Q4-base:1.2
	pkgsrc-2019Q3:1.2.0.2;
locks; strict;
comment	@# @;


1.15
date	2025.04.12.10.24.31;	author adam;	state Exp;
branches;
next	1.14;
commitid	pTUTvTiL4O8BtKQF;

1.14
date	2024.11.11.07.28.06;	author wiz;	state Exp;
branches;
next	1.13;
commitid	1fBDq3LwS98NncxF;

1.13
date	2023.12.31.21.22.57;	author wiz;	state Exp;
branches;
next	1.12;
commitid	x9toIZTOzK3Z9FSE;

1.12
date	2023.10.28.19.56.59;	author wiz;	state Exp;
branches;
next	1.11;
commitid	jP8MYROLWZ3yJqKE;

1.11
date	2023.06.06.12.41.12;	author riastradh;	state Exp;
branches;
next	1.10;
commitid	xhspr6Z8JLQOWSrE;

1.10
date	2022.11.01.18.29.31;	author wiz;	state Exp;
branches;
next	1.9;
commitid	9WxTeCZ1jdPCR10E;

1.9
date	2022.10.31.13.57.36;	author adam;	state Exp;
branches;
next	1.8;
commitid	eXRCClFuDwvcoSZD;

1.8
date	2022.09.29.10.08.14;	author adam;	state Exp;
branches;
next	1.7;
commitid	St92TYfdIiVf9KVD;

1.7
date	2022.01.05.15.41.03;	author wiz;	state Exp;
branches;
next	1.6;
commitid	FQ77UruBIUsgzsnD;

1.6
date	2022.01.04.20.53.01;	author wiz;	state Exp;
branches;
next	1.5;
commitid	CYyhdK9qtoffkmnD;

1.5
date	2021.08.05.10.09.48;	author adam;	state Exp;
branches;
next	1.4;
commitid	uPQWTXQFyUcMEL3D;

1.4
date	2020.05.16.09.10.42;	author adam;	state Exp;
branches;
next	1.3;
commitid	6a0n2QnUG6hyFr8C;

1.3
date	2020.04.06.09.14.03;	author wiz;	state Exp;
branches;
next	1.2;
commitid	HsYA6aqYjRMoYi3C;

1.2
date	2019.10.02.10.04.59;	author adam;	state Exp;
branches
	1.2.2.1;
next	1.1;
commitid	cj2J3PxY2SMyghFB;

1.1
date	2019.10.01.13.22.55;	author triaxx;	state Exp;
branches;
next	;
commitid	WNfqfjlL0IEcoaFB;

1.2.2.1
date	2019.10.02.10.04.59;	author bsiegert;	state dead;
branches;
next	1.2.2.2;
commitid	9oRSR0UHmwC9emHB;

1.2.2.2
date	2019.10.18.14.31.38;	author bsiegert;	state Exp;
branches;
next	;
commitid	9oRSR0UHmwC9emHB;


desc
@@


1.15
log
@Fix PLIST after py-setuptools update; bump depends and revision
@
text
@# $NetBSD: Makefile,v 1.14 2024/11/11 07:28:06 wiz Exp $

DISTNAME=	distro-1.9.0
PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
PKGREVISION=	1
CATEGORIES=	devel python
MASTER_SITES=	${MASTER_SITE_PYPI:=d/distro/}

MAINTAINER=	root@@zta.lk
HOMEPAGE=	https://github.com/nir0s/distro
COMMENT=	OS platform information API
LICENSE=	apache-2.0

TOOL_DEPENDS+=	${PYPKGPREFIX}-setuptools>=78:../../devel/py-setuptools

USE_LANGUAGES=	# none

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

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


1.14
log
@py-*: remove unused tool dependency

py-setuptools includes the py-wheel functionality nowadays
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.13 2023/12/31 21:22:57 wiz Exp $
d5 1
d14 1
a14 2
TOOL_DEPENDS+=	${PYPKGPREFIX}-setuptools-[0-9]*:../../devel/py-setuptools
TEST_DEPENDS+=	${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
a17 2
PYTHON_VERSIONS_INCOMPATIBLE=	27

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

@


1.13
log
@py-distro: update to 1.9.0.

## 1.9.0 (2023.12.19)

ENHANCEMENTS:
* Refactor distro.info() method to return an InfoDict [#360]
* Ignore the file '/etc/board-release' [#353]
* Ignore the file '/etc/ec2_version' [#359]

RELEASE:
* Run Python 3.6 on Ubuntu 20.04 for CI and bump isort [#355]

TESTS:
* Test on modern versions of CPython and PyPy and macOS [#362]
* Add support for ALT Linux Server 10.1 distribution [#354]
* Add Debian Testing to the tests [#356]
* Update archlinux resource for tests [#352]
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.12 2023/10/28 19:56:59 wiz Exp $
a13 1
TOOL_DEPENDS+=	${PYPKGPREFIX}-wheel-[0-9]*:../../devel/py-wheel
@


1.12
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.11 2023/06/06 12:41:12 riastradh Exp $
d3 1
a3 1
DISTNAME=	distro-1.8.0
a4 1
PKGREVISION=	1
@


1.11
log
@Mass-change BUILD_DEPENDS to TOOL_DEPENDS outside mk/.

Almost all uses, if not all of them, are wrong, according to the
semantics of BUILD_DEPENDS (packages built for target available for
use _by_ tools at build-time) and TOOL_DEPEPNDS (packages built for
host available for use _as_ tools at build-time).

No change to BUILD_DEPENDS as used correctly inside buildlink3.

As proposed on tech-pkg:
https://mail-index.netbsd.org/tech-pkg/2023/06/03/msg027632.html
@
text
@d1 1
a1 1
# $NetBSD$
d5 1
d14 1
@


1.10
log
@py-distro: add missing build dependency on py-wheel
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.9 2022/10/31 13:57:36 adam Exp $
d13 1
a13 1
BUILD_DEPENDS+=	${PYPKGPREFIX}-wheel-[0-9]*:../../devel/py-wheel
@


1.9
log
@py-distro: updated to 1.8.0

1.8.0 (2022.10.10)

BACKWARD COMPATIBILITY:
* Replace `setup.py` with `build`

ENHANCEMENTS:
* Lowered `LinuxDistribution._distro_release_info` method complexity
* Added official support for Buildroot distribution
* Added official support for Guix distribution
* Added support for `/etc/debian_version`
* Fixed a typography in CONTRIBUTING.md
* Improved README.md "Usage" code block

RELEASE:
* Bumped black to v22.3.0 in pre-commit.ci configuration
* Enabled GitHub Dependabot to keep GitHub Actions up to date
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.8 2022/09/29 10:08:14 adam Exp $
d13 1
@


1.8
log
@py-distro: updated to 1.7.0

1.7.0 (2022.02.15)

BACKWARD COMPATIBILITY:
* Dropped support for EOL Pythons 2.7, 3.4 and 3.5
* Dropped support for LSB and `uname` back-ends when `--root-dir` is specified
* Moved `distro.py` to `src/distro/distro.py`

ENHANCEMENTS:
* Documented that `distro.version()` can return an empty string on rolling releases
* Documented support for Python 3.10
* Added official support for Rocky Linux distribution
* Added a shebang to `distro.py` to allow standalone execution
* Added support for AIX platforms
* Added compliance for PEP-561

BUG FIXES:
* Fixed `include_uname` parameter oversight
* Fixed crash when `uname -rs` output is empty
* Fixed Amazon Linux identifier in `distro.id()` documentation
* Fixed OpenSuse >= 15 support
* Fixed encoding issues when opening distro release files
* Fixed `linux_distribution` regression
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.7 2022/01/05 15:41:03 wiz Exp $
d3 1
a3 1
DISTNAME=	distro-1.7.0
a16 2
USE_PKG_RESOURCES=	yes

d26 1
a26 2
.include "../../lang/python/egg.mk"
.include "../../lang/python/versioned_dependencies.mk"
@


1.7
log
@python: egg.mk: add USE_PKG_RESOURCES flag

This flag should be set for packages that import pkg_resources
and thus need setuptools after the build step.

Set this flag for packages that need it and bump PKGREVISION.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.6 2022/01/04 20:53:01 wiz Exp $
d3 1
a3 1
DISTNAME=	distro-1.6.0
a4 1
PKGREVISION=	2
d13 3
a15 1
PYTHON_VERSIONED_DEPENDENCIES=	test:test
d19 1
a19 1
USE_LANGUAGES=	# none
@


1.6
log
@*: bump PKGREVISION for egg.mk users

They now have a tool dependency on py-setuptools instead of a DEPENDS
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.5 2021/08/05 10:09:48 adam Exp $
d5 1
a5 1
PKGREVISION=	1
d16 2
@


1.5
log
@py-distro: updated to 1.6.0

1.6.0 (2021.7.30)

BACKWARDS COMPATIBILITY:
* Deprecated the `distro.linux_distribution()` function. Use
  `distro.id()`, `distro.version()` and `distro.name()` instead
* Deprecated Python 2.7, 3.4 and 3.5 support. Further releases
  will only support Python 3.6+

ENHANCEMENTS:
* Added type hints to `distro` module
* Added `__version__` for checking `distro` version
* Added support for arbitrary rootfs via the `root_dir` parameter
* Added the `--root-dir` option to CLI
* Added fallback to `/usr/lib/os-release` when `/etc/os-release` isn't available

BUG FIXES:
* Fixed `subprocess.CalledProcessError` when running `lsb_release`
* Ignore `/etc/iredmail-release` file while parsing distribution
* Use a binary file for `/dev/null` to avoid `TextIOWrapper` overhead

RELEASE:
* Moved repository from `nir0s/distro` to
  [`python-distro/distro`](https://github.com/python-distro/distro) on GitHub.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 2020/05/16 09:10:42 adam Exp $
d5 1
@


1.4
log
@pytest from versioned depends
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 2020/04/06 09:14:03 wiz Exp $
d3 1
a3 1
DISTNAME=	distro-1.5.0
@


1.3
log
@py-distro: update to 1.5.0.

## 1.5.0 (2020.3.30)

BACKWARD COMPATIBILITY:
* Keep output as native string so we can compatible with python2 interface [[#248](https://github.com/nir0s/distro/pull/248)]

ENHANCEMENTS:

BUG FIXES:
* Fix detection of RHEL 6 ComputeNode [[#255](https://github.com/nir0s/distro/issues/255)]
* Fix Oracle 4/5 lsb_release id and names [[#250](https://github.com/nir0s/distro/pull/250)]
* Ignore /etc/plesk-release file while parsing distribution [[#246](https://github.com/nir0s/distro/pull/246)]

TESTS:
* Test on MidnightBSD [[#254](https://github.com/nir0s/distro/issues/254)]

RELEASE:
* Remove build testing on Python 3.3 and add pypy 3.5 and Python 3.7 and 3.8 [[#244](https://github.com/nir0s/distro/pull/244)]
* Fix Windows build due to Appveyor not supporting builds on Python 2.7 anymore [[#257](https://github.com/nir0s/distro/pull/257)]

Additionally, The Python2.6 branch was fixed to support distro version 1.4.0. It is now passing all tests. Thanks [abadger](https://github.com/abadger)!
@
text
@d1 1
a1 1
# $NetBSD$
d13 1
a13 1
TEST_DEPENDS+=	${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
d22 1
a22 1
	cd ${WRKSRC} && ${SETENV} ${TEST_ENV} py.test-${PYVERSSUFFIX}
d25 1
@


1.2
log
@py-distro: cleanup
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1 2019/10/01 13:22:55 triaxx Exp $
d3 1
a3 1
DISTNAME=	distro-1.4.0
d13 2
d21 3
@


1.2.2.1
log
@file Makefile was added on branch pkgsrc-2019Q3 on 2019-10-18 14:31:38 +0000
@
text
@d1 20
@


1.2.2.2
log
@Pullup ticket #6071 - requested by taca
devel/py-distro: dependent addition
security/py-certbot: bugfix

Revisions pulled up:
- devel/Makefile                                                1.2921
- devel/py-distro/ALTERNATIVES                                  1.1
- devel/py-distro/DESCR                                         1.1
- devel/py-distro/Makefile                                      1.1-1.2
- devel/py-distro/PLIST                                         1.1
- devel/py-distro/distinfo                                      1.1
- security/py-certbot/Makefile                                  1.17-1.20

---
   Module Name:	pkgsrc
   Committed By:	triaxx
   Date:		Tue Oct  1 13:22:55 UTC 2019

   Added Files:
   	pkgsrc/devel/py-distro: DESCR Makefile PLIST distinfo

   Log Message:
   py-distro: import to version 1.4.0

   Thanks to Aleksej for importing 1.1.0 in wip.

---
   Module Name:	pkgsrc
   Committed By:	triaxx
   Date:		Tue Oct  1 13:24:35 UTC 2019

   Modified Files:
   	pkgsrc/devel: Makefile

   Log Message:
   Import py-distro to version 1.4.0

---
   Module Name:	pkgsrc
   Committed By:	triaxx
   Date:		Tue Oct  1 13:29:58 UTC 2019

   Modified Files:
   	pkgsrc/security/py-certbot: Makefile

   Log Message:
   py-certbot: fix PR pkg/54588

   pkgsrc changes:
   ---------------
   * Add devel/py-distro as a runtime dependency. Certbot claims >=3D1.0.1=
    but
     non-linux distribution are supported only from 1.2.0.

---
   Module Name:	pkgsrc
   Committed By:	adam
   Date:		Wed Oct  2 10:04:59 UTC 2019

   Modified Files:
   	pkgsrc/devel/py-distro: Makefile
   Added Files:
   	pkgsrc/devel/py-distro: ALTERNATIVES

   Log Message:
   py-distro: cleanup

---
   Module Name:	pkgsrc
   Committed By:	wiz
   Date:		Tue Oct  1 13:53:45 UTC 2019

   Modified Files:
   	pkgsrc/security/py-certbot: Makefile

   Log Message:
   py-certbot: bump PKGREVISION for added dependency

---
   Module Name:	pkgsrc
   Committed By:	wiz
   Date:		Wed Oct  2 08:38:42 UTC 2019

   Modified Files:
   	pkgsrc/security/py-certbot: Makefile

   Log Message:
   py-certbot: wip dependencies are not allowed in main pkgsrc

---
   Module Name:	pkgsrc
   Committed By:	triaxx
   Date:		Wed Oct  2 10:40:56 UTC 2019

   Modified Files:
   	pkgsrc/security/py-certbot: Makefile

   Log Message:
   py-certbot: update to 0.38nb3

   pkgsrc changes
   --------------
   * s/wip/devel/ for py-distro dependency (wip was for test only but
     committed by inattention)
@
text
@a0 20
# $NetBSD: Makefile,v 1.1 2019/10/01 13:22:55 triaxx Exp $

DISTNAME=	distro-1.4.0
PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
CATEGORIES=	devel python
MASTER_SITES=	${MASTER_SITE_PYPI:=d/distro/}

MAINTAINER=	root@@zta.lk
HOMEPAGE=	https://github.com/nir0s/distro
COMMENT=	OS platform information API
LICENSE=	apache-2.0

USE_LANGUAGES=	# none

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

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


1.1
log
@py-distro: import to version 1.4.0

Thanks to Aleksej for importing 1.1.0 in wip.
@
text
@d1 1
a1 1
# $NetBSD$
d5 1
a5 1
CATEGORIES=	devel
d13 2
d16 2
a17 1
	cd ${DESTDIR}${PREFIX}/bin && ${MV} distro distro-${PYVERSSUFFIX}
@

