Wykres commitów

735 Commity (master)

Autor SHA1 Wiadomość Data
jaca 5311870bd0
add missing assertion 2022-10-15 15:26:09 +02:00
Nicco Kunzmann e0c87b168d
use in_timezone parameter to make pytz and others work the same
see https://github.com/collective/icalendar/pull/418#issuecomment-1272123309
2022-10-15 15:25:02 +02:00
Nicco Kunzmann 877649e501 added newline 2022-10-13 20:26:42 +01:00
Nicco Kunzmann c5b3da0384 explicitely check duration
see https://github.com/collective/icalendar/actions/runs/3244748413/jobs/5321333702#step:6:60
2022-10-13 19:30:28 +01:00
Nicco Kunzmann 529202bf81 correct tests 2022-10-13 19:24:29 +01:00
Nicco Kunzmann 79bb6efb25 fix given example
see https://github.com/collective/icalendar/issues/156#issuecomment-1278002356
2022-10-13 19:24:20 +01:00
Nicco Kunzmann d0a07388c4 check different formats and calendars using PERIOD 2022-10-13 19:06:17 +01:00
Nicco Kunzmann f155c9d542 add tests for RDATE with PERIOD value
see https://github.com/collective/icalendar/issues/156
2022-10-13 17:58:05 +01:00
Nicco Kunzmann d3588ecf58 move TestEncoding into the test_encoding file and use pytest 2022-10-13 14:25:38 +01:00
Nicco Kunzmann 2e4feab8e9 remove unused file
This file split up in
https://github.com/collective/icalendar/pull/402/files
2022-10-13 14:14:59 +01:00
Nicco Kunzmann e8b7b165dc refactor test multiple 2022-10-13 14:05:18 +01:00
Nicco Kunzmann 881c0a585c add tests for removing VALUE=DATE-TIME from DTSTART, DTEND, DTSTAMP 2022-10-13 09:23:01 +01:00
Nicco Kunzmann 9c2d097d8b make sure .rst collection includes only icalendar files 2022-10-10 17:48:44 +01:00
Nicco Kunzmann 913b8a9bc6 test all files with doctest
This runs doctest on .py and rst files.
See https://github.com/collective/icalendar/issues/443
2022-10-10 17:28:39 +01:00
Jaca 97c470d680
Merge branch 'master' into test_restructure_test_encoding_create_from_ical 2022-10-08 17:12:10 +02:00
jaca 33c380e632
clarify test events' names 2022-10-08 17:09:59 +02:00
jaca 83b7334bd1
merge test_events_unicoded into test_event_from_ical_respects_unicode 2022-10-08 17:09:05 +02:00
Nicco Kunzmann 70a5f20616
Merge pull request #440 from jacadzaca/restructure_test_issue_82
restructure test_issue_82
2022-10-07 22:40:44 +01:00
Jaca e892f51200
fix indent 2022-10-07 16:56:51 +02:00
Jaca 3574f87626
Merge branch 'master' into restructure_test_issue_82 2022-10-07 16:53:14 +02:00
jaca 14579b654b
move test_create_to_ical from test_encoding to test_examples.py 2022-10-07 16:35:52 +02:00
jaca ce2ec96451
refactor test_encoding_create_from_ical 2022-10-07 15:52:51 +02:00
jaca 77a9bf4ba9
refactor test_issue_237 2022-10-07 15:01:02 +02:00
mamico 7a8d584b85
fix: cli does not support DURATION #354 2022-10-07 12:45:12 +02:00
Nicco Kunzmann 5e5e969bb4 reproducing the error if no : is given
see https://github.com/collective/icalendar/issues/348
2022-10-05 21:07:26 +01:00
Jaca 4661b3b618
Merge branch 'master' into test_restructure_test_issue_178 2022-10-03 19:01:17 +02:00
Jaca 76b51ae8b6
Merge branch 'master' into test_restructure_issue_168 2022-10-03 18:52:18 +02:00
Jaca 811b0fc98e
Merge branch 'master' into test_restructure_test_issue_178 2022-10-03 18:50:39 +02:00
Nicco Kunzmann 7eedbf6b47
Merge branch 'master' into test_restructure_issue_335 2022-10-01 20:58:32 +01:00
Nicco Kunzmann c9f90cfb45
Merge branch 'master' into test_restructure_test_issue_142_143 2022-10-01 20:52:00 +01:00
Nicco Kunzmann 71713a2dab
Merge branch 'master' into test_restructure_issue_335 2022-10-01 20:40:52 +01:00
Nicco Kunzmann c409efd358
make __getattr__ smaller
- conditional removed: __getattr__ is only called when an attribute does not exist
- try/except removed: yield original error instead of KeyError
- remove logger
2022-09-29 11:35:07 +01:00
Nicco Kunzmann fc467546b7
make __getattr__ smaller
- conditional removed: __getattr__ is only called when an attribute does not exist
- try/except removed: yield original error instead of KeyError
2022-09-29 11:33:20 +01:00
jaca 7723670e09
refactor test_issue_168 2022-09-29 12:30:35 +02:00
Nicco Kunzmann fa54de2f9f
access calendars like events in tests 2022-09-29 11:24:12 +01:00
jaca eb2fcf1669
refactor test_issue_142 and test_issue_143 2022-09-29 12:18:25 +02:00
Nicco Kunzmann 57e7dc3a51
Merge branch 'master' into test_restructure_issue_104 2022-09-29 00:27:06 +01:00
Nicco Kunzmann cdff06ea85
remove parametrization
This adds suggested changes
see https://github.com/collective/icalendar/pull/410#discussion_r982926625
2022-09-29 00:20:12 +01:00
Nicco Kunzmann d3c0e0803d
Merge branch 'master' into test_restructure_issue_112 2022-09-29 00:10:46 +01:00
Nicco Kunzmann a3f2621e29
Merge branch 'master' into test_restructure_issue_157 2022-09-29 00:07:52 +01:00
Nicco Kunzmann 5d4e58028f
Merge pull request #415 from jacadzaca/test_restructure_issue_345
refactor test_issue_345
2022-09-28 23:36:16 +01:00
Nicco Kunzmann 948fbb8a6c
Merge pull request #423 from niccokunzmann/remove-getattr
remove getattr() call where [] can be used
2022-09-27 09:55:39 +01:00
Nicco Kunzmann 64c8604f51 add missing test cases for uid
see https://github.com/collective/icalendar/pull/415/files#r980383444
2022-09-26 20:01:40 +01:00
Nicco Kunzmann 61a7a34a8b Merge branch 'test_restructure_issue_345' of https://github.com/jacadzaca/icalendar into jacadzaca-test_restructure_issue_345 2022-09-26 19:47:20 +01:00
Nicco Kunzmann 602ff19f8e
remove already removed tests for issues 70 and 100
see https://github.com/collective/icalendar/pull/409#discussion_r980368815
2022-09-26 19:31:32 +01:00
Nicco Kunzmann fe1f1fc943 correct misspelling 2022-09-26 18:17:40 +01:00
Nicco Kunzmann 6280c7cc76
Merge branch 'master' into test_restructure_issue_101 2022-09-26 18:16:26 +01:00
Nicco Kunzmann 197f44c84a remove getattr() call where [] can be used 2022-09-26 18:09:56 +01:00
Nicco Kunzmann 8c365ddbed
Merge branch 'master' into test_restructure_issue_100_184 2022-09-26 18:04:28 +01:00
Nicco Kunzmann 1a1a601b22
Merge pull request #407 from jacadzaca/test_restructure_index_error
Test restructure index error
2022-09-26 17:43:40 +01:00
Jaca a820e03751
Merge branch 'master' into test_restructure_issue_55 2022-09-25 12:20:56 +02:00
jaca e24a965805
refactor test_issue_55 2022-09-25 12:15:38 +02:00
Nicco Kunzmann 3628acbfd4
Merge branch 'master' into test_restructure_index_error 2022-09-24 22:51:32 +01:00
Jaca a5045d04af
Merge branch 'master' into test_restructure_issue_70 2022-09-20 14:48:29 +02:00
Jaca a93b50768e
Merge branch 'master' into test_restructure_index_error 2022-09-20 14:47:29 +02:00
Jaca 34c5514dd2
Merge branch 'master' into test_restructure_issue_100_184 2022-09-20 14:47:08 +02:00
Jaca 55ab621287
Merge branch 'master' into test_restructure_issue_112 2022-09-20 14:44:57 +02:00
Jaca 2e433da8d7
Merge branch 'master' into test_restructure_issue_157 2022-09-20 14:44:17 +02:00
Jaca 4057f2626c
Merge branch 'master' into test_restructure_test_issue_178 2022-09-20 14:42:02 +02:00
Jaca 4387405a72
Merge branch 'master' into test_restructure_issue_335 2022-09-20 14:41:15 +02:00
Nicco Kunzmann 9a72a1b1f2
Merge branch 'master' into test_restructure_issue_53 2022-09-16 16:10:37 +01:00
jaca cd834b2d18
restructure test_issue_101 2022-09-11 16:31:34 +02:00
jaca fdd275a30d
restructure test_issue_70 2022-09-11 16:01:00 +02:00
jaca 3ffb04671f
refactor test_issue_100 and test_issue_184 2022-09-11 15:48:53 +02:00
jaca b5c6f12f11
refactor test_issue_178 2022-09-11 15:41:31 +02:00
jaca e07b68e5e4
refactor test_issue_157 2022-09-11 15:36:37 +02:00
jaca 93f27a9900
refactor test_issue_345 2022-09-11 15:29:33 +02:00
jaca 70e8e364b0
move test_issue_335 to test_parsing 2022-09-11 15:25:43 +02:00
jaca 46d0d95e20
move test_index_error_issue to test_parsing 2022-09-11 15:19:12 +02:00
jaca 09824b0282
restructure test_issue_112 2022-09-11 15:13:17 +02:00
jaca 6bf5606880
restructure test_issue_104 2022-09-11 15:07:51 +02:00
jaca 7352251bf6
restructure test_issue_82 2022-09-11 14:48:56 +02:00
jaca 3db1401d4a
restructure test_issue_64 2022-09-11 14:46:24 +02:00
jaca f42680264d
restructure test_issue_58 2022-09-11 14:43:52 +02:00
jaca 6e78ab6a3b
add conftest 2022-09-11 14:38:32 +02:00
jaca 33121f3d8f
restructure test_issue_53 2022-09-11 13:41:20 +02:00
jaca 000899ec5b
add conftest 2022-09-11 13:11:32 +02:00
Christian Geier 508fbdb317
Merge pull request #387 from niccokunzmann/issue-335
test UTC identification
2022-09-03 21:06:53 +02:00
jaca b78456d835
add __eq__ to icalendar.prop.vDDDTypes 2022-08-29 10:52:25 +02:00
Nicco Kunzmann be0a9e4c2e Merge branch 'fix-assert' of https://github.com/tirkarthi/icalendar into tirkarthi-fix-assert 2022-08-23 04:36:27 +01:00
Nicco Kunzmann c659c45e3c
Merge pull request #324 from jacadzaca/fix-icalendar-tool
Update icalendar tool to python3
2022-08-22 13:08:45 +01:00
jaca c660e9f67b
time decoding uses the timezone in the ical file 2022-08-22 14:06:13 +02:00
jaca f3f9c8c799
make the cli tool test output entire diff when it fails 2022-08-22 13:51:29 +02:00
Nicco Kunzmann 8145a3c192 install zoneinfo and remove conditional tests 2022-08-21 20:58:21 +01:00
Nicco Kunzmann e563cc49ea test UTC identification
see https://github.com/collective/icalendar/issues/335
2022-08-21 20:45:46 +01:00
Nicco Kunzmann c731b6e69d
Merge pull request #385 from WhyNotHugo/drop-compat
Drop python2-compat module
2022-08-21 17:30:41 +01:00
Hugo Osvaldo Barrera fc5f6afa32 Drop python2-compat module 2022-08-21 18:15:13 +02:00
Nicco Kunzmann f8ddb6c68e
Merge branch 'master' into bugfix-335 2022-08-21 15:02:19 +01:00
jaca dda867e049
add test for the cli tool 2022-08-20 12:16:33 +02:00
jaca 7e977452f9
add the -o option back 2022-08-20 11:31:37 +02:00
Nicco Kunzmann d81af0a3ad
Merge branch 'master' into py38 2022-08-19 17:52:09 +01:00
Rohan 375d1e2ecb corrected typos as said in Issue#323 2022-08-19 21:10:28 +05:30
Ihor Sychevskyi 1af1e2acc1
update links (#378) 2022-08-17 00:31:15 +03:00
Hugo Osvaldo Barrera d4c190866f Remove any syntax required for python < 3.8
find . -iname "*.py" -exec pyupgrade --py38-plus {} \;
2022-08-15 09:58:40 +02:00
Robert Spralja 3d78fcab58 Added missing newline 2022-08-09 01:47:01 +02:00
spralja 1afa99398a Fix #345 2022-08-09 01:46:59 +02:00
Maurits van Rees d297b9df1d
Back to development: 5.0.0a2
[ci skip]
2022-07-11 13:40:34 +02:00
Maurits van Rees 2a99dd8674
Preparing release 5.0.0a1
[ci skip]
2022-07-11 13:40:08 +02:00
Maurits van Rees 789e38f3e0
Bumped version for breaking release. 2021-11-22 22:30:56 +01:00
Tobias Brox 19883374ab Merge branch 'bugfix-333' into bugfix-335 2021-11-17 23:55:18 +01:00
Tobias Brox df3abfb7cb bugfix - skip tests for zoneinfo if python distro does not come with the zoneinfo library 2021-11-17 16:52:02 +01:00
Tobias Brox 97e361309a UTC timezone should not be explicitly set in timestamp attributes
Quickfix for https://github.com/collective/icalendar/issues/335
2021-11-17 16:30:11 +01:00
Tobias Brox d6de71b828 Bugfix for datetime objects with tzinfo from zoneinfo library
See https://github.com/collective/icalendar/issues/333 for details

Includes test code and changelog entry
2021-11-17 16:05:00 +01:00
Maurits van Rees 90c0593506
Back to development: 4.0.10
[ci skip]
2021-10-16 15:24:26 +02:00
Maurits van Rees c0feddca64
Preparing release 4.0.9
[ci skip]
2021-10-16 15:24:04 +02:00
Rastislav Barlik f39d234fd6 Preserve duration sign when calling to_ical 2021-10-15 15:00:10 +02:00
Johannes Raggam 9b72b0b1d6 Fix vCategories for correct en/de coding. 2021-10-15 14:51:05 +02:00
Karthikeyan Singaravelan 62c0663b62 Refactor deprecated unittest aliases for Python 3.11 compatibility. 2021-10-13 08:51:54 +00:00
Maurits van Rees c54000617e
Back to development: 4.0.9
[ci skip]
2021-10-07 15:34:26 +02:00
Maurits van Rees 4ff3f4cc9a
Preparing release 4.0.8
[ci skip]
2021-10-07 15:34:00 +02:00
Jon Dufresne 5c4fcf7630
Replace bare 'except:' with 'except Exception:' (#281)
Catching all exceptions is generally considered a bad practice under
most circumstances as it will also catch KeyboardInterrupt and
SystemExit. These special cases should be raised to the interpreter to
allow the Python process to exit.

This fix complies with pycodestyle's error code E722:

https://pycodestyle.readthedocs.io/en/latest/intro.html#error-codes

> do not use bare except, specify exception instead
2021-09-28 22:29:57 +05:30
Felix Van der Jeugt 8cf4f6692f
fix variable typo (#283) 2021-09-28 22:23:29 +05:30
jaca 8b297c2615
add duration, change formatting 2021-06-19 17:00:46 +02:00
jaca 5c398f2d75
fix atetendess and organizer formatting 2021-06-19 16:44:48 +02:00
jaca 8dd91ecaa1
fix description display 2021-06-19 16:32:37 +02:00
jaca 38c68e420e
refactor view function 2021-06-19 16:08:31 +02:00
jaca 2b121b64d3
refactor argument parsing with the adherence to the 'You aren't gonna need it' principle 2021-06-19 15:26:58 +02:00
jaca 3844439884
remove python2 stuff and 'improve' style 2021-06-19 15:08:46 +02:00
Maurits van Rees 07e4ac2cff
Back to development: 4.0.8
[ci skip]
2020-09-07 13:09:06 +02:00
Maurits van Rees 5f46363f0f
Preparing release 4.0.7
[ci skip]
2020-09-07 13:08:33 +02:00
Simon Budig 2a82c88c65 Correct the handling of rrules within timezone definitions.
Fix for https://github.com/collective/icalendar/issues/303
2020-08-24 15:27:21 +02:00
Maurits van Rees 8047148a7b
Back to development: 4.0.7
[ci skip]
2020-05-06 23:01:49 +02:00
Maurits van Rees 3d38ca7819
Preparing release 4.0.6
[ci skip]
2020-05-06 23:01:19 +02:00
Maurits van Rees c5f5602b20
Merge pull request #299 from kam193/master
Default type vText when converting vRecur to ical
2020-04-08 11:06:34 +02:00
Maurits van Rees 3258ea929e
Back to development: 4.0.6
[ci skip]
2020-03-21 01:57:03 +01:00
Maurits van Rees 325501db54
Preparing release 4.0.5
[ci skip]
2020-03-21 01:56:27 +01:00
Kamil Mankowski (kam193) 9b26e188f1
Default type vText when converting vRecur to ical
Use default type when converting recurence definition
to ical string.
2020-03-18 20:04:09 +01:00
Maurits van Rees d1ed9c42d0
Tests: do less iterations with fuzzy contents.
https://github.com/collective/icalendar/pull/289#issuecomment-594219490
2020-03-09 11:37:32 +01:00
Maurits van Rees c65c6b7e3f
Fixed error in tests with duplicate parameter 'self'.
TypeError: __init__() got multiple values for argument 'self'
https://travis-ci.org/collective/icalendar/jobs/659260349
2020-03-09 11:36:26 +01:00
Maurits van Rees ce71b8e3bf
Back to development: 4.0.5
[ci skip]
2019-11-25 22:32:23 +01:00
Maurits van Rees 2aef5f6394
Preparing release 4.0.4
[ci skip]
2019-11-25 22:31:58 +01:00
Dalton Durst b6f211dbfe Calm down fuzzing
The fuzzing configuration introduced by
https://github.com/collective/icalendar/pull/191 *did* find a novel
issue in its first run. However, it is unable to run on travis-ci due to
taking too long without output. I tried running it locally to make sure
it wasn't Travis being Travis, and sure enough, on my i9-9880H, the
operation took well over 20 minutes before I stopped it.

Because of this, I've reduced the number of examples that Hypothesis
will run. This will catch fewer errors but help us get PRs back on track
2019-11-12 10:47:14 -06:00
Maurits van Rees f340b761aa
Back to development: 4.0.4
[ci skip]
2018-10-10 09:41:47 +02:00
Maurits van Rees b9b7e63458
Preparing release 4.0.3
[ci skip]
2018-10-10 09:41:14 +02:00
Christian Ledermann 2b56bc4ee7 more tests, mark test as expected failure 2018-07-13 10:56:25 +01:00
Christian Ledermann 20e09f3523 add category, to be comma separated list #263 2018-07-12 18:15:52 +01:00
esteele 1943386293 Back to development: 4.0.3
[ci skip]
2018-06-20 08:54:26 -04:00
esteele cd160f4a7e Preparing release 4.0.2
[ci skip]
2018-06-20 08:52:51 -04:00
esteele 8be2b6bf7c Back to development: 4.0.2
[ci skip]
2018-02-11 21:34:55 -05:00
esteele 7a378ef0d0 Preparing release 4.0.1
[ci skip]
2018-02-11 21:33:17 -05:00
Jeroen F.J. Laros e86570b2da Cli (#256)
* Added rudimentary command line interface.

* Added documentation on the CLI.

* Added example output.

* Removed _optional wrapper in favour of the built-in get() method.

* Added --version option.

* Removed default for 'attendee'.

* Looping over all vevents now.

* Updated changelog.
2018-02-09 01:37:52 +01:00
Johannes Raggam c55dbdf2dc Back to development: 4.0.1 2017-11-08 14:24:15 +01:00
Johannes Raggam 4f20924e49 Preparing release 4.0.0 2017-11-08 14:24:01 +01:00
Johannes Raggam ae4b882524 prepare release pt2 2017-11-08 14:23:48 +01:00
Johannes Raggam 47f98e4d87 prepare release 2017-11-08 14:13:02 +01:00
Jon Dufresne 80f2c308c6 Drop support for Python 2.6 and 3.3
I would humbly like to suggest icalendar drop support for Python 2.6.

The last release of Python 2.6 was 2013-10-29. It is no longer receiving
security or bug fixes.

https://www.python.org/dev/peps/pep-0361/

The pip project itself has decided to drop support for 2.6. At the
beginning of the year, their numbers estimated that Python 2.6 accounts
for ~2% of their downloads.

https://github.com/pypa/pip/pull/4343

For projects that still use Python 2.6, they can continue to pip install
an older version.

I've tried my best to remove as much 2.6 specific code as I can,
including the 'Programming Language :: Python :: 2.6' trove classifier
from setup.py. I've also removed Travis CI testing, which should result
in slightly faster testing and fewer wasted resources.

Changed:

* Update documented Python support and trove classifiers
* Update Travis test matrix and tox test matrix
* Use set literals (and more literals in general)
* Use dict comprehension
* Remove dependencies on ordereddict and unittest2
* Remove u string prefix, use more modern unicode literals instead
2017-11-07 03:44:09 -08:00
Johannes Raggam 5feee9bac5 Back to development: 3.12.1 2017-11-07 10:12:39 +01:00
Johannes Raggam ff1c351ae6 Preparing release 3.12 2017-11-07 10:12:00 +01:00
Jon Dufresne 93e5d7b7c1 Fix invalid escape sequences in string and bytes literals (#245)
Invalid escape sequences have been deprecated in Python 3.6. See:

https://docs.python.org/3/whatsnew/3.6.html#deprecated-python-behavior

> A backslash-character pair that is not a valid escape sequence now
> generates a DeprecationWarning. Although this will eventually become a
> SyntaxError, that will not be for several Python releases.

When warnings are enabled, this appears as:

  DeprecationWarning: invalid escape sequence ...

Sequences discovered through test suite.
2017-10-23 14:56:09 +02:00
Johannes Raggam 720dd8be81 Merge pull request #242 from collective/MStimezones
Accept Windows timezone identifiers as valid.
2017-09-28 21:49:05 +02:00
Christian Geier 043cf5a400 Accept Windows timezone identifiers as valid.
Currently we accept Olson timezone identifiers (tzids) as valid, even
when no matching VTIMEZONE component is present.  Windows tzids are
different from Olson tzids, but also far spread.  Some software produces
.ics files using those Windows tzids with missing VTIMEZONE components.
While in general our stance is to only support standard compliant .ics
files and try to get the issuer of the invalid .ics files to fix their
software, I believe our chances here are very slim.  On the other hand,
a lot of those .ics files exist in the wild and not supporting those
Windows tzids is a source of major inconvenience for our users.  We
should there accept Windows tzids as we do for Olson tzids.  The unicode
consortium has a suggested mapping from Windows tzids to Olson tzids
[0], which we now make use of.

[0] http://www.unicode.org/cldr/charts/29/supplemental/zone_tzid.html
2017-09-28 18:45:43 +02:00
Christian Geier 3f8d215b11 Merge branch 'master' into fix/237 2017-09-28 12:53:52 +02:00
esteele 9d5a3b5a72 Back to development: 3.11.8
[ci skip]
2017-08-27 18:41:50 -04:00
esteele b776af91e0 Preparing release 3.11.7
[ci skip]
2017-08-27 18:41:24 -04:00
Clive Stevens ebe06a4976 Fix non-ascii TZID and TZNAME handling in python 2
Zone needs to be a python 2 str because it's used as the timezone type name.
Zone name is a python 2 str for consistency with pytz. Needs to be made
unique if the conversion is inexact
2017-08-17 16:44:48 +01:00
Christian Geier 68e33af1c8 Merge pull request #235 from collective/fix/155
Allow ignoring of TZ offsets > 24h
2017-08-16 23:35:39 +02:00
Maurits van Rees a212983774
Back to development: 3.11.7
[ci skip]
2017-08-04 20:45:28 +02:00
Maurits van Rees b992e83f11
Preparing release 3.11.6
[ci skip]
2017-08-04 20:45:02 +02:00
Christian Geier 1b20866ad3 Merge pull request #234 from collective/fix/timezone_count
Fix VTIMEZONEs including RDATEs
2017-07-25 20:29:07 +02:00
Christian Geier 9a03ff1e20 Allow ignoring of TZ offsets > 24h
fixes #155
2017-07-18 11:58:09 +02:00
esteele 34fda85e99 Back to development: 3.11.6
[ci skip]
2017-07-03 14:46:40 +03:00
esteele 61c591eeea Preparing release 3.11.5
[ci skip]
2017-07-03 14:45:50 +03:00
Christian Geier fcec6222c4 fix timezone count 2017-07-02 19:42:02 +02:00
Christian Geier 4d1311fc76 Test for VTIMEZONES with RDATEs 2017-07-02 19:42:02 +02:00
Christian Geier d445fcf87c Fix handling of non-unique VTIMEZONEs.
We should probably choose a better system for generating unique TZNAMEs.
2017-06-20 13:58:26 +02:00
Christian Geier 2e8311ba0a Reproduce #227
The issue here is that both VTIMEZONE subcomponents have the same
TZOFFSETFROM, TZOFFSETTO and DTSTART, but one is a DAYLIGHT and the
other is a STANDARD component. While this makes them pretty
useless and, if it is standard compliant, it probably shouldn't be.
2017-06-20 13:57:55 +02:00
Christian Geier f94cd35b6b Assertion for VTIMEZONE sub-components' DTSTART 2017-05-26 14:59:54 +02:00
esteele fa86fd5dfb Back to development: 3.11.5
[ci skip]
2017-05-10 08:52:19 -04:00
esteele a0380b78db Preparing release 3.11.4
[ci skip]
2017-05-10 08:52:03 -04:00
Christian Geier 5c269e1082 Fix handling of VTIMEZONEs with subcomponents with the same DTSTARTs
For VTIMEZONE subcomponents without a TZNAME we would construct a
TZNAME from their shared TZID and DTSTART, if their DTSTART was equal,
this would lead to the same TZNAME and with that to a broken timezone
object.

Fixes #217.
2017-04-19 00:21:59 +02:00
Christian Geier 0368e16faa Reproduce #217 2017-04-19 00:21:16 +02:00
Markus Unterwaditzer 805f59d36a Extend tests 2017-04-19 00:07:41 +02:00
Markus Unterwaditzer 0f408d8cce Fix q_split for maxsplit=0 2017-04-19 00:07:41 +02:00
Christian Geier b82893ff56 New test for broken properties.
The fix for #197 makes the test data used for testing the error
messages for broken properties (which was valid data) work with
icalendar, we therefor need a new test with actually invalid data.
2017-04-19 00:07:41 +02:00
Christian Geier 124b328c93 Moved test_apple_xlocation() to test_icalendar.py 2017-04-19 00:07:41 +02:00
Christian Geier d0fd108ec7 Allow `=` in parameter values.
Some parameter values (e.g., BASE64 encoded binary data often ends with
one or two equal signs) may contain an equal sign (`=`). The current
implementation splits key-value pairs at all equal signs, which leads to
errors. Especially icalendar files generated by Apple's software often
feature BASE64 encoded binary data in parameter values.

This patch introduces a new parameter `maxsplit` to
icalendar.parser.q_split() which works similar as python's
string.split(sep, maxsplit) which we then use to split parameter
key-value pairs only at the first equal sign.

This patch fixes #197.
2017-04-19 00:07:41 +02:00
Maurits van Rees 9e4a4f018d Back to development: 3.11.4
[ci skip]
2017-02-15 12:37:39 +01:00
Maurits van Rees ebd677a0eb Preparing release 3.11.3
[ci skip]
2017-02-15 12:37:19 +01:00
Markus Unterwaditzer 87f374d96e Introduce Hypothesis for testing (#191) 2017-02-05 21:36:33 +01:00
Jon Dufresne fbed44e617 Fix all "ResourceWarning: unclosed file ..." warnings during tests 2017-01-23 18:36:23 -08:00
Timo Stollenwerk ebb47ee991 Back to development: 3.11.3
[ci skip]
2017-01-12 17:34:09 +01:00
Timo Stollenwerk 5ec4e60560 Preparing release 3.11.2
[ci skip]
2017-01-12 17:33:22 +01:00
Maurits van Rees 3d3015f186 Back to development: 3.11.2
[ci skip]
2016-12-19 18:03:18 +01:00
Maurits van Rees 69b5ec7f54 Preparing release 3.11.1
[ci skip]
2016-12-19 18:03:04 +01:00
Andreas Ruppen 885a547d34 Handle UnicodeEncodeError in Error messages. Depending on the input, I might be that instead of collecting the thrown error message, python throws a new UnicodeEncodeError: 'ascii' codec can't encode character u'\xf6' in position 96: ordinal not in range(128). So we use the six library and unicode function to properly treat the error message before adding it to the stack of already collected error messages. 2016-11-22 21:11:16 +01:00
Maurits van Rees b8e242af4d Back to development: 3.11.1
[ci skip]
2016-11-18 20:13:51 +01:00
Maurits van Rees 617ca66589 Preparing release 3.11
[ci skip]
2016-11-18 20:13:07 +01:00
Johannes Raggam c5a53fe973 Back to development: 3.11 2016-05-26 11:23:54 +02:00
Johannes Raggam a6f2b900db Preparing release 3.10 2016-05-26 11:23:10 +02:00
Johannes Raggam 03ae2d2783 prepare release 2016-05-26 11:18:05 +02:00
Johannes Raggam f0d0496309 Merge pull request #189 from stlaz/issue_184
Added PERIOD value type to date types
2016-05-26 11:00:11 +02:00
Johannes Raggam 7ad5491760 Merge pull request #185 from collective/fix_184
Reintroduce cal.Component.is_broken
2016-05-26 10:58:45 +02:00
Johannes Raggam 640aa85e10 Merge pull request #183 from stlaz/rfc5545
Updated components to better conform to RFC 5545
2016-05-26 10:52:46 +02:00
Christian Geier 70a049e06c Reintroduce cal.Component.is_broken
cal.Component.is_broken got removed with 3.9.2 but should not have been
removed before 4.0.0
2016-04-25 23:56:07 +02:00
Markus Unterwaditzer 9cac8669b6 Fix tests for dateutil 2.5
Fix #194
2016-04-22 22:58:13 +02:00
Stanislav Laznicka 2c155275b3 Added PERIOD value type to date types
https://github.com/collective/icalendar/issues/184
2016-02-19 13:54:02 +01:00
Stanislav Laznicka 4f845ce91e Updated components to better conform to RFC 5545
https://github.com/collective/icalendar/issues/176
2016-02-17 08:28:40 +01:00
Johannes Raggam 7c6571d621 back to dev 2016-02-05 13:24:47 +01:00
Johannes Raggam a0f31b871e Preparing release 3.9.2 2016-02-05 13:19:00 +01:00
Johannes Raggam 0f4dff809f fix merge leftofer 2016-02-05 13:07:30 +01:00