Fixes the deprecation warnings resembling the following:
Installing 'icalendar.tests.hypothesis' as data is deprecated, please list it in `packages`.
!!
############################
# Package would be ignored #
############################
Python recognizes 'icalendar.tests.hypothesis' as an importable package,
but it is not listed in the `packages` configuration of setuptools.
'icalendar.tests.hypothesis' has been automatically added to the distribution only
because it may contain data files, but this behavior is likely to change
in future versions of setuptools (and therefore is considered deprecated).
Please make sure that 'icalendar.tests.hypothesis' is included as a package by using
the `packages` configuration field or the proper discovery methods
(for example by using `find_namespace_packages(...)`/`find_namespace:`
instead of `find_packages(...)`/`find:`).
You can read more about "package discovery" and "data files" on setuptools
documentation page.
This is one of two possible solutions. The other option is to add
__init__.py files to all subdirectories of icalendar/tests.
* 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.
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
setuptools is shipped with Python, no need to include it as a requirement.
Further, it is not used by the icalendar package, but only by setup.py.
setuptools is imported by setup.py _before_ dependencies have been installed.