commit python-validators for openSUSE:Factory
Hello community, here is the log from the commit of package python-validators for openSUSE:Factory checked in at 2019-05-24 11:31:01 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-validators (Old) and /work/SRC/openSUSE:Factory/.python-validators.new.5148 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python-validators" Fri May 24 11:31:01 2019 rev:5 rq:704822 version:0.12.6 Changes: -------- --- /work/SRC/openSUSE:Factory/python-validators/python-validators.changes 2019-04-17 10:10:38.626931699 +0200 +++ /work/SRC/openSUSE:Factory/.python-validators.new.5148/python-validators.changes 2019-05-24 11:31:02.497411774 +0200 @@ -1,0 +2,6 @@ +Wed May 22 15:16:16 UTC 2019 - pgajdos@suse.com + +- version update to 0.12.6 + * Fixed domain validator for single character domains + +------------------------------------------------------------------- Old: ---- validators-0.12.5.tar.gz New: ---- validators-0.12.6.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-validators.spec ++++++ --- /var/tmp/diff_new_pack.Fq4Zxi/_old 2019-05-24 11:31:03.369411549 +0200 +++ /var/tmp/diff_new_pack.Fq4Zxi/_new 2019-05-24 11:31:03.373411548 +0200 @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-validators -Version: 0.12.5 +Version: 0.12.6 Release: 0 Summary: Python Data Validation License: MIT @@ -54,7 +54,7 @@ %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_expand py.test-%{$python_bin_suffix} +%pytest %files %{python_files} %doc CHANGES.rst README.rst ++++++ validators-0.12.5.tar.gz -> validators-0.12.6.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/validators-0.12.5/CHANGES.rst new/validators-0.12.6/CHANGES.rst --- old/validators-0.12.5/CHANGES.rst 2019-04-15 13:22:27.000000000 +0200 +++ new/validators-0.12.6/CHANGES.rst 2019-05-08 08:47:31.000000000 +0200 @@ -2,6 +2,12 @@ --------- +0.12.6 (2019-05-08) +^^^^^^^^^^^^^^^^^^^ + +- Fixed domain validator for single character domains (#118, pull request courtesy kingbuzzman) + + 0.12.5 (2019-04-15) ^^^^^^^^^^^^^^^^^^^ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/validators-0.12.5/PKG-INFO new/validators-0.12.6/PKG-INFO --- old/validators-0.12.5/PKG-INFO 2019-04-15 13:28:25.000000000 +0200 +++ new/validators-0.12.6/PKG-INFO 2019-05-08 08:49:11.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: validators -Version: 0.12.5 +Version: 0.12.6 Summary: Python Data Validation for Humans™. Home-page: https://github.com/kvesteri/validators Author: Konsta Vesterinen diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/validators-0.12.5/tests/test_domain.py new/validators-0.12.6/tests/test_domain.py --- old/validators-0.12.5/tests/test_domain.py 2018-06-03 12:00:00.000000000 +0200 +++ new/validators-0.12.6/tests/test_domain.py 2019-05-08 08:46:23.000000000 +0200 @@ -10,6 +10,9 @@ 'underscore_subdomain.example.com', 'something.versicherung', '11.com', + '3.cn', + 'a.cn', + 'sub1.sub2.sample.co.uk', 'somerandomexample.xn--fiqs8s' ]) def test_returns_true_on_valid_domain(value): @@ -22,6 +25,9 @@ 'example.-com', 'example.', '-example.com', + 'example-.com', + '_example.com', + 'example_.com', 'example', 'a......b.com' ]) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/validators-0.12.5/validators/__init__.py new/validators-0.12.6/validators/__init__.py --- old/validators-0.12.5/validators/__init__.py 2019-04-15 13:22:37.000000000 +0200 +++ new/validators-0.12.6/validators/__init__.py 2019-05-08 08:47:35.000000000 +0200 @@ -14,4 +14,4 @@ from .utils import ValidationFailure, validator # noqa from .uuid import uuid # noqa -__version__ = '0.12.5' +__version__ = '0.12.6' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/validators-0.12.5/validators/domain.py new/validators-0.12.6/validators/domain.py --- old/validators-0.12.5/validators/domain.py 2018-06-03 12:00:00.000000000 +0200 +++ new/validators-0.12.6/validators/domain.py 2019-05-08 08:46:23.000000000 +0200 @@ -3,10 +3,10 @@ from .utils import validator pattern = re.compile( - r'^(:?(([a-zA-Z]{1})|([a-zA-Z]{1}[a-zA-Z]{1})|' # domain pt.1 - r'([a-zA-Z]{1}[0-9]{1})|([0-9]{1}[a-zA-Z]{1})|' # domain pt.2 - r'([a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]))\.)+' # domain pt.3 - r'([a-zA-Z]{2,13}|(xn--[a-zA-Z0-9]{2,30}))$' # TLD + r'^(?:[a-z0-9]' # First character of the domain + r'(?:[a-z0-9-_]{0,61}[a-z0-9])?\.)' # Sub domain + hostname + r'+[a-z0-9][a-z0-9-_]{0,61}' # First 61 characters of the gTLD + r'[a-z0-9]$' # Last character of the gTLD ) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/validators-0.12.5/validators.egg-info/PKG-INFO new/validators-0.12.6/validators.egg-info/PKG-INFO --- old/validators-0.12.5/validators.egg-info/PKG-INFO 2019-04-15 13:28:24.000000000 +0200 +++ new/validators-0.12.6/validators.egg-info/PKG-INFO 2019-05-08 08:49:11.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: validators -Version: 0.12.5 +Version: 0.12.6 Summary: Python Data Validation for Humans™. Home-page: https://github.com/kvesteri/validators Author: Konsta Vesterinen
participants (1)
-
root