17
0

Compare commits

15 Commits

Author SHA256 Message Date
d5107ae95b Accepting request 1273883 from devel:languages:python
- Switch to autosetup and pyproject macros.
- No more greedy globs in %files.

OBS-URL: https://build.opensuse.org/request/show/1273883
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyRFC3339?expand=0&rev=8
2025-05-02 12:59:41 +00:00
6e60254cbb Accepting request 1223443 from devel:languages:python
- update to 2.0.1:
  * Migrate tests from nose to unittest and pytest
  * Replace :mod:`pytz` dependency with
    :attr:`datetime.timezone.utc` and :mod:`zoneinfo`
  * Reformat codebase with black and isort
  * Configure GitHub Actions; remove Travis CI configuration file
- drop switch-to-pytest.patch (upstream)

  * Use assert and pytest rather than nose.
- Update to version 1.0

OBS-URL: https://build.opensuse.org/request/show/1223443
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyRFC3339?expand=0&rev=7
2024-11-12 18:21:36 +00:00
1b3b0b7b0f - update to 2.0.1:
* Migrate tests from nose to unittest and pytest
  * Replace :mod:`pytz` dependency with
    :attr:`datetime.timezone.utc` and :mod:`zoneinfo`
  * Reformat codebase with black and isort
  * Configure GitHub Actions; remove Travis CI configuration file
- drop switch-to-pytest.patch (upstream)
  * Use assert and pytest rather than nose.
- Update to version 1.0

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyRFC3339?expand=0&rev=12
2024-11-11 20:53:14 +00:00
ae17d53213 Accepting request 1092367 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1092367
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyRFC3339?expand=0&rev=6
2023-06-12 13:26:12 +00:00
5e97d444ac Accepting request 1092334 from home:ecsos:python
- Add %{?sle15_python_module_pythons}

OBS-URL: https://build.opensuse.org/request/show/1092334
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyRFC3339?expand=0&rev=10
2023-06-11 20:04:29 +00:00
ab62755c32 Accepting request 920218 from devel:languages:python
- Add switch-to-pytest.patch
  * Use assert and pytest rather than nose.

OBS-URL: https://build.opensuse.org/request/show/920218
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyRFC3339?expand=0&rev=5
2021-09-20 21:33:10 +00:00
40e4fdadc8 - Add switch-to-pytest.patch
* Use assert and pytest rather than nose.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyRFC3339?expand=0&rev=9
2021-09-20 02:10:19 +00:00
3f2404bafb Accepting request 897201 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/897201
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyRFC3339?expand=0&rev=4
2021-06-03 22:33:57 +00:00
b2fb73b644 Accepting request 897183 from home:pgajdos:python
- use github tarball with tests
- %check: use %pytest rpm macro

OBS-URL: https://build.opensuse.org/request/show/897183
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyRFC3339?expand=0&rev=7
2021-06-03 12:29:31 +00:00
9a823bf9c6 Accepting request 631980 from devel:languages:python
- Version update to 1.1:
  * packaging cleanup mostly
  * Add :meth:`.utils.FixedOffset.__deepcopy__()` method, to prevent crash on deepcopy (:issue:`8`)

OBS-URL: https://build.opensuse.org/request/show/631980
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyRFC3339?expand=0&rev=3
2018-08-29 10:26:41 +00:00
Tomáš Chvátal
6e0563247e - Version update to 1.1:
* packaging cleanup mostly
  * Add :meth:`.utils.FixedOffset.__deepcopy__()` method, to prevent crash on deepcopy (:issue:`8`)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyRFC3339?expand=0&rev=5
2018-08-28 12:19:48 +00:00
225ef3bd7a Accepting request 527503 from devel:languages:python
1

OBS-URL: https://build.opensuse.org/request/show/527503
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyRFC3339?expand=0&rev=2
2017-09-22 19:34:09 +00:00
Thomas Bechtold
ab71adbf43 Accepting request 527502 from home:ecsos:server
- Convert to singlespec

OBS-URL: https://build.opensuse.org/request/show/527502
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyRFC3339?expand=0&rev=3
2017-09-20 10:06:02 +00:00
0b1fb0abf1 Accepting request 351313 from devel:languages:python
As this package will be required by letsencrypt, it would be great to have it in factory...

OBS-URL: https://build.opensuse.org/request/show/351313
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyRFC3339?expand=0&rev=1
2016-01-11 18:11:18 +00:00
Denisart Benjamin
3ebbfff973 Accepting request 349369 from home:weberho:branches:devel:languages:python
This packages is required by the letsencrypt software that will soon be available

OBS-URL: https://build.opensuse.org/request/show/349369
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyRFC3339?expand=0&rev=1
2015-12-29 13:50:13 +00:00
2 changed files with 0 additions and 129 deletions

View File

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

View File

@@ -1,126 +0,0 @@
Index: pyRFC3339-1.1/pyrfc3339/tests/tests.py
===================================================================
--- pyRFC3339-1.1.orig/pyrfc3339/tests/tests.py
+++ pyRFC3339-1.1/pyrfc3339/tests/tests.py
@@ -10,7 +10,7 @@ from pyrfc3339 import generate, parse
from pyrfc3339.utils import timezone
import pytz
-from nose.tools import eq_, raises
+from pytest import raises
class TestCore():
@@ -24,8 +24,8 @@ class TestCore():
Test rounding of timezone values to the nearest second.
'''
- eq_(timezone(5429), '+01:30')
- eq_(timezone(5431), '+01:31')
+ assert timezone(5429) == '+01:30'
+ assert timezone(5431) == '+01:31'
def test_zero_offset(self):
'''
@@ -34,11 +34,11 @@ class TestCore():
'''
timestamp = '2009-01-01T10:02:03+00:00'
dt = parse(timestamp)
- eq_(dt.tzinfo, pytz.utc)
+ assert dt.tzinfo == pytz.utc
timestamp = '2009-01-01T10:02:03-00:00'
dt = parse(timestamp)
- eq_(dt.tzinfo, pytz.utc)
+ assert dt.tzinfo == pytz.utc
def test_deepcopy(self):
'''
@@ -56,7 +56,7 @@ class TestCore():
'''
timestamp = '2009-01-01T10:02:03.25Z'
dt = parse(timestamp)
- eq_(dt.microsecond, 250000)
+ assert dt.microsecond == 250000
def test_generate_microseconds(self):
'''
@@ -65,7 +65,7 @@ class TestCore():
'''
dt = datetime(2009, 1, 1, 10, 2, 3, 500000, pytz.utc)
timestamp = generate(dt, microseconds=True)
- eq_(timestamp, '2009-01-01T10:02:03.500000Z')
+ assert timestamp == '2009-01-01T10:02:03.500000Z'
def test_mixed_case(self):
'''
@@ -76,7 +76,7 @@ class TestCore():
dt1 = parse('2009-01-01t10:01:02z')
dt2 = datetime(2009, 1, 1, 10, 1, 2, tzinfo=pytz.utc)
- eq_(dt1, dt2)
+ assert dt1 == dt2
def test_parse_naive_utc(self):
'''
@@ -84,15 +84,15 @@ class TestCore():
'''
dt1 = parse('2009-01-01T10:01:02Z', produce_naive=True)
- eq_(dt1.tzinfo, None)
+ assert dt1.tzinfo is None
- @raises(ValueError)
def test_parse_naive_local(self):
'''
Test that parsing a local timestamp to a naive datetime fails.
'''
- parse('2009-01-01T10:01:02-04:00', produce_naive=True)
+ with raises(ValueError):
+ parse('2009-01-01T10:01:02-04:00', produce_naive=True)
def test_generate_utc_parse_utc(self):
'''
@@ -103,7 +103,7 @@ class TestCore():
dt1 = dt1.replace(tzinfo=pytz.utc)
dt2 = parse(generate(dt1, microseconds=True))
- eq_(dt1, dt2)
+ assert dt1 == dt2
def test_generate_local_parse_local(self):
'''
@@ -113,7 +113,7 @@ class TestCore():
eastern = pytz.timezone('US/Eastern')
dt1 = eastern.localize(datetime.utcnow())
dt2 = parse(generate(dt1, utc=False, microseconds=True), utc=False)
- eq_(dt1, dt2)
+ assert dt1 == dt2
def test_generate_local_parse_utc(self):
'''
@@ -123,7 +123,7 @@ class TestCore():
eastern = pytz.timezone('US/Eastern')
dt1 = eastern.localize(datetime.utcnow())
dt2 = parse(generate(dt1, utc=False, microseconds=True))
- eq_(dt1, dt2)
+ assert dt1 == dt2
class TestExhaustiveRoundtrip():
@@ -150,7 +150,7 @@ class TestExhaustiveRoundtrip():
dt1 = tzinfo.localize(datetime.utcnow())
timestamp = generate(dt1, utc=False, microseconds=True)
dt2 = parse(timestamp, utc=False)
- eq_(dt1, dt2)
+ assert dt1 == dt2
def test_utc_roundtrip(self):
for tz_name in pytz.all_timezones:
@@ -167,4 +167,4 @@ class TestExhaustiveRoundtrip():
dt1 = tzinfo.localize(datetime.utcnow())
timestamp = generate(dt1, utc=False, microseconds=True)
dt2 = parse(timestamp)
- eq_(dt1, dt2)
+ assert dt1 == dt2