Wykres commitów

41 Commity (1af1e2acc120bfd7555b09754056be41e1ebc28b)

Autor SHA1 Wiadomość Data
Ihor Sychevskyi 1af1e2acc1
update links (#378) 2022-08-17 00:31:15 +03: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
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
Johannes Raggam 2d62c56ab0 all utf 8 headers 2016-01-14 15:08:00 +01:00
Johannes Raggam 1c366d7c52 backport some of regebros modern python idiom changes from his regebro-refactor branch 2013-12-25 21:48:00 +01:00
Johannes Raggam 08babba931 format imports according to https://github.com/plone/plone.api/blob/master/docs/contribute/conventions.rst 2013-12-24 01:44:53 +01:00
Johannes Raggam a08849e099 remove unused tests, move examples.rst to docs/usage.rst, pep8 everything 2013-12-24 01:29:05 +01:00
Christian Geier 40bcdf6eff migrated most remaining doctests to unittests
left example.rst for merging with docs
these new tests are NOT working under python3.3 just yet
2013-10-31 00:53:03 +01:00
Christian Geier 2074ff051c made the last test 'work' 2013-10-25 01:19:05 +02:00
Christian Geier 03c2b6206d test_contentline_class: sort list before comparing
the lists' elements were not always in the same order in python3.3
2013-10-25 01:10:04 +02:00
Christian Geier c91342de68 used bytestrings where appropriate
only in test_icalendar.py
don't yet know why one foldline test should raise an exception
2013-10-20 22:48:47 +02:00
Johannes Raggam ee82c78e27 remove recurrence.rst doctest, move it to test_recurrence.py 2013-07-19 10:54:25 +02:00
Victor Varvaryuk fe68379b82 . 2013-04-03 16:33:39 +04:00
Victor Varvaryuk 89a74cc3ba Optimized line folding algorithm. foldline function now expects only unicode.
Now not accepting unsecaped new line characters in a content line.
When folding line - preserving space at the end, if present.
Modified the tests accordingly.
2013-03-20 12:49:57 +04:00
Johannes Raggam ae97335ceb avoid circular imports and create parser_tools, which doesnt import anything from icalendar. fix __repr__ to output no unicode but encoded strings, even with dict or list/tuple items. as a sideeffect, change the signature of __repr__ to not output the subcomponents classes. 2013-03-19 12:40:34 +01:00
Victor Varvaryuk 104387cc4a CaselessDict keys are now automatically converted to unicode.
Test fixes. Small refactoring and polishing.
2013-03-19 12:35:00 +04:00
Robert Niederreiter 133c3f4db6 merge pull 94 2013-03-15 17:06:49 +01:00
Victor Varvaryuk e9b7760eb6 Moved some doctests to unittests. Some code polishing. 2013-03-15 19:49:13 +04:00
Robert Niederreiter f0f4910434 housekeeping 2013-03-15 16:34:42 +01:00
Victor Varvaryuk 828d1c7fdd Added functions to transform chars in string with '\\' + any of r'\,;:' chars into '%{:02X}' form to avoid splitting on chars escaped with '\\'.
Transformed some doctests into unittests.
2013-03-07 13:24:43 +04:00
Victor Varvaryuk 7f4120da4c Returned old folding algorithm, as the current implementation fails in some cases (https://github.com/collective/icalendar/issues/72) 2012-10-25 19:16:33 +04:00
Johannes Raggam c576759a89 only have license information in LICENSE.rst file to reduce visual clutter in source code. follows plone/zope practices. 2012-08-24 13:17:24 +02:00
Johannes Raggam 512f2ddcca declare +IGNORE_WHITESPACE, despide the NORMALIZE_WHITESPACE optionflag in test_doctests module 2012-08-24 12:57:35 +02:00
Robert Niederreiter 4f5f70bd5b endure correct datatype at instance creation time in ``prop.vCalAddress`` and ``prop.vText``. Re-include doctests. 2012-08-23 13:45:16 +02:00
Johannes Raggam 2dae557630 encoding must be set on top of file. and better use utf-8 2012-05-30 15:10:30 +02:00
Stanislav Ochotnicky 605b65969c Add license headers to all python source files
Also add LICENSE file and remove old mention of GPL which was
forgotten when changing license in f469e86
2012-05-30 11:50:26 +02:00
Rok Garbas 401261ebd9 for some reason interlude hangs when installing with pip 2012-05-13 03:15:23 +02:00
Johannes Raggam d0bd4e19e9 add interlude 2012-03-01 21:41:04 +01:00
Johannes Raggam 2781212e0e remove pdb 2012-01-12 18:56:37 +01:00
Johannes Raggam aa7fe2016e unify API - use to_ical and from_ical 2011-09-13 23:42:17 +02:00
Rok Garbas 5bdf664962 fixed tests so they pass, remove *tests* code from reports in coverage 2011-08-17 23:05:22 +02:00
Rok Garbas f85309cd3f making tests run with unittest2 and tox 2011-08-17 21:42:52 +02:00
Wichert Akkerman 2394e7c8eb Add changelog entry 2009-11-26 18:21:54 +00:00
Lennart Regebro 5138b88d0e Fixed the EXDATE bug. 2008-07-11 17:52:08 +00:00
Sidnei da Silva 1db9fa6b42 - Ugh, svn log fooled me.
- Merge missing changes from branch
- Update some docs
2005-11-07 21:07:56 +00:00
Martijn Faassen 3e206410bf Rename 'calendar.py' to 'cal', to present any confusion with the
Calendar class on case-insensitive platforms.
2005-03-23 15:53:53 +00:00
Martijn Faassen dd9006ed53 Rename iCalendar to icalendar. 2005-03-23 15:51:41 +00:00