Matej Cepl 2022-04-20 07:25:45 +00:00 committed by Git OBS Bridge
commit f28f308a56
5 changed files with 193 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d72cede858e5bdde6f8cce85a75d671e1748278729c92b802e8e6e1cd852b710
size 19863

View File

@ -0,0 +1,79 @@
-------------------------------------------------------------------
Tue Apr 19 17:42:44 UTC 2022 - Matej Cepl <mcepl@suse.com>
- Fix the name of the package (it should be email-validator, not
email_validator).
-------------------------------------------------------------------
Mon Aug 16 09:14:16 UTC 2021 - Fusion Future <qydwhotmail@gmail.com>
- Update to 1.1.3:
* Add possibility to cache dns lookups (#58)
* Add py39 and setup_py to setup_cfg (#57)
- Changes from 1.1.2:
* Refactor: Main refactored, tests added for main (#52)
* Simplify email equality check into return statement (#51)
* Dedupe length reason logic and declare magic numbers as
constants (#50)
* Fix: ValidatedEmail is not JSON serializable (#49)
* Use dnspython's resolve method when available (#46)
* Package name should have a dash not an underscore
* Mention Punycode normalization, re-do fields as a table
- Drop fix-tests-strings.patch which is not needed.
- Move skipped tests to spec file, drop skip-tests-using-network.patch.
-------------------------------------------------------------------
Thu Sep 17 11:02:14 UTC 2020 - Dirk Mueller <dmueller@suse.com>
- update to 1.1.1:
* Fix exception on DNS timeout
* Mention Punycode in the README
* Flake8 fixes
-------------------------------------------------------------------
Tue May 26 06:34:06 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
- %python3_only -> %python_alternative
-------------------------------------------------------------------
Mon May 11 07:38:24 UTC 2020 - Antonio Larrosa <alarrosa@suse.com>
- Do not build python2 version
- Add patch to fix error messages being compared in tests to match
error messages in Leap/SLE:
* fix-tests-strings.patch
-------------------------------------------------------------------
Thu May 7 12:03:47 UTC 2020 - Antonio Larrosa <alarrosa@suse.com>
- version update to 1.1.0
* no upstream changelog
- version update to 1.0.5
* no upstream changelog
- Use pytest
- Add patch to skip tests that try to check MX records of domains:
* skip-tests-using-network.patch
-------------------------------------------------------------------
Tue May 7 10:28:10 UTC 2019 - pgajdos@suse.com
- version update to 1.0.4
* no upstream changelog
-------------------------------------------------------------------
Thu Mar 14 15:48:48 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Update to 1.0.3:
* metadata fixes
-------------------------------------------------------------------
Tue Dec 4 12:47:37 UTC 2018 - Matej Cepl <mcepl@suse.com>
- Remove superfluous devel dependency for noarch package
-------------------------------------------------------------------
Wed Sep 6 16:48:08 UTC 2017 - toddrme2178@gmail.com
- Initial version

View File

@ -0,0 +1,87 @@
#
# spec file for package python-email-validator
#
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-email-validator
Version: 1.1.3
Release: 0
Summary: A robust email syntax and deliverability validation library for Python
License: CC0-1.0
Group: Development/Languages/Python
URL: https://github.com/JoshData/python-email-validator
Source: https://github.com/JoshData/python-email-validator/archive/refs/tags/v%{version}.tar.gz#/email_validator-%{version}.tar.gz
BuildRequires: %{python_module dnspython >= 1.15.0}
BuildRequires: %{python_module idna >= 2.0.0}
BuildRequires: %{python_module pytest >= 5.0}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-dnspython >= 1.15.0
Requires: python-idna >= 2.0.0
Requires: python-setuptools
Requires(post): update-alternatives
Requires(postun):update-alternatives
Provides: python-email_validator = %{version}-%{release}
Obsoletes: python-email_validator < %{version}-%{release}
BuildArch: noarch
%python_subpackages
%description
A robust email address syntax and deliverability validation library
for Python 2.7/3.4 by Joshua Tauberer.
This library validates that address are of the form ``x@y.com``. This is
the sort of validation you would want for a login form on a website.
Key features:
* Good for validating email addresses used for logins/identity.
* Friendly error messages when validation fails (appropriate to show to end users).
* (optionally) Checks deliverability: Does the domain name resolve?
* Supports internationalized domain names and (optionally) internationalized local parts.
* Normalizes email addresses (super important for internationalized addresses! see below).
%prep
%autosetup -p1 -n python-email-validator-%{version}
%build
%python_build
%install
%python_install
%python_clone -a %{buildroot}%{_bindir}/email_validator
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest tests -k 'not (test_deliverability_no_records or test_deliverability_found or test_deliverability_fails or test_deliverability_dns_timeout or test_main_single_good_input or test_main_multi_input or test_main_input_shim or test_validate_email__with_caching_resolver or test_validate_email__with_configured_resolver)'
%post
%python_install_alternative email_validator
%postun
%python_uninstall_alternative email_validator
%files %{python_files}
%license LICENSE
%doc README.md
%python_alternative %{_bindir}/email_validator
%{python_sitelib}/email_validator
%{python_sitelib}/email_validator-%{version}*-info
%changelog