Commit graph

263 commits

Author SHA1 Message Date
Lars Kiesow
4a0a2663e9
Enable Multiple media:thumbnail Elements
As with media:content, there can be multiple media:thumbnail elements in
an item and in multiple groups. This patch adds the ability to do this
in the same manner as with the content.

Part of #58
2017-05-21 23:56:56 +02:00
Lars Kiesow
4970dab6d7
Enable Multiple media:content/media:group Elements
One item can have multiple media:content elements which may be located
in multiple media:group element to indicate that content is the same but
for the format.

This patch adds the ability to add multiple content elements and define
the group to which they go belong.

If no group is specified, all elements are located in a `default` group.

If the group is set to None, the content element is directly attached to
the item element.

Part of #58
2017-05-21 23:56:35 +02:00
Lars Kiesow
a7ae36cb4f
Remove redundant media from method name
Using `fe.media.media_content(…)` is quite redundant. iThis patch
changes the name to `fe.media.content(…)`. The same goes for the
thumbnail method.

Part of #58
2017-05-21 23:56:12 +02:00
Lars Kiesow
8487af298e
Add Media RSS to RSS
This patch adds the necessary RSS extension to ensure that added Media
RSS elements end up in the resulting RSS XML.

Part of #58
2017-05-21 23:55:49 +02:00
Lukas Rusak
ba5bbd2256
add new media entry extension 2017-03-28 13:22:27 -07:00
Lars Kiesow
9ac741ac0e
Add tests to setup.py
Signed-off-by: Lars Kiesow <lkiesow@uos.de>
2017-03-17 17:50:33 +01:00
Stefan Bisplinghoff
f0c066af0f Unit Tests: Temporary file handles need to be closed explicitly under Windows 2017-03-16 16:33:50 +01:00
Lars Kiesow
f6d11937b4
Added Python 3.6 in Travis
Signed-off-by: Lars Kiesow <lkiesow@uos.de>
2017-03-13 21:04:09 +01:00
Lars Kiesow
688b1d53c4
Fixed flake8 complaint
Signed-off-by: Lars Kiesow <lkiesow@uos.de>
2017-03-13 21:02:38 +01:00
Lars Kiesow
c633fd4d64
Add tests for feedgen:main
This patch adds some tests for the main routine of feedgen.

Signed-off-by: Lars Kiesow <lkiesow@uos.de>
2017-03-13 21:02:02 +01:00
Lars Kiesow
fee00f3337
More Feed Tests
Signed-off-by: Lars Kiesow <lkiesow@uos.de>
2017-03-13 20:57:12 +01:00
Lars Kiesow
8901310fa0
Added Torrent Tests
This patch adds tests for the torrent extension. It also fixes a minor
bug discovered by the new tests.

Signed-off-by: Lars Kiesow <lkiesow@uos.de>
2017-03-13 20:55:14 +01:00
Lars Kiesow
f36ff20898
Update Coverage Command
This command will automatically check the coverage of the whole project
on not only the modules called by the tests.

Signed-off-by: Lars Kiesow <lkiesow@uos.de>
2017-03-13 20:53:04 +01:00
Stefan Bisplinghoff
7706033200 new entries are inserted to the front of the __feed_entries list 2017-03-13 13:17:22 +01:00
Lars Kiesow
84dd4373ae
Fix coveralls badge
Signed-off-by: Lars Kiesow <lkiesow@uos.de>
2017-02-05 23:22:15 +01:00
Lars Kiesow
04f5362a41
Added coveralls badge
Signed-off-by: Lars Kiesow <lkiesow@uos.de>
2017-02-05 23:17:41 +01:00
Lars Kiesow
4c763dc832
Added more tests
Signed-off-by: Lars Kiesow <lkiesow@uos.de>
2017-02-05 22:46:43 +01:00
Lars Kiesow
4314475bfb
Extended test Coverage
This patch extends the test coverage of the unit tests. It also enables
python-coverage and coveralls to track unit test coverage.

There are some additional minor issue fixed discovered during the test
creation.

Signed-off-by: Lars Kiesow <lkiesow@uos.de>
2017-02-05 22:03:02 +01:00
Lars Kiesow
68248e46a0
Fix readme packaging
Signed-off-by: Lars Kiesow <lkiesow@uos.de>
2017-01-05 01:25:31 +01:00
Lars Kiesow
0b06987ccd
Release 0.5.1
- Fixed release issue

Signed-off-by: Lars Kiesow <lkiesow@uos.de>
2017-01-05 01:12:23 +01:00
Lars Kiesow
1873564f14
Release 0.5.0
- Moved to reStructuredText for documentation (readme)
- Adhere to PEP8 (flake8)
- Fixed several minor issues

Signed-off-by: Lars Kiesow <lkiesow@uos.de>
2017-01-05 01:06:57 +01:00
Lars Kiesow
dea81225d1
Added flake8 to TravisCI
Signed-off-by: Lars Kiesow <lkiesow@uos.de>
2017-01-05 00:56:59 +01:00
Lars Kiesow
ed3ebb4db6
Readme as reStructuredText
Sphinx always included the readme file into the generated documentation.
Since Markdown and reStructuredText are not fully compatible, the output
was now partly broken. This moves to reStructuredText only to avoid that
problem.

Signed-off-by: Lars Kiesow <lkiesow@uos.de>
2017-01-05 00:39:48 +01:00
Lars Kiesow
444855a248
Flake8 Compatibility
This patch makes the feedgen flake8 compatible, fixing some minor issues
along the way. Most noticeable, this switches from tabs to spaces.

Signed-off-by: Lars Kiesow <lkiesow@uos.de>
2017-01-05 00:39:33 +01:00
Lars Kiesow
ccf18502bc
Release 0.4.1
- Fixed URI attributes in Atom feeds
- Fixed TOC generation in docs

Signed-off-by: Lars Kiesow <lkiesow@uos.de>
2017-01-05 00:35:06 +01:00
Zhiming Wang
9f4431880e
Rename url to uri in Atom feeds
According to RFC 4287, there is no atom:url element, only atom:uri, so
replace occurrences of atom:url with atom:uri for compliance.

Also rename variables holding atom:uri from email to uri to better
indicate what they actually are.
2016-12-19 01:11:33 -05:00
Lars Kiesow
217e0842d0
Fixed TOC generation of docs
Signed-off-by: Lars Kiesow <lkiesow@uos.de>
2016-09-04 21:51:41 +02:00
Lars Kiesow
edcb01f085
Release 0.4.0
- Added support for custom extensions
- Updated set-up utils
- Added Torrent extensions
- Added support for multiple ITunes (sub-)categories
- Fixed CDATA content

Thanks to all contributors for doing most of the work!

Signed-off-by: Lars Kiesow <lkiesow@uos.de>
2016-09-04 20:31:44 +02:00
Lars Kiesow
2d605c303b
Added note about *_str return type
Signed-off-by: Lars Kiesow <lkiesow@uos.de>
2016-09-04 19:52:55 +02:00
Lars Kiesow
b4400146ea
Fixed Podcast Extension API incompatibility
This patch ensures the compatibility of setting categories for itunes
podcasts even though the new API now supports setting multiple
(sub-)categories.

It also fixes the docs and adjusts them to explicitly mark the old
syntax as deprecated.

Signed-off-by: Lars Kiesow <lkiesow@uos.de>
2016-09-04 18:56:30 +02:00
Lars Kiesow
3d8b9e304b Merge branch 'master' of https://github.com/xaxa/python-feedgen into itunes-category 2016-09-04 17:59:18 +02:00
Lars Kiesow
a9f561bff9
Added unit tests for Itunes extension
Signed-off-by: Lars Kiesow <lkiesow@uos.de>
2016-09-04 17:49:07 +02:00
Lars Kiesow
0246d8d1c8
Fixed help output
Signed-off-by: Lars Kiesow <lkiesow@uos.de>
2016-09-04 16:02:17 +02:00
Lars Kiesow
34b9c6f5ca
Reset description
Signed-off-by: Lars Kiesow <lkiesow@uos.de>
2016-09-04 15:59:18 +02:00
Lars Kiesow
26b40e6c91 Merge branch 'master' of https://github.com/raspbeguy/python-feedgen into torrent 2016-09-04 15:53:24 +02:00
Lars Kiesow
df164b37db
Fixed documentation
Signed-off-by: Lars Kiesow <lkiesow@uos.de>
2016-08-29 01:07:42 +02:00
Lars Kiesow
44cd92837d
Update distribution setup
Signed-off-by: Lars Kiesow <lkiesow@uos.de>
2016-08-29 00:33:10 +02:00
Lars Kiesow
d5e89ef807 Merge branch 'master' of https://github.com/nicktimko/python-feedgen 2016-08-28 23:49:51 +02:00
Lars Kiesow
a4bb937839
Fixed readme header
Signed-off-by: Lars Kiesow <lkiesow@uos.de>
2016-08-28 21:25:53 +02:00
Lars Kiesow
e571ab88c9
Updated extension documentation
Signed-off-by: Lars Kiesow <lkiesow@uos.de>
2016-08-28 21:24:01 +02:00
Lars Kiesow
303e74dc7a
Fixed registration of custom extensions
This fixes some minor problems with the pull request from jvanasco so
that it may be included into the next release:

- Only one extension registry is used internally and custom extensions
  do not have to be stored two times.
- Fix the bug that entry extensions were loaded for feeds.
- Do not fail if there is only a feed extension.
- Extensions for entries do not need a feed extension class.

Signed-off-by: Lars Kiesow <lkiesow@uos.de>
2016-08-28 20:54:11 +02:00
Lars Kiesow
1a2c032654 Merge branch 'feature-load_extension' of https://github.com/jvanasco/python-feedgen into custom-extensions 2016-08-28 19:11:13 +02:00
Lars Kiesow
95f3cb9fbe Added Python 3.5 as test target 2016-08-28 18:11:10 +02:00
Lars Kiesow
4460574f30 Merge branch 'master' of https://github.com/russel1237/python-feedgen
This pull request fixes the problem that right now, if you select
content type CDATA for atom feed like this:

  feed_entry.content('content', type="CDATA")

it raises a TypeError: Argument must be bytes or unicode, got 'dict'.
2016-08-28 17:54:35 +02:00
Nick Timkovich
aa283aaab1 Merge pull request #1 from nicktimko/travis-test-wheel
Build and test wheel
2016-06-01 21:55:49 -05:00
Nick Timkovich
a76a56e739 Compensate for no -I on <3.4 by just deleting the source dir for tests 2016-06-01 21:46:18 -05:00
Nick Timkovich
743f9e4221 Fix .travis.yml settings 2016-06-01 21:39:54 -05:00
Nick Timkovich
542dade8fa Build and test wheel 2016-06-01 21:33:23 -05:00
Nick Timkovich
2e2c23d9ae Add code to make wheels 2016-06-01 21:20:28 -05:00
Nick Timkovich
867e1c26fe Replace dateutils with python-dateutil 2016-06-01 20:50:48 -05:00