1
0

35 Commits

Author SHA256 Message Date
b716c89ef9 Accepting request 1317043 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1317043
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-icalendar?expand=0&rev=39
2025-11-11 18:21:15 +00:00
83619e8280 - Update to 6.3.2
* Add PyData Theme version switcher to documentation. See Issue 825.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-icalendar?expand=0&rev=80
2025-11-11 09:19:46 +00:00
3efb49255d Accepting request 1289705 from devel:languages:python
- Update to 6.3.1:
  * New features:
    + Add ``VALARM`` properties for :rfc:`9074`.
    + Test compatibility with Python 3.13
    + Add ``Timezone.from_tzinfo()`` and ``Timezone.from_tzid()`` to create
      a ``Timezone`` component from a ``datetime.tzinfo`` timezone.
    + Add ``icalendar.prop.tzid_from_tzinfo``.
    + Add ``icalendar.alarms`` module to calculate alarm times.
    + Add ``Event.alarms`` and ``Todo.alarms`` to access alarm calculation.
    + Add ``DTSTART``, ``TZOFFSETTO``, and ``TZOFFSETFROM`` to
      ``TimezoneStandard`` and ``TimezoneDaylight``
    + Use ``pyproject.toml`` file instead of ``setup.py``
  * Breaking changes:
    + The ``relative`` attribute of ``vWeekday`` components has the correct sign now.
    + Use ``zoneinfo`` for ``icalendar`` objects created from strings,
    + Remove ``is_broken`` property. Use ``errors`` instead to check if a
      component had suppressed parsing errors.
    + Remove untested and broken ``LocalTimezone`` and ``FixedOffset`` tzinfo
    + sub-classes.
    + Remove Python 3.7 as compatible.
    + Test compatibility with Python 3.12
    + Add function ``icalendar.use_pytz()``.
    + Allows selecting components with ``walk(select=func)`` where ``func`` takes a
      component and returns ``True`` or ``False``.
    + Add compatibility to :rfc:`7529`, adding ``vMonth`` and ``vSkip``
  * Bug fixes:
    + Fix a bad ``bytes`` replace in ``unescape_char``.
    + Handle ``ValueError`` in ``vBinary.from_ical``.
    + Rename RFC 2445 to RFC 5545, see `Issue 278

OBS-URL: https://build.opensuse.org/request/show/1289705
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-icalendar?expand=0&rev=38
2025-07-02 10:12:19 +00:00
fbb84b5358 - Update to 6.3.1:
* New features:
    + Add ``VALARM`` properties for :rfc:`9074`.
    + Test compatibility with Python 3.13
    + Add ``Timezone.from_tzinfo()`` and ``Timezone.from_tzid()`` to create
      a ``Timezone`` component from a ``datetime.tzinfo`` timezone.
    + Add ``icalendar.prop.tzid_from_tzinfo``.
    + Add ``icalendar.alarms`` module to calculate alarm times.
    + Add ``Event.alarms`` and ``Todo.alarms`` to access alarm calculation.
    + Add ``DTSTART``, ``TZOFFSETTO``, and ``TZOFFSETFROM`` to
      ``TimezoneStandard`` and ``TimezoneDaylight``
    + Use ``pyproject.toml`` file instead of ``setup.py``
  * Breaking changes:
    + The ``relative`` attribute of ``vWeekday`` components has the correct sign now.
    + Use ``zoneinfo`` for ``icalendar`` objects created from strings,
    + Remove ``is_broken`` property. Use ``errors`` instead to check if a
      component had suppressed parsing errors.
    + Remove untested and broken ``LocalTimezone`` and ``FixedOffset`` tzinfo
    + sub-classes.
    + Remove Python 3.7 as compatible.
    + Test compatibility with Python 3.12
    + Add function ``icalendar.use_pytz()``.
    + Allows selecting components with ``walk(select=func)`` where ``func`` takes a
      component and returns ``True`` or ``False``.
    + Add compatibility to :rfc:`7529`, adding ``vMonth`` and ``vSkip``
  * Bug fixes:
    + Fix a bad ``bytes`` replace in ``unescape_char``.
    + Handle ``ValueError`` in ``vBinary.from_ical``.
    + Rename RFC 2445 to RFC 5545, see `Issue 278

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-icalendar?expand=0&rev=78
2025-07-02 03:13:31 +00:00
739c978dd2 Accepting request 1184136 from devel:languages:python
- update to 5.0.13:
  * Guide to delete the build folder before running tests
  * Make documentation build with Python 3.12
  * Update windows to olson conversion for Greenland Standard
    Time
  * Extend examples in Usage with alarm and recurrence
  * Document how to serve the built documentation to view with
    the browser
  * Improve test coverage

OBS-URL: https://build.opensuse.org/request/show/1184136
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-icalendar?expand=0&rev=37
2024-07-01 09:21:43 +00:00
5808b94988 Accepting request 1160833 from devel:languages:python
- update to 5.0.12:
  * Augmented fuzzer to optionally convert multiple calendars
    from a source string
  * Add script to convert OSS FUZZ test cases to Python/pytest
    test cases
  * Added additional exception handling of defined errors to
    fuzzer, to allow fuzzer to explore deeper
  * Added more instrumentation to fuzz-harness
  * Rename "contributor" to "collaborator" in documentation
  * Correct the outdated "icalendar view myfile.ics" command in
    documentation. #588
  * Update GitHub Actions steps versions
  * Keep GitHub Actions up to date with GitHub's Dependabot
  * Fixed index error in cal.py when attempting to pop from an
    empty stack
  * Fixed type error in prop.py when attempting to join strings
    into a byte-string
  * Caught Wrong Date Format in ical_fuzzer to resolve fuzzing
    coverage blocker

OBS-URL: https://build.opensuse.org/request/show/1160833
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-icalendar?expand=0&rev=36
2024-03-25 20:07:57 +00:00
1adaebd647 Accepting request 1140098 from devel:languages:python
- skip tests on leap

OBS-URL: https://build.opensuse.org/request/show/1140098
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-icalendar?expand=0&rev=35
2024-01-21 22:08:36 +00:00
3c4148a7a6 Accepting request 1133683 from devel:languages:python
- update to 5.0.11:
  * The cli utility now displays start and end datetimes in the
    user's local timezone.
  * Added fuzzing harnesses, for integration to OSSFuzz.
  * icalendar releases are deployed to Github releases
  * CATEGORIES field now accepts a string as argument
  * Multivalue FREEBUSY property is now parsed properly
  * Compare equality and inequality of calendars more completely
  * Use non legacy timezone name.
  * Add some compare functions.
  * Change OSS Fuzz build script to point to harnesses in fuzzing
    directory
  * Component._encode stops ignoring parameters argument on
    native values, now merges them
  * PERIOD values now set the timezone of their start and end.
  * No longer run the ``plone.app.event`` tests.
  * Add documentation on how to parse ``.ics`` files. #152
  * Move pip caching into Python setup action.
  * Check that issue #165 can be closed.
  * Updated about.rst for issue #527
  * Avoid ``vText.__repr__`` BytesWarning.
  * Calendar components are now properly compared
  * to_ical() now accepts RRULE BYDAY values>=10 #518
  * Adjusted duration regex
  * Added support for BYWEEKDAY in vRecur ref: #268
  * Fix problem with ORGANIZER in FREE/BUSY #348
  * vDDDTypes is hashable #487 #492 [niccokunzmann]
  * Minor changes:
  * Refactored cal.py, tools.py and completed remaining minimal
    refactoring in parser.py. Ref: #481 [pronoym99]

OBS-URL: https://build.opensuse.org/request/show/1133683
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-icalendar?expand=0&rev=34
2023-12-17 20:33:11 +00:00
9682d165b2 Accepting request 1007443 from devel:languages:python
- update to 4.1.0:
  - No longer test on Python 3.4, 3.5 and PyPy2, because we cannot get it to work.
    Technically it should still work, it is just no longer tested.
    Do not expect much development on branch 4.x anymore.
    The master branch will be for the remaining Python versions that we support.

OBS-URL: https://build.opensuse.org/request/show/1007443
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-icalendar?expand=0&rev=33
2022-10-01 15:44:08 +00:00
e026568f44 Accepting request 927592 from devel:languages:python
- update to 4.0.9:
  - Fix vCategories for correct en/de coding.
  - vDuration property value: Fix changing duration sign after multiple
    ``to_ical`` calls.

OBS-URL: https://build.opensuse.org/request/show/927592
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-icalendar?expand=0&rev=32
2021-10-27 20:21:01 +00:00
e194599c3e Accepting request 925734 from devel:languages:python
- update to 4.0.8:
  - Support added for Python 3.9 and 3.10 (no code changes needed).
  - Replace bare 'except:' with 'except Exception:' (#281)

OBS-URL: https://build.opensuse.org/request/show/925734
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-icalendar?expand=0&rev=31
2021-10-16 20:47:37 +00:00
5437e085cc Accepting request 850949 from devel:languages:python
- update to 4.0.7:
  - fixed rrule handling, re-enabled test_create_america_new_york

OBS-URL: https://build.opensuse.org/request/show/850949
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-icalendar?expand=0&rev=30
2020-11-26 22:15:19 +00:00
1472f6b147 Accepting request 810895 from devel:languages:python
- update to 4.0.6:
  - Use ``vText`` as default type, when convert recurrence definition to ical string. [kam193]

OBS-URL: https://build.opensuse.org/request/show/810895
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-icalendar?expand=0&rev=29
2020-06-09 22:45:28 +00:00
f4ed0208f7 Accepting request 808791 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/808791
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-icalendar?expand=0&rev=28
2020-05-26 15:49:39 +00:00
4b46014620 Accepting request 792729 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/792729
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-icalendar?expand=0&rev=27
2020-04-09 21:18:04 +00:00
13b5f65874 Accepting request 785585 from devel:languages:python
- update to 4.0.4:
  - Reduce Hypothesis iterations to speed up testing, allowing PRs to pass

OBS-URL: https://build.opensuse.org/request/show/785585
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-icalendar?expand=0&rev=26
2020-03-18 11:27:54 +00:00
e4ee77681f Accepting request 725101 from devel:languages:python
- Fix fdupes and pytest calls

OBS-URL: https://build.opensuse.org/request/show/725101
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-icalendar?expand=0&rev=25
2019-08-22 08:56:01 +00:00
Stephan Kulow
d6983fe09b Accepting request 682601 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/682601
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-icalendar?expand=0&rev=24
2019-03-10 08:37:18 +00:00
0c2558629b Accepting request 651058 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/651058
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-icalendar?expand=0&rev=23
2018-11-26 09:26:39 +00:00
39ef133a3d Accepting request 632125 from devel:languages:python
- Explicitly require hypothesis as it is requested in setup.py

OBS-URL: https://build.opensuse.org/request/show/632125
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-icalendar?expand=0&rev=22
2018-08-31 08:45:31 +00:00
e1ff18424f Accepting request 631046 from devel:languages:python
- Version update to 4.0.2:
  * Update all pypi.python.org URLs to pypi.org
  * Added rudimentary command line interface.
  * Readme, setup and travis updates.
  * Drop support for Python 2.6 and 3.3.
  * Accept Windows timezone identifiers as valid. #242 
  * Fix ResourceWarnings in setup.py when Python warnings are enabled. #244
  * Fix invalid escape sequences in string and bytes literals. #245
  * Include license file in the generated wheel package. #243
  * Fix non-ASCII TZID and TZNAME parameter handling. #238
  * Docs: update install instructions. #240
  * added vUTCOffset.ignore_exceptions to allow surpressing of failed TZOFFSET parsing (for now this ignores the check for offsets > 24h) 
  * Fix VTIMEZONEs including RDATEs #234.
- Update URL to point to the repo rather than to docs
- Use %license for license install

OBS-URL: https://build.opensuse.org/request/show/631046
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-icalendar?expand=0&rev=21
2018-08-24 15:10:53 +00:00
c55ad670ed Accepting request 508117 from devel:languages:python
1

OBS-URL: https://build.opensuse.org/request/show/508117
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-icalendar?expand=0&rev=20
2017-08-10 12:02:38 +00:00
69dfad37bb Accepting request 451188 from devel:languages:python
- correct source url

- update to version 3.11.2 (2017-01-12)
  - Run tests with python 3.5 and 3.6. [geier]
  - Allow tests failing with pypy3 on travis.ci. [geier]
- update to version 3.11.1 (2016-12-19)
  - Encode error message before adding it to the stack of collected error
     messages.
- update to version 3.11 (2016-11-18)
  - Successfully test with pypy and pypy3. [gforcada]
  - Minor documentation update. [tpltnt]
- update to version 3.10 (2016-05-26)
  - Updated components description to better comply with RFC 5545. Refs #183.
    [stlaz]
  - Added PERIOD value type to date types. Also fixes incompatibilities
    described in #184. Refs #189. [stlaz]
  - Fix testsuite for use with dateutil>=2.5. Refs #195. [untitaker]
  - Reintroduce cal.Component.is_broken that was removed with 3.9.2. Refs #185.
    [geier]
- update to version 3.9.2 (2016-02-05)
  - Defined test_suite in setup.py. Now tests can be run via python setup.py
    test. [geier]
  - Fixed cal.Component.from_ical() representing an unknown component as one of
    the known. [stlaz]
  - Fixed possible IndexError exception during parsing of an ical string. [stlaz]
  - When doing a boolean test on icalendar.cal.Component, always return True.
    Before it was returning False due to CaselessDict, if it didn’t contain any
    items. [stlaz]
  - Fixed date-time being recognized as date or time during parsing. Added
    better error handling to parsing from ical strings. [stlaz]

OBS-URL: https://build.opensuse.org/request/show/451188
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-icalendar?expand=0&rev=19
2017-01-25 22:26:20 +00:00
f488e4dc87 Accepting request 381390 from devel:languages:python
- adjust to python-python-dateutil renaming

OBS-URL: https://build.opensuse.org/request/show/381390
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-icalendar?expand=0&rev=18
2016-04-22 14:23:42 +00:00
485330b867 Accepting request 340451 from devel:languages:python
1

OBS-URL: https://build.opensuse.org/request/show/340451
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-icalendar?expand=0&rev=17
2015-10-30 12:43:10 +00:00
Stephan Kulow
ac4252a26c Accepting request 333782 from devel:languages:python
1

OBS-URL: https://build.opensuse.org/request/show/333782
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-icalendar?expand=0&rev=16
2015-09-27 06:40:27 +00:00
Stephan Kulow
f1c1b84520 Accepting request 316574 from devel:languages:python
1

OBS-URL: https://build.opensuse.org/request/show/316574
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-icalendar?expand=0&rev=15
2015-08-05 04:49:47 +00:00
Stephan Kulow
76b7bf2496 Accepting request 298727 from devel:languages:python
1

OBS-URL: https://build.opensuse.org/request/show/298727
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-icalendar?expand=0&rev=14
2015-04-25 07:52:56 +00:00
Stephan Kulow
a6534e2baa Accepting request 260003 from devel:languages:python
1

OBS-URL: https://build.opensuse.org/request/show/260003
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-icalendar?expand=0&rev=13
2014-11-07 08:06:01 +00:00
Stephan Kulow
a3a39a5e76 Accepting request 206365 from devel:languages:python
- Use tarball from https://pypi.python.org/ 
- Fix download link used as source

- New upstream release 3.5
- Changelog for 3.5
  * Let to_unicode be more graceful for non-unicode strings, as like CMFPlone’s safe_unicode does it. [thet] 
- Changelog for 3.4
  * Switch to unicode internally. This should fix all en/decoding errors. [thet]
  * Support for non-ascii parameter values. Fixes #88. [warvariuc]
  * Added functions to transform chars in string with ‘\’ + any of r’,;:’ chars into ‘%{:02X}’ form to avoid splitting on chars escaped with ‘\’. [warvariuc]
  * Allow seconds in vUTCOffset properties. Fixes #55. [thet]
  * Let Component.decode better handle vRecur and vDDDLists properties. Fixes #70. [thet]
  * Don’t let Component.add re-encode already encoded values. This simplifies the API, since there is no need explicitly pass encode=False. Fixes #82. [thet]
  * Rename tzinfo_from_dt to tzid_from_dt, which is what it does. [thet]
  * More support for dateutil parsed tzinfo objects. Fixes #89. [leo-naeka]
  * Remove python-dateutil version fix at all. Current python-dateutil has Py3 and Py2 compatibility. [thet]
  * Declare the required python-dateutil dependency in setup.py. Fixes #90. [kleink]
  * Raise test coverage. [thet]
  * Remove interfaces module, as it is unused. [thet]
  * Remove test_doctests.py, test suite already created properly in test_icalendar.py. [rnix]
  * Transformed doctests into unittests, Test fixes and cleanup. [warvariuc] (forwarded request 206364 from posophe)

OBS-URL: https://build.opensuse.org/request/show/206365
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-icalendar?expand=0&rev=11
2013-11-10 19:36:55 +00:00
Tomáš Chvátal
b19a0be54d Accepting request 204574 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/204574
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-icalendar?expand=0&rev=10
2013-10-25 09:18:54 +00:00
Stephan Kulow
50cd670c9e Accepting request 155083 from devel:languages:python
Update to 3.3 (forwarded request 154985 from posophe)

OBS-URL: https://build.opensuse.org/request/show/155083
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-icalendar?expand=0&rev=8
2013-02-11 10:12:11 +00:00
Stephan Kulow
4b00d3f2ef Accepting request 133397 from devel:languages:python
Update to 3.1, remove Sphinx dependency and no need to rm .swp files removed upstream. (forwarded request 133373 from poorboywilly)

OBS-URL: https://build.opensuse.org/request/show/133397
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-icalendar?expand=0&rev=6
2012-09-11 07:16:04 +00:00
Stephan Kulow
c3ef05bac7 Accepting request 126877 from devel:languages:python
Resubmit with explanation about licensing

OBS-URL: https://build.opensuse.org/request/show/126877
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-icalendar?expand=0&rev=5
2012-07-02 19:33:21 +00:00
Stephan Kulow
62b9927bca Accepting request 105265 from devel:languages:python
Submit requested by Coolo

OBS-URL: https://build.opensuse.org/request/show/105265
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-icalendar?expand=0&rev=3
2012-02-27 17:35:44 +00:00
4 changed files with 53 additions and 10 deletions

View File

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

3
icalendar-6.3.2.tar.gz Normal file
View File

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

View File

@@ -1,3 +1,42 @@
-------------------------------------------------------------------
Tue Nov 11 09:07:51 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 6.3.2
* Add PyData Theme version switcher to documentation. See Issue 825.
-------------------------------------------------------------------
Wed Jul 2 03:13:15 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Update to 6.3.1:
* New features:
+ Add ``VALARM`` properties for :rfc:`9074`.
+ Test compatibility with Python 3.13
+ Add ``Timezone.from_tzinfo()`` and ``Timezone.from_tzid()`` to create
a ``Timezone`` component from a ``datetime.tzinfo`` timezone.
+ Add ``icalendar.prop.tzid_from_tzinfo``.
+ Add ``icalendar.alarms`` module to calculate alarm times.
+ Add ``Event.alarms`` and ``Todo.alarms`` to access alarm calculation.
+ Add ``DTSTART``, ``TZOFFSETTO``, and ``TZOFFSETFROM`` to
``TimezoneStandard`` and ``TimezoneDaylight``
+ Use ``pyproject.toml`` file instead of ``setup.py``
* Breaking changes:
+ The ``relative`` attribute of ``vWeekday`` components has the correct sign now.
+ Use ``zoneinfo`` for ``icalendar`` objects created from strings,
+ Remove ``is_broken`` property. Use ``errors`` instead to check if a
component had suppressed parsing errors.
+ Remove untested and broken ``LocalTimezone`` and ``FixedOffset`` tzinfo
+ sub-classes.
+ Remove Python 3.7 as compatible.
+ Test compatibility with Python 3.12
+ Add function ``icalendar.use_pytz()``.
+ Allows selecting components with ``walk(select=func)`` where ``func`` takes a
component and returns ``True`` or ``False``.
+ Add compatibility to :rfc:`7529`, adding ``vMonth`` and ``vSkip``
* Bug fixes:
+ Fix a bad ``bytes`` replace in ``unescape_char``.
+ Handle ``ValueError`` in ``vBinary.from_ical``.
+ Rename RFC 2445 to RFC 5545, see `Issue 278
-------------------------------------------------------------------
Sun Jun 30 20:33:27 UTC 2024 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-icalendar
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
# Copyright (c) 2011 open-slx GmbH <Sascha.Manns@open-slx.de>
# Copyright (c) 2009 - 7/2011 Sascha Manns <saigkill@opensuse.org>
#
@@ -21,23 +21,25 @@
%define modname icalendar
%{?sle15_python_module_pythons}
Name: python-%{modname}
Version: 5.0.13
Version: 6.3.2
Release: 0
Summary: Python parser/generator of iCalendar files package
License: BSD-2-Clause
Group: Development/Languages/Python
URL: https://github.com/collective/icalendar
Source0: https://files.pythonhosted.org/packages/source/i/icalendar/%{modname}-%{version}.tar.gz
BuildRequires: %{python_module hatch_vcs}
BuildRequires: %{python_module hatchling}
BuildRequires: %{python_module hypothesis}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module python-dateutil}
BuildRequires: %{python_module pytz}
BuildRequires: %{python_module wheel}
BuildRequires: %{python_module tzdata}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-python-dateutil
Requires: python-pytz
Requires: python-tzdata
Suggests: python-pytz
Requires(post): update-alternatives
Requires(postun): update-alternatives
Provides: %{name}-doc = %{version}
@@ -63,7 +65,9 @@ with Python. It follows the RFC 2445 (iCalendar) specification.
%check
# some dependencies are too old in Leap
%if 0%{?suse_version} >= 1550
%pytest src
donttest="(test_timezone_names_are_known and tzp_0-America/Coyhaique)"
donttest+=" or (test_timezone_names_are_known and tzp_0-Asia/Beijing)"
%pytest -k "not ($donttest)" src
%endif
%post
@@ -74,7 +78,7 @@ with Python. It follows the RFC 2445 (iCalendar) specification.
%files %{python_files}
%license LICENSE.rst
%doc README.rst CHANGES.rst
%doc README.rst docs/changelog.rst
%python_alternative %{_bindir}/icalendar
%{python_sitelib}/%{modname}
%{python_sitelib}/%{modname}-%{version}.dist-info