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
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
a6300a13ab
Added dateutil requirement for travis
...
python-dateutil was missing for a clean install of the module
2014-06-02 22:55:25 +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
8e06d8e41f
typo
2014-04-21 17:56:13 +02:00
wltb
b3fb2ba777
Implement action for items in the dc extension.
2014-04-21 17:54:38 +02:00
O. Emmerson
b5d0d4ba38
Make pip install dependancies.
...
Pip was not installing the dependancies with 'requires' in setup.py.
Using 'install_requires' instead fixes this.
2014-02-11 17:03:47 +00:00
Lars Kiesow
607e3eae58
New RPMs for v0.2.8
2014-01-01 19:45:34 +01: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
Lars Kiesow
875fe86a9d
Merge pull request #8 from ngulden/master
...
Fixed NameError: global name 'updated' is not defined
2014-01-01 07:55:14 -08: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
30b61940b7
New RPMs for v0.2.6
2013-09-23 16:06:32 +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
Lars Kiesow
5b6b1fe6fc
Merge pull request #4 from meteozond/master
...
Fixed podcast itunes image
2013-08-15 06:20:51 -07:00
meteozond
7e63289135
Merge branch 'master' of https://github.com/meteozond/python-feedgen
...
Conflicts:
feedgen/ext/podcast.py
feedgen/ext/podcast_entry.py
2013-08-15 12:56:58 +04:00
meteozond
d9b19f8536
Fixed podcast itunes image
2013-08-15 12:55:09 +04:00
meteozond
0c262455e9
Fixed podcast itunes image
2013-08-15 12:34:02 +04:00
Lars Kiesow
4c5a7d1d94
New RPMs for v0.2.5
2013-07-22 01:08:26 +02:00
Lars Kiesow
8b99518a40
release 0.2.5
2013-07-22 00:40:36 +02:00
Lars Kiesow
23ef412fcb
Merge pull request #2 from DarDar/patch-1
...
Use datetime instead of datetime.datetime
2013-07-21 15:27:12 -07: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
Lars Kiesow
f88889283d
Merge pull request #1 from emacsen/master
...
Fix typo
2013-07-14 14:38:20 -07: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