Commit graph

150 commits

Author SHA1 Message Date
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
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
0246d8d1c8
Fixed help output
Signed-off-by: Lars Kiesow <lkiesow@uos.de>
2016-09-04 16:02:17 +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
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
raspbeguy
94eabab02d Fixed torrent, added test and doc 2016-05-24 23:56:32 +02:00
raspbeguy
6076574150 fixed torrent ext, but still not doing what we want 2016-05-24 17:45:38 +02:00
raspbeguy
2b597a6dee finished torrent ext 2016-05-24 15:48:18 +02:00
raspbeguy
6b7c44eeb3 Creation of torrent extention 2016-05-24 00:46:11 +02:00
xaxa
086d51c555 changes to support multiple itunes (sub)categories 2016-03-21 11:38:44 -03:00
jonathan vanasco
4f48bc1213 allowing pluggable extensions 2016-03-08 22:46:07 -05:00
Russel Mahmud
5724c569b1 Fix atom content type CDATA 2016-03-03 15:26:55 +06:00
Lars Kiesow
9b6e3cb45e
Fix Python 2 Unicode Problem
When piping to stdout the special handling for Pthon 3 will cause
problems in Python 2 and produce an Unicode encoding error. This commit
separates the output handling of both Python versions.

Signed-off-by: Lars Kiesow <lkiesow@uos.de>
2016-01-01 19:31:00 +01:00
julien
5caebc220c ref https://github.com/lkiesow/python-feedgen/issues/34
ref https://github.com/OnroerendErfgoed/postregistratie/issues/398
2015-12-03 16:57:30 +01:00
Lars Kiesow
345c0edf09
Release 0.3.2
- Syndication extension
- Remove six dependency
- Fix typo, schema to scheme
- Fixed Localized Time Formatting Issues
- Added Support for XML Declaration

Signed-off-by: Lars Kiesow <lkiesow@uos.de>
2015-10-29 23:14:55 +01:00
Lars Kiesow
86a8b69233
Fix Python 3 Test Issues
Signed-off-by: Lars Kiesow <lkiesow@uos.de>
2015-10-29 00:39:57 +01:00
Lars Kiesow
abfd566c5b
Fixed #28, Added Support for XML Declaration
All XML generation methods now have an optional argument
`xml_declaration` which, set to True, will add an XML declaration to the
output. By default, the argument is set to True.

Signed-off-by: Lars Kiesow <lkiesow@uos.de>
2015-10-29 00:04:16 +01:00
Lars Kiesow
9819fd98b3
Fixed #26, Fixed Localized Time Formatting Issues
Signed-off-by: Lars Kiesow <lkiesow@uos.de>
2015-10-28 23:20:51 +01:00
Lars Kiesow
303c047697
Merge branch 'fixDomainOnCategory' of https://github.com/pzelnip/python-feedgen
Signed-off-by: Lars Kiesow <lkiesow@uos.de>
2015-10-28 23:05:49 +01:00
Lars Kiesow
eca772f0b6
Merge branch 'for-pr-omitsix' of https://github.com/masayuko/python-feedgen
Signed-off-by: Lars Kiesow <lkiesow@uos.de>
2015-10-28 23:00:06 +01:00
Lars Kiesow
553a02cd56
Merge branch 'for-pr-fixtypo' of https://github.com/masayuko/python-feedgen
Signed-off-by: Lars Kiesow <lkiesow@uos.de>
2015-10-28 22:42:22 +01:00
Lars Kiesow
99e4ed856a
Merge branch 'syndication_extension' of https://github.com/ksato9700/python-feedgen
Signed-off-by: Lars Kiesow <lkiesow@uos.de>
2015-10-28 22:30:25 +01:00
Adam Parkin
0aee3fd407 Fixed domain not being set on RSS 2015-10-27 08:50:13 -07:00
IGARASHI Masanao
2f3c7dfe85 Fix typo, schema to scheme 2015-04-25 07:06:14 +09:00
IGARASHI Masanao
206e72cc23 Remove six dependency 2015-04-24 21:43:29 +09:00
Ken Sato
e4149d5c00 add syndication extension 2015-03-08 18:39:18 +09:00
Lars Kiesow
bf8d0729f6
Release 0.3.1
- Python 3 compatibility
 - Test updates
 - Encoding support

Signed-off-by: Lars Kiesow <lkiesow@uos.de>
2015-01-16 17:05:54 +01:00
Lars Kiesow
7d1bda868d
Fixed #24 Categories For Feed Entries
Signed-off-by: Lars Kiesow <lkiesow@uos.de>
2015-01-03 23:27:52 +01:00
Vincent Driessen
626d9df6c4 Add Python 3 compatibility. 2015-01-03 22:34:33 +01:00
wltb
72b2896cf8 Add encoding argument for output creation functions, change default encoding to unicode 2015-01-03 22:14:59 +01:00
Lars Kiesow
8e0ed2df8b
Release 0.3.0
- Fixed several minor bugs
 - Code cleanup of extensions (API change!)
 - Added unit tests

Thanks to all contributors!

Signed-off-by: Lars Kiesow <lkiesow@uos.de>
2014-07-20 23:57:29 +02:00
Lars Kiesow
36a16fe725
Merge branch 'master' of https://github.com/shon/python-feedgen
This merges in a pull request by Shekhar, adding support for CDATA
content:

---

If type specified CDATA content won't be escaped. This makes it easier
for RSS publishers and readers. Also adheres CDATA recommendation at
http://www.rssboard.org/rss-profile#element-channel-item-description

---

Signed-off-by: Lars Kiesow <lkiesow@uos.de>
2014-07-20 23:29:12 +02:00
Lars Kiesow
ff1f40a6cd
Fixing some small test issues
This fixes some small issues with the unit tests and adding a test case
to the Makefile so that all tests can easily be invoked by running:

  make test

Signed-off-by: Lars Kiesow <lkiesow@uos.de>
2014-07-20 22:55:25 +02:00
Lars Kiesow
858abbf79b
Merge branch 'master' of https://github.com/snipem/python-feedgen
This merges in a pull request by snipem brining in some unit tests and
bug fixes:

---

Unit tests

I've created unit tests for the module, especially for feeds and
entries. Whilst entry tests aren't fully implemented yet, unit test
cases for feed creation are complete and working. They cover the
creation of a full blown feed in Atom and RSS.

Bugs fixed

Thanks to the unit test cases, I was able to discover three bugs
concerning the fields domain, ttl and skipHours. According to the
lastest test results, they are resolved and working with both Python 2
and Python 3.

Travis support

Additionally, I've added Travis support. Which is a Continuous
Integration platform powering Github.

---

Signed-off-by: Lars Kiesow <lkiesow@uos.de>
2014-07-20 22:54:32 +02:00
Lars Kiesow
ae760d0463
Fixed some fields of the DC extension
Signed-off-by: Lars Kiesow <lkiesow@uos.de>
2014-07-20 22:19:17 +02:00
Shekhar
5353f3ede5 support for CDATA content
If type specified CDATA content won't be escaped. This makes it easier
for RSS publishers and readers.
Also adheres CDATA recommendation at http://www.rssboard.org/rss-profile#element-channel-item-description
2014-06-20 10:05:34 +05:30
snipem
0907e993e4 Fix skipHours for Python 3
The xrange function isn’t available in Python 3. The range function
however is doing the same job and is working for both Python 2 and
Python 3.
2014-06-02 23:08:50 +02:00
snipem
9213c3057e Fix domain and ttl bugs for RSS generation
In the context of RSS cloud domain was spelled incorrectly as ‚donain‘
which resulted in an error while unit testing. Additionally, also in
RSS ttl (Time to live) wasn’t transformed to a string.
2014-06-02 22:47:45 +02:00
snipem
da06835e8b Added unit test cases for extension loading
Also fixed bugs regarding the upcoming feed.py fix
2014-06-02 22:45:15 +02:00
snipem
d2bbc87f6c Added test cases for all elements and travis support 2014-06-01 13:39:37 +02:00
snipem
90ab565a4a Unit test for feed creation
Tests feed object, atom and rss string
2014-06-01 00:27:35 +02:00
wltb
eab1f874f2 podcast: Update docstring, remove legacy x=x code 2014-05-12 19:04:55 +02:00
wltb
cddff68f37 dc: Centralize XML extension 2014-05-12 18:53:39 +02:00
Lars Kiesow
1d0d13fdc6
Fixed some typos 2014-05-11 20:24:48 +02:00
Lars Kiesow
d6cbfdb81c
Fix issues with python3
The introduced way of printing things in python3 would work for byte
arrays but not for simple strings. This patch fixes this issue.

Signed-off-by: Lars Kiesow <lkiesow@uos.de>
2014-05-11 19:53:29 +02:00
Lars Kiesow
a787b22b7f Merge branch 'master' of https://github.com/snipem/python-feedgen into merge-test 2014-05-11 18:04:24 +02:00
snipem
966b7f200b Added Python 3 compatibility
Exchanged iteritems() for item() and added helper function for printing
2014-05-07 21:22:55 +02:00
wltb
bf6b8af249 Feed Creation: Add a separate extension call for namespace stuff. Change extensions accordingly.
Entry creation: Entries create their own XML Element, which is put into the feed by the caller
2014-05-06 10:43:39 +02:00
Lars Kiesow
1e9cf23f65 Merge branch 'patch-1' of https://github.com/tekromancr/python-feedgen 2014-05-05 23:42:49 +02:00
George Griffin
cdaef2dd4b Fixes return on FeedGenerator.copyright() 2014-05-05 00:54:02 -04:00
wltb
2e7b343857 Add content namespace and semantics for RSS 2014-05-01 01:28:09 +02:00
wltb
c2197dd368 File output:
Added parameter for pretty print. Pass the file parameter directly to lxml.
2014-04-21 22:37:05 +02:00
wltb
b3fb2ba777 Implement action for items in the dc extension. 2014-04-21 17:54:38 +02:00
Lars Kiesow
d7d7b82f55 Release 0.2.8
Fixed documentation issues with last release
2014-01-01 19:06:45 +01:00
Lars Kiesow
0a83aa0d97 Release 0.2.7
Inclused some bugfixes.
2014-01-01 17:02:24 +01:00
Nico Gulden
262a0137e1 Fixed NameError: global name 'updated' is not defined
Fixes traceback
lib/python2.7/site-packages/feedgen/feed.py", line 447, in lastBuildDate
return updated( lastBuildDate )
NameError: global name 'updated' is not defined
2013-12-23 12:19:33 +01:00
Lars Kiesow
e34d9c5693 Docstring cleanup 2013-12-01 19:42:55 +01:00
Jimmy
ec4aa780c2 author is not required by rss. 2013-11-30 22:11:22 +01:00
Jimmy
b4a68f431d Make 'alternate' to the default rel value. 2013-11-30 22:10:14 +01:00
Jimmy
ca860363e8 Support for default values to ensure_format. 2013-11-30 22:07:28 +01:00
Lars Kiesow
eb5c285952 Fixed bug with non-existing type attributes 2013-09-29 19:48:33 +02:00
Lars Kiesow
6b2a2a5232 Fixed <published> attribute in Atom feed entries 2013-09-28 01:19:04 +02:00
Lars Kiesow
8b18122cfd Support of different types of content
Now the content element now supports the type attribute and the content
is encoded accordingly:
 - text and html are escaped
 - xhtml is surrounded with a div and then included as XML
 - XML is directly included
 - base64 support was *not* added. Please file a bug if you need it
2013-09-28 01:00:11 +02:00
Lars Kiesow
ea6f9626a3 Release 0.2.6 2013-09-23 14:49:33 +02:00
Lars Kiesow
8b87fa67ad Fixed issue with alternate link instead of content for atom entries
...won't let me generate atom entries without a content tag even though
I have a correct link tag...
2013-09-23 14:35:59 +02:00
Lars Kiesow
647d96881e Fixed Issue #5: Removed debug leftover 2013-09-23 14:28:01 +02:00
meteozond
d9b19f8536 Fixed podcast itunes image 2013-08-15 12:55:09 +04:00
Lars Kiesow
8b99518a40 release 0.2.5 2013-07-22 00:40:36 +02:00
DarDar
5b613c49ab Use datetime instead of datetime.datetime
There is "from datetime import datetime" in beginning of the file.
Thus the "datetime.datetime" should be checked as "datetime".
2013-07-21 21:19:39 +02:00
emacsen
29838e1f71 Fix typo found in enclosure function 2013-07-14 11:43:41 -04:00
Lars Kiesow
7981ce5884 dc: ready to use 2013-05-29 20:40:43 +02:00
Lars Kiesow
c9e07f3e0c renamed dc elements extension to dc 2013-05-29 13:55:53 +02:00
Lars Kiesow
c885652153 finished dc elements extension for feed 2013-05-29 13:54:54 +02:00
Lars Kiesow
095af7c57a Started working on Dublin Core Elements extension 2013-05-27 18:12:14 +02:00
Lars Kiesow
4a7e7ad83c improved error messages 2013-05-20 14:23:21 +02:00
Lars Kiesow
d2a3fa62ff release 0.2.4 2013-05-16 19:31:40 +02:00
Lars Kiesow
950e2f909d included version in docs and setup 2013-05-16 19:30:29 +02:00
Lars Kiesow
66689be7ff Proper initialization 2013-05-16 19:04:03 +02:00
Lars Kiesow
dd0d742e6d Fixed return type of base extension 2013-05-16 18:32:32 +02:00
Lars Kiesow
0aecfe2008 new release 2013-05-14 18:20:37 +02:00
Lars Kiesow
0a38947252 Changed RFC822 dates 2013-05-14 18:15:58 +02:00
Lars Kiesow
f47783cfb0 Fixed that ValueError was not raised 2013-05-14 17:53:18 +02:00
Lars Kiesow
3044c782e5 Fixed xml generation of entry 2013-05-14 17:46:21 +02:00
Lars Kiesow
c56f8a52aa Fixed string check 2013-05-13 17:50:03 +02:00
Lars Kiesow
8086f2112e fixed docstrings 2013-05-13 17:48:51 +02:00
Lars Kiesow
bdd309fc2b fixed docstring for sphinx 2013-05-13 15:48:20 +02:00
Lars Kiesow
9a17daad30 Fixed problems with subpackage in setup.py 2013-05-05 23:00:44 +02:00
Lars Kiesow
acf49df097 Fixed version problems 2013-05-05 22:51:22 +02:00
Lars Kiesow
9df7e9dc48 Documentation for extension system 2013-05-05 20:36:35 +02:00
Lars Kiesow
840dc7e5b8 Added extension support and converted PodcastGenerator to extension 2013-05-05 18:17:44 +02:00
Lars Kiesow
671841be6d removed shebang from library files 2013-05-05 00:05:11 +02:00
Lars Kiesow
66f8f3d8e9 renamed feedgenerator to feedgen 2013-05-04 22:54:43 +02:00
Lars Kiesow
e1a5a8e7a0 renamed feedgenerator to feedgen (files) 2013-05-04 22:45:24 +02:00