head 1.22; access; symbols pkgsrc-2023Q4:1.20.0.2 pkgsrc-2023Q4-base:1.20 pkgsrc-2023Q3:1.18.0.2 pkgsrc-2023Q3-base:1.18 pkgsrc-2023Q2:1.17.0.8 pkgsrc-2023Q2-base:1.17 pkgsrc-2023Q1:1.17.0.6 pkgsrc-2023Q1-base:1.17 pkgsrc-2022Q4:1.17.0.4 pkgsrc-2022Q4-base:1.17 pkgsrc-2022Q3:1.17.0.2 pkgsrc-2022Q3-base:1.17 pkgsrc-2022Q2:1.16.0.4 pkgsrc-2022Q2-base:1.16 pkgsrc-2022Q1:1.16.0.2 pkgsrc-2022Q1-base:1.16 pkgsrc-2021Q4:1.15.0.4 pkgsrc-2021Q4-base:1.15 pkgsrc-2021Q3:1.15.0.2 pkgsrc-2021Q3-base:1.15 pkgsrc-2021Q2:1.14.0.6 pkgsrc-2021Q2-base:1.14 pkgsrc-2021Q1:1.14.0.4 pkgsrc-2021Q1-base:1.14 pkgsrc-2020Q4:1.14.0.2 pkgsrc-2020Q4-base:1.14 pkgsrc-2020Q3:1.13.0.4 pkgsrc-2020Q3-base:1.13 pkgsrc-2020Q2:1.13.0.2 pkgsrc-2020Q2-base:1.13 pkgsrc-2020Q1:1.12.0.2 pkgsrc-2020Q1-base:1.12 pkgsrc-2019Q4:1.12.0.4 pkgsrc-2019Q4-base:1.12 pkgsrc-2019Q3:1.11.0.2 pkgsrc-2019Q3-base:1.11 pkgsrc-2019Q2:1.9.0.2 pkgsrc-2019Q2-base:1.9 pkgsrc-2019Q1:1.8.0.2 pkgsrc-2019Q1-base:1.8 pkgsrc-2018Q4:1.7.0.2 pkgsrc-2018Q4-base:1.7 pkgsrc-2018Q3:1.6.0.2 pkgsrc-2018Q3-base:1.6 pkgsrc-2018Q2:1.5.0.10 pkgsrc-2018Q2-base:1.5 pkgsrc-2018Q1:1.5.0.8 pkgsrc-2018Q1-base:1.5 pkgsrc-2017Q4:1.5.0.6 pkgsrc-2017Q4-base:1.5 pkgsrc-2017Q3:1.5.0.4 pkgsrc-2017Q3-base:1.5 pkgsrc-2017Q2:1.4.0.10 pkgsrc-2017Q2-base:1.4 pkgsrc-2017Q1:1.4.0.8 pkgsrc-2017Q1-base:1.4 pkgsrc-2016Q4:1.4.0.6 pkgsrc-2016Q4-base:1.4 pkgsrc-2016Q3:1.4.0.4 pkgsrc-2016Q3-base:1.4 pkgsrc-2016Q2:1.4.0.2 pkgsrc-2016Q2-base:1.4 pkgsrc-2016Q1:1.3.0.12 pkgsrc-2016Q1-base:1.3 pkgsrc-2015Q4:1.3.0.10 pkgsrc-2015Q4-base:1.3 pkgsrc-2015Q3:1.3.0.8 pkgsrc-2015Q3-base:1.3 pkgsrc-2015Q2:1.3.0.6 pkgsrc-2015Q2-base:1.3 pkgsrc-2015Q1:1.3.0.4 pkgsrc-2015Q1-base:1.3 pkgsrc-2014Q4:1.3.0.2 pkgsrc-2014Q4-base:1.3 pkgsrc-2014Q3:1.2.0.4 pkgsrc-2014Q3-base:1.2 pkgsrc-2014Q2:1.2.0.2 pkgsrc-2014Q2-base:1.2; locks; strict; comment @# @; 1.22 date 2024.03.24.07.26.34; author adam; state Exp; branches; next 1.21; commitid 1VPCmy2am1WGPn3F; 1.21 date 2024.03.21.05.58.46; author adam; state Exp; branches; next 1.20; commitid LYqqr8kFyCkprZ2F; 1.20 date 2023.10.28.19.57.21; author wiz; state Exp; branches; next 1.19; commitid jP8MYROLWZ3yJqKE; 1.19 date 2023.10.02.08.54.47; author adam; state Exp; branches; next 1.18; commitid XA0SRT0J9gkHU1HE; 1.18 date 2023.08.11.13.05.19; author adam; state Exp; branches; next 1.17; commitid 94UV1uWge1y9YmAE; 1.17 date 2022.08.10.13.48.25; author adam; state Exp; branches; next 1.16; commitid qsiJw5EyQtbuYkPD; 1.16 date 2022.01.04.20.55.08; author wiz; state Exp; branches; next 1.15; commitid CYyhdK9qtoffkmnD; 1.15 date 2021.08.25.09.14.58; author adam; state Exp; branches; next 1.14; commitid pKqw1Bk3AzseIk6D; 1.14 date 2020.10.03.18.28.21; author adam; state Exp; branches; next 1.13; commitid 1uicMegY7RnyfuqC; 1.13 date 2020.05.17.21.38.47; author adam; state Exp; branches; next 1.12; commitid ATHktg7q5XTbMD8C; 1.12 date 2019.12.05.09.42.43; author adam; state Exp; branches; next 1.11; commitid 9H223DVnNQbi5vNB; 1.11 date 2019.08.27.10.10.06; author adam; state Exp; branches; next 1.10; commitid 9ZZ1irzWFXFXrEAB; 1.10 date 2019.07.03.19.35.45; author adam; state Exp; branches; next 1.9; commitid rWokjgscWXUClDtB; 1.9 date 2019.04.25.07.25.56; author adam; state Exp; branches; next 1.8; commitid Rcu2NzKMDVWMwHkB; 1.8 date 2019.01.20.13.16.01; author adam; state Exp; branches; next 1.7; commitid fvxmE7Ppu6Taww8B; 1.7 date 2018.11.13.16.05.52; author adam; state Exp; branches; next 1.6; commitid hrRNmkGVwltXDNZA; 1.6 date 2018.08.19.07.26.32; author adam; state Exp; branches; next 1.5; commitid st5wOZNyn8dNwHOA; 1.5 date 2017.09.16.19.27.20; author wiz; state Exp; branches; next 1.4; commitid A7fIQ99zTdcMls7A; 1.4 date 2016.06.08.17.43.42; author wiz; state Exp; branches; next 1.3; commitid z4yEulWexjFaJG9z; 1.3 date 2014.10.05.22.22.49; author rodent; state Exp; branches; next 1.2; commitid pJ6niV95SRDAW3Tx; 1.2 date 2014.06.26.01.19.04; author rodent; state Exp; branches; next 1.1; commitid bY6HGCyyOQP2cYFx; 1.1 date 2014.06.14.14.35.09; author rodent; state Exp; branches; next ; commitid 6nfnxIb1pLhvZuEx; desc @@ 1.22 log @py-validators: updated to 0.24.0 0.24.0 (2024-03-24) _**Breaking**_ > No breaking changes were introduced in this version. _**Features**_ - feat: conditionally raises `ValidationError`; bump version _**Maintenance**_ - patch: `domain` & `url` modules - fix: domain name not confirming to rfc_2782 - maint: update dev dependencies; adds favicon to docs @ text @# $NetBSD: Makefile,v 1.21 2024/03/21 05:58:46 adam Exp $ DISTNAME= validators-0.24.0 PKGNAME= ${PYPKGPREFIX}-${DISTNAME} CATEGORIES= textproc python MASTER_SITES= ${MASTER_SITE_PYPI:=v/validators/} MAINTAINER= pkgsrc-users@@NetBSD.org HOMEPAGE= https://github.com/kvesteri/validators COMMENT= Python data validation for humans LICENSE= mit TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools-[0-9]*:../../devel/py-setuptools TOOL_DEPENDS+= ${PYPKGPREFIX}-wheel-[0-9]*:../../devel/py-wheel USE_LANGUAGES= # none PYTHON_VERSIONS_INCOMPATIBLE= 27 .include "../../lang/python/wheel.mk" .include "../../mk/bsd.pkg.mk" @ 1.21 log @py-validators: updated to 0.23.2 0.23.2 (2024-03-20) Maintenance maint: rectifies changelog fix: packaging as well as rST & md document generation 0.23.1 (2024-03-19) Maintenance maint: fix between & length validators fix: manual nav reference for mkdocs; bumps version 0.23.0 (2024-03-19) Features feat: add french i18n validation Maintenance fix: Valid URLs failing validation - query and fragment parts fix: bug in between module chore: update dependencies, improve packaging Fix fragment check build(deps): bump urllib3 from 2.0.6 to 2.0.7 in /package fix: allow pct-encoded entities in fragments chore: update dev dependencies build(deps): bump gitpython from 3.1.37 to 3.1.41 in /package build(deps): bump jinja2 from 3.1.2 to 3.1.3 in /package chore: monthly updates for Jan'24 maint: adds versiond docs; update copyright year chore: update dev dependencies build(deps): bump gitpython from 3.1.37 to 3.1.41 in /package build(deps): bump jinja2 from 3.1.2 to 3.1.3 in /package build(deps): bump urllib3 from 2.0.6 to 2.0.7 in /package @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.20 2023/10/28 19:57:21 wiz Exp $ d3 1 a3 1 DISTNAME= validators-0.23.2 @ 1.20 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.19 2023/10/02 08:54:47 adam Exp $ d3 1 a3 1 DISTNAME= validators-0.22.0 a4 1 PKGREVISION= 1 a14 1 TEST_DEPENDS+= ${PYPKGPREFIX}-test>=7.4.0:../../devel/py-test a19 3 do-test: cd ${WRKSRC}/tests && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX} @ 1.19 log @py-validators: updated to 0.22.0 0.22.0 What's Changed Breaking: API changes in validators.ipv4 and validators.ipv6 functions strict parameter now correctly validates IP addresses strictly in CIDR notation host_bit parameter distinguishes between network and host IP address fix: url validator considers urls with /#/ as valid Add note about ValidationFailure to ValidationError in changes.md fix: simple hostname validation regex fix: strict CIDR IP validation; bump version @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.18 2023/08/11 13:05:19 adam Exp $ d5 1 d14 1 @ 1.18 log @py-validators: updated to 0.21.2 0.21.2 (2023-08-07) What's Changed feat: refactoring; updates; fixes; bump version build(deps): bump pymdown-extensions from 9.11 to 10.0 build(deps): bump requests from 2.28.2 to 2.31.0 add validator ETH addresses (ERC20) Added Country Code Validation build(deps-dev): bump certifi from 2022.12.7 to 2023.7.22 0.21.1 (2023-04-10) fix: source .venv/bin/activate before build fix: id-token write permission at job level feat: docs can be built with both sphinx & mkdocs fix: improves build process fix: removes 64-char limit for url path & query 0.21.0 (2023-03-25) feat: add build for pypi workflow feat: @@validator now catches Exception maint: improves i18n package maint: misc changes to dev and ci maint: misc fixes and improvements maint: improves state of package development fix: generate dynamic reference docs maint: moving docs from .rst to .md maint: improves url module maint: improve domain, email & hostname maint: simplified hostname module maint: update email module feat: adds hostname validator maint: improves ip_address module fix: misc fixes, use bandit Create SECURITY.md maint: improves mac_address, slug and uuid maint: improve hashes and iban modules feat: auto docs using mkdocstrings maint: improves email module maint: minor improvements maint: improves domain module maint: reformats card module, fix typo feat: formats google pydoc style for mkdocstring maint: refresh btc_address module maint: improve type annotations maint: improves between and length modules maint: follows google's python style guide for docstrings feat: type hints in utils.py, gh-actions feat: add pyproject.toml, README.md, upd gitignore remove Travis CI settings @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.17 2022/08/10 13:48:25 adam Exp $ d3 1 a3 1 DISTNAME= validators-0.21.2 @ 1.17 log @py-validators: updated to 0.20.0 0.20.0 (2022-06-05) - Added ipv4 digit lenghts validation - Fixes error with international URLs that have more than 2 hyphens 0.19.0 (2022-05-04) - Dropped py34 support - Improve IPv6 validation @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.16 2022/01/04 20:55:08 wiz Exp $ d3 1 a3 1 DISTNAME= validators-0.20.0 d13 2 a14 4 DEPENDS+= ${PYPKGPREFIX}-decorator>=3.4.0:../../devel/py-decorator TEST_DEPENDS+= ${PYPKGPREFIX}-flake8>=2.4.0:../../devel/py-flake8 TEST_DEPENDS+= ${PYPKGPREFIX}-isort>=4.2.2:../../devel/py-isort TEST_DEPENDS+= ${PYPKGPREFIX}-test>=2.2.3:../../devel/py-test d23 1 a23 1 .include "../../lang/python/egg.mk" @ 1.16 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.15 2021/08/25 09:14:58 adam Exp $ d3 1 a3 1 DISTNAME= validators-0.18.2 a4 1 PKGREVISION= 1 a13 1 DEPENDS+= ${PYPKGPREFIX}-six>=1.4.0:../../lang/py-six d16 1 a16 1 TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test @ 1.15 log @py-validators: updated to 0.18.2 0.18.2: - Implement actual validation for old style BTC addresses including checksumming - Use a regex to guesstimate validity of new segwit BTC addresses @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.14 2020/10/03 18:28:21 adam Exp $ d5 1 @ 1.14 log @py-validators: updated to 0.18.1 0.18.1: - Made uuid validator accept UUID objects 0.18.0: - Added bitcoin address validator 0.17.1: - Fixed python_requires using twine 0.17.0: - Added python_requires='>=3.4' to setup.py - Fixed URL validator ip_last_octet regex 0.16.0: - Added support for emojis and more IDNA URLs 0.15.0: - Added bank card validators 0.14.3: - Handle None values gracefully in domain validator - Local part of the email address should be less or equal than 64 bytes - Removed py27 support - Removed pypy2 support 0.14.2: - Made domain validation case-insensitive @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.13 2020/05/17 21:38:47 adam Exp $ d3 1 a3 1 DISTNAME= validators-0.18.1 d24 1 a24 1 cd ${WRKSRC}/tests && pytest-${PYVERSSUFFIX} @ 1.13 log @pytest from versioned depends @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.12 2019/12/05 09:42:43 adam Exp $ d3 1 a3 1 DISTNAME= validators-0.14.1 d17 1 d19 1 a19 1 PYTHON_VERSIONED_DEPENDENCIES= test:test d21 1 a21 1 USE_LANGUAGES= # none a26 1 .include "../../lang/python/versioned_dependencies.mk" @ 1.12 log @py-validators: updated to 0.14.1 0.14.1: - Updated domain validator regex to not allow numeric only TLDs - Allow for idna encoded domains @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.11 2019/08/27 10:10:06 adam Exp $ d17 2 a18 1 TEST_DEPENDS+= ${PYPKGPREFIX}-test>=2.2.3:../../devel/py-test d26 1 @ 1.11 log @py-validators: updated to 0.14.0 0.14.0: - Added new validators ipv4_cidr, ipv6_cidr @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.10 2019/07/03 19:35:45 adam Exp $ d3 1 a3 1 DISTNAME= validators-0.14.0 @ 1.10 log @py-validators: updated to 0.13.0 0.13.0: - Added new validator: es_doi, es_nif, es_cif, es_nie @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.9 2019/04/25 07:25:56 adam Exp $ d3 1 a3 1 DISTNAME= validators-0.13.0 @ 1.9 log @py-validators: updated to 0.12.5 0.12.5: - Fixed py37 support @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.8 2019/01/20 13:16:01 adam Exp $ d3 1 a3 1 DISTNAME= validators-0.12.5 @ 1.8 log @py-validators: updated to 0.12.4 0.12.4: - Use inspect.getfullargspec() in py3 @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.7 2018/11/13 16:05:52 adam Exp $ d3 1 a3 1 DISTNAME= validators-0.12.4 @ 1.7 log @py-validators: updated to 0.12.3 0.12.3: Added allow_temporal_ssn parameter to fi_ssn validator Remove py33 support @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.6 2018/08/19 07:26:32 adam Exp $ d3 1 a3 1 DISTNAME= validators-0.12.3 @ 1.6 log @py-validators: updated to 0.12.2 0.12.2: Fixed IPv4 formatted IP address returning True on ipv6 Fixed IPv6 address parsing Fixed domain validator for international domains and certain edge cases 0.12.1: Fixed IDNA encoded TLDs in domain validator Fixed URL validator for URLs with invalid characters in userinfo part 0.12.0: Added hash validators for md5, sha1, sha224, sha256 and sha512 Made ipv6 validator support IPv4-mapped IPv6 addresses 0.11.3: Fixed URL validator for URLs containing localhost 0.11.2: Fixed URL validator for urls with query parameters but without path 0.11.1: Fixed pyp2rpm build problem 0.11.0: Fixed public url validation Made URL validator case insensitive Drop Python 2.6 support 0.10.3: Added public parameter to url validator 0.10.2: Fixed various URL validation issues 0.10.1: Fixed domain name validation for numeric domain names Fixed IBAN validation for Norwegian and Belgian IBANs 0.10.0: Added support for internationalized domain names in domain validator 0.9.0: Added new validator: domain Added flake8 and isort checks in travis config 0.8.0: Added new validator: iban @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.5 2017/09/16 19:27:20 wiz Exp $ d3 1 a3 1 DISTNAME= validators-0.12.2 @ 1.5 log @Reset maintainer @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.4 2016/06/08 17:43:42 wiz Exp $ d3 1 a3 1 DISTNAME= validators-0.7 d5 1 a5 1 CATEGORIES= python textproc a12 1 DEPENDS+= ${PYPKGPREFIX}-six-[0-9]*:../../lang/py-six d14 4 d21 2 a22 1 .include "options.mk" @ 1.4 log @Switch to MASTER_SITES_PYPI. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.3 2014/10/05 22:22:49 rodent Exp $ d8 1 a8 1 MAINTAINER= rodent@@NetBSD.org @ 1.3 log @0.7.0 (2014-09-07) ^^^^^^^^^^^^^^^^^^ - Fixed errors in code examples. - Fixed ``TypeError`` when using ``between`` validator with ``datetime`` objects like in the code example. - Changed validators to always return ``True`` instead of a truthy object when the validation succeeds. - Fixed ``truthy`` validator to work like it's name suggests. Previously it worked like ``falsy``. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.2 2014/06/26 01:19:04 rodent Exp $ d6 1 a6 1 MASTER_SITES= https://pypi.python.org/packages/source/v/validators/ @ 1.2 log @This version fixes an issue with other packages from the same upstream provider regarding files being installed to ${PYSITELIB}/tests/. The others have yet to be imported, but let's fix this now. From CHANGES.rst: 0.6.0 (2014-06-25) ^^^^^^^^^^^^^^^^^^ - Added new validator: slug @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.1 2014/06/14 14:35:09 rodent Exp $ d3 1 a3 1 DISTNAME= validators-0.6.0 @ 1.1 log @Import py27-validators-0.5.0 as textproc/py-validators. Python has all kinds of data validation tools, but every one of them seems to require defining a schema / form. This is a simple validation library where validating a simple value does not require defining a form or a schema. @ text @d1 1 a1 1 # $NetBSD$ d3 1 a3 1 DISTNAME= validators-0.5.0 @