forked from pool/python-python-whois
- update to 0.9.3:
* dateutil is required dependency * remove futures reference * remove support for python 2 * adding default TZ as UTC if none specified * fix parsing whois response for jp domains - drop remove-future-requirement.patch (upstream) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-whois?expand=0&rev=16
This commit is contained in:
@@ -1,3 +1,14 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Apr 21 08:12:51 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- update to 0.9.3:
|
||||
* dateutil is required dependency
|
||||
* remove futures reference
|
||||
* remove support for python 2
|
||||
* adding default TZ as UTC if none specified
|
||||
* fix parsing whois response for jp domains
|
||||
- drop remove-future-requirement.patch (upstream)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Sep 12 05:33:31 UTC 2023 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-python-whois
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -17,14 +17,14 @@
|
||||
|
||||
|
||||
Name: python-python-whois
|
||||
Version: 0.8.0
|
||||
Version: 0.9.3
|
||||
Release: 0
|
||||
Summary: Whois querying and parsing of domain registration information
|
||||
License: MIT
|
||||
URL: https://bitbucket.org/richardpenman/pywhois
|
||||
URL: https://github.com/richardpenman/whois
|
||||
Source: https://files.pythonhosted.org/packages/source/p/python-whois/python-whois-%{version}.tar.gz
|
||||
Patch0: remove-future-requirement.patch
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module python-dateutil}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: python-rpm-macros
|
||||
@@ -33,7 +33,7 @@ BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module simplejson}
|
||||
# /SECTION
|
||||
BuildRequires: fdupes
|
||||
Suggests: python-python-dateutil
|
||||
Requires: python-python-dateutil
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
@@ -57,7 +57,8 @@ rm test/test_query.py
|
||||
%check
|
||||
# test_ipv4 test_ipv6 - online check
|
||||
# test_il_parse - online check
|
||||
%pytest -k 'not (test_ipv4 or test_ipv6 or test_il_parse)'
|
||||
# test_choose_server - online check
|
||||
%pytest -k 'not (test_ipv4 or test_ipv6 or test_il_parse or test_choose_server)'
|
||||
|
||||
%files %{python_files}
|
||||
%doc README.rst
|
||||
|
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:dd336d3517eace2a7689406db7bb96ada3c5e74327423151aeee3e64225f6220
|
||||
size 109647
|
3
python-whois-0.9.3.tar.gz
Normal file
3
python-whois-0.9.3.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:8dda2c70c0f89f0f8fc48a42370789332bfff679b5fa462048884151d26ca3ce
|
||||
size 110577
|
@@ -1,175 +0,0 @@
|
||||
Index: python-whois-0.8.0/test/test_main.py
|
||||
===================================================================
|
||||
--- python-whois-0.8.0.orig/test/test_main.py
|
||||
+++ python-whois-0.8.0/test/test_main.py
|
||||
@@ -1,12 +1,5 @@
|
||||
# coding=utf-8
|
||||
|
||||
-from __future__ import unicode_literals
|
||||
-from __future__ import print_function
|
||||
-from __future__ import division
|
||||
-from __future__ import absolute_import
|
||||
-from future import standard_library
|
||||
-standard_library.install_aliases()
|
||||
-from builtins import *
|
||||
import unittest
|
||||
from whois import extract_domain
|
||||
|
||||
Index: python-whois-0.8.0/test/test_nicclient.py
|
||||
===================================================================
|
||||
--- python-whois-0.8.0.orig/test/test_nicclient.py
|
||||
+++ python-whois-0.8.0/test/test_nicclient.py
|
||||
@@ -1,12 +1,5 @@
|
||||
# coding=utf-8
|
||||
|
||||
-from __future__ import unicode_literals
|
||||
-from __future__ import print_function
|
||||
-from __future__ import division
|
||||
-from __future__ import absolute_import
|
||||
-from future import standard_library
|
||||
-standard_library.install_aliases()
|
||||
-from builtins import *
|
||||
import unittest
|
||||
from whois.whois import NICClient
|
||||
|
||||
Index: python-whois-0.8.0/test/test_parser.py
|
||||
===================================================================
|
||||
--- python-whois-0.8.0.orig/test/test_parser.py
|
||||
+++ python-whois-0.8.0/test/test_parser.py
|
||||
@@ -1,11 +1,4 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
-from __future__ import print_function
|
||||
-from __future__ import unicode_literals
|
||||
-from __future__ import division
|
||||
-from __future__ import absolute_import
|
||||
-from future import standard_library
|
||||
-standard_library.install_aliases()
|
||||
-from builtins import *
|
||||
import unittest
|
||||
|
||||
import os
|
||||
Index: python-whois-0.8.0/whois/__init__.py
|
||||
===================================================================
|
||||
--- python-whois-0.8.0.orig/whois/__init__.py
|
||||
+++ python-whois-0.8.0/whois/__init__.py
|
||||
@@ -1,12 +1,5 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
-from __future__ import print_function
|
||||
-from __future__ import absolute_import
|
||||
-from __future__ import unicode_literals
|
||||
-from __future__ import division
|
||||
-from future import standard_library
|
||||
-standard_library.install_aliases()
|
||||
-from builtins import *
|
||||
import re
|
||||
import sys
|
||||
import os
|
||||
Index: python-whois-0.8.0/whois/parser.py
|
||||
===================================================================
|
||||
--- python-whois-0.8.0.orig/whois/parser.py
|
||||
+++ python-whois-0.8.0/whois/parser.py
|
||||
@@ -6,20 +6,9 @@
|
||||
# This module is part of python-whois and is released under
|
||||
# the MIT license: http://www.opensource.org/licenses/mit-license.php
|
||||
|
||||
-from __future__ import absolute_import
|
||||
-from __future__ import unicode_literals
|
||||
-from __future__ import print_function
|
||||
-from __future__ import division
|
||||
-from future import standard_library
|
||||
-
|
||||
import re
|
||||
from datetime import datetime
|
||||
import json
|
||||
-from past.builtins import basestring
|
||||
-from builtins import str
|
||||
-from builtins import *
|
||||
-
|
||||
-standard_library.install_aliases()
|
||||
|
||||
try:
|
||||
import dateutil.parser as dp
|
||||
@@ -169,7 +158,7 @@ class WhoisEntry(dict):
|
||||
|
||||
def _preprocess(self, attr, value):
|
||||
value = value.strip()
|
||||
- if value and isinstance(value, basestring) and not value.isdigit() and '_date' in attr:
|
||||
+ if value and isinstance(value, str) and not value.isdigit() and '_date' in attr:
|
||||
# try casting to date format
|
||||
value = cast_date(
|
||||
value,
|
||||
@@ -1050,7 +1039,7 @@ class WhoisBr(WhoisEntry):
|
||||
|
||||
def _preprocess(self, attr, value):
|
||||
value = value.strip()
|
||||
- if value and isinstance(value, basestring) and '_date' in attr:
|
||||
+ if value and isinstance(value, str) and '_date' in attr:
|
||||
# try casting to date format
|
||||
value = re.findall(r"[\w\s:.-\\/]+", value)[0].strip()
|
||||
value = cast_date(
|
||||
Index: python-whois-0.8.0/whois/time_zones.py
|
||||
===================================================================
|
||||
--- python-whois-0.8.0.orig/whois/time_zones.py
|
||||
+++ python-whois-0.8.0/whois/time_zones.py
|
||||
@@ -1,10 +1,3 @@
|
||||
-from __future__ import unicode_literals
|
||||
-from __future__ import print_function
|
||||
-from __future__ import division
|
||||
-from __future__ import absolute_import
|
||||
-from future import standard_library
|
||||
-standard_library.install_aliases()
|
||||
-from builtins import *
|
||||
_tz_string = '''-12 Y
|
||||
-11 X NUT SST
|
||||
-10 W CKT HAST HST TAHT TKT
|
||||
Index: python-whois-0.8.0/whois/whois.py
|
||||
===================================================================
|
||||
--- python-whois-0.8.0.orig/whois/whois.py
|
||||
+++ python-whois-0.8.0/whois/whois.py
|
||||
@@ -27,21 +27,12 @@ OUT OF OR IN CONNECTION WITH THE SOFTWAR
|
||||
THE SOFTWARE.
|
||||
"""
|
||||
|
||||
-from __future__ import print_function
|
||||
-from __future__ import unicode_literals
|
||||
-from __future__ import division
|
||||
-from __future__ import absolute_import
|
||||
-from future import standard_library
|
||||
-
|
||||
import os
|
||||
import optparse
|
||||
import socket
|
||||
import sys
|
||||
import re
|
||||
-from builtins import object
|
||||
-from builtins import *
|
||||
import logging
|
||||
-standard_library.install_aliases()
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
Index: python-whois-0.8.0/setup.py
|
||||
===================================================================
|
||||
--- python-whois-0.8.0.orig/setup.py
|
||||
+++ python-whois-0.8.0/setup.py
|
||||
@@ -10,9 +10,7 @@ setuptools.setup(
|
||||
version='0.8.0',
|
||||
description="Whois querying and parsing of domain registration information.",
|
||||
long_description=read('README.rst'),
|
||||
- install_requires=[
|
||||
- 'future',
|
||||
- ],
|
||||
+ install_requires=[],
|
||||
classifiers=[
|
||||
'Environment :: Web Environment',
|
||||
'Intended Audience :: Developers',
|
||||
@@ -33,8 +31,6 @@ setuptools.setup(
|
||||
extras_require={
|
||||
'better date conversion': ["python-dateutil"]
|
||||
},
|
||||
- test_suite='nose.collector',
|
||||
- tests_require=['nose', 'simplejson'],
|
||||
include_package_data=True,
|
||||
zip_safe=False
|
||||
)
|
Reference in New Issue
Block a user