Commit graph

254 commits

Author SHA1 Message Date
Henry Walshaw
8cd50bf768 Add unit tests for simple GeoRSS
Also fix a couple of bugs that came up during testing - mostly making
sure that elevation, floor and radius are actually set as strings in
the XML
2019-07-08 14:58:21 +10:00
Henry Walshaw
d32487f2ed Separate extensions as their own files
Give each extension its own test file. Primarily this is done to make
it easier to add some fixtures and extend the geo tests.
2019-07-08 13:49:56 +10:00
Henry Walshaw
8d413f576f Add a geom_from_geo_interface method for GeoRSS Entry
A standard way for different geometry libraries in Python to be
interoperable is a `__geo_interface__` for the geometry (see the
specification: https://gist.github.com/sgillies/2217756). This
includes the shapely library, geometries from QGIS, and geometries in
Esri's arcpy libraries for ArcGIS desktop and ArcGIS pro.

To make it easier to generate a georss entry a simple method which
does the conversion (of the supported geometries only) and sets the
appropriate geometry type.

This includes a custom error for the geometry being incompatible and a
custom warning for a polygon with interior holes. This is done to
store the geometries on the exception / warning if required for
debugging.
2019-07-08 13:38:39 +10:00
Henry Walshaw
642862bb2b Update simple GeoRSS to complete the specification
Originally the georss entry only contained a simple point
specification. Update to include:

- other geometries (line, polygon and box)
- additional properties (featuretypetag, relationshiptag, featurename)
- elevation (elev, floor)
- radius (radius)

This also includes basic type checking with a value error for the
elev, floor and radius tags.
2019-07-08 12:36:16 +10:00
Henry Walshaw
3b557d364a Add IDE and gesting artifacts to the gitignore file 2019-07-08 12:30:44 +10:00
Lars Kiesow
2beefb5126
Update Documentation
This patch updates the wording on the main documentation page.
2018-12-14 23:55:36 +01:00
Lars Kiesow
c60fae476d
Merge Pull Request #83: Another typo 2018-12-14 23:40:12 +01:00
Lars Kiesow
38285a178e
Merge Pull Request #82: Fix typo 2018-12-14 23:38:08 +01:00
Lars Kiesow
640231b23a
Drop Python 3.3
Python 3.3 reached end-of-life on 2017-09-29. Since it's now causing
problems with Travis builds, this patch is dropping that version from
builds.
2018-12-14 23:35:48 +01:00
Michael Scherer
0871b48b38
Another typo 2018-12-14 15:17:32 -05:00
Michael Scherer
9d6827dedd
Fix typo 2018-12-14 14:50:36 -05:00
Lars Kiesow
c6c7165a97
Add Source Element to Feed Entries
This patch implements the source element for feed entries/items. Note
that only the set of RSS elements (URL and title) are implemented right
now. ATOM supports additional elements which cannot be set at the
moment.

This fixes #79
2018-08-12 21:07:47 +02:00
Lars Kiesow
1b301f67ad
Fix typo in docstring 2018-08-12 21:07:15 +02:00
Lars Kiesow
224e2a1959
Update ATOM specification link 2018-08-12 21:05:56 +02:00
daryl herzmann
cfaeb68898
allow CDATA content to go to RSS description
This allows feed entry `content` specified with `type="CDATA"` to be translated to RSS description with CDATA specified
2018-07-07 21:27:22 -05:00
Unit 193
9da6b17ca2 Fix a few typos.
deprected → deprecated
instanciate → instantiate
repostiory → repository
ressource → resource
2018-07-04 03:29:15 -04:00
NoSuck
e3a3d053d4
Missing “set”
Thanks for taking time to make good documentation.
2018-06-03 02:46:37 -04:00
Lars Kiesow
15dfb77870
Release 0.7.0
- New spec file based on Fedora packaging
- Parameter to define the order of feed entries
- Added GeoRSS extension
- Fixed pubDate name
2018-05-19 21:47:28 +02:00
Lars Kiesow
5b0a4049c6
Disable sudo on Travis
This patch disables sudo on Travis to enable faster builds.
2018-05-19 21:28:49 +02:00
Lars Kiesow
d6e02af098
Merge branch 71-pubDate 2018-05-19 21:21:33 +02:00
Lars Kiesow
7a053dc74c
Consistent method naming
This patch renames the entries `pubdate` method to `pubDate` to be
consistent with the feed's method as well as the documentation. Note
that for now, the old method is preserved as well but is marked as
deprecated and to be removed.

This fixes #71
2018-04-29 21:11:30 +02:00
Lars Kiesow
27e9cd0c9a
Fixed GeoRSS Extemsion
This patch fixes a few issues with pzll request #66 which adds supprt
for a simple GeoRSS extension.
2018-03-04 22:55:57 +01:00
Lars Kiesow
2d9e85d956 Merge branch 'bobbrez/add-simple-georss' of https://github.com/bobbrez/python-feedgen 2018-03-04 22:44:38 +01:00
Lars Kiesow
45189d06ed
Fixed indentation of pull request #70
The patch mixed tabs and spaces…
2018-03-04 22:33:33 +01:00
Lars Kiesow
e2a8c43e64
Merge branch 'master' of https://github.com/arne-cl/python-feedgen 2018-03-04 22:29:14 +01:00
Lars Kiesow
1da5e4feef
Merge branch 'new_specfile' of https://github.com/frenzymadness/python-feedgen 2018-03-04 22:23:09 +01:00
Lars Kiesow
fccb05f151
Merge branch 'master' of https://github.com/EdwardBetts/python-feedgen 2018-03-04 20:16:01 +01:00
Lars Kiesow
dd15d63fbc
Fix Travis Builds
This patch fixes the Travis builds which were broken due to new Flake8
versions which complained about previously accepted code.
2018-03-04 20:10:01 +01:00
Lars Kiesow
9026316391
Use isort to sort import
…so that they all have the same structure.
2018-03-04 20:05:29 +01:00
Edward Betts
95d6fd3065 Correct spelling mistakes. 2018-03-04 09:52:55 +00:00
Arne Neumann
6aead0a7ac added order parameter to add_entry()
Commit 7706033200 changed the order
in which new entries are added to a feed. This commit allows the
user to choose the order herself.
2017-10-27 12:44:37 +02:00
Lumir Balhar
917278b568 New specfile approved for Fedora 2017-10-25 16:54:56 +02:00
Lars Kiesow
c92a340f88
Release 0.6.1
- Fixed release issue
2017-10-14 21:42:14 +02:00
Lars Kiesow
07073ec0b7
Release 0.6.0
- MediaRSS support
- New entries are now rendered first
- Python 3.6 support and testing
- Add permalink attribute to RSS guid
- Lots of tests and minor fixes
2017-10-14 21:32:32 +02:00
Lars Kiesow
9f05e108b5
Merge branch 'issue-60-guid-permalink-attr' 2017-10-14 21:24:09 +02:00
Lars Kiesow
5a01d0aa47
Merge branch 'issue-59-no-author-name' 2017-10-14 21:23:40 +02:00
Lars Kiesow
ebb44be9b2 Make Author's Name Optional
RSS does not require an author's name, but only his email address. This
patch makes the name optional for RSS. Note that the name is required in
ATOM feeds and an author will not be included if the name is missing.

This fixes #59
2017-10-14 19:58:37 +02:00
Lars Kiesow
281765fefd
Add Permalink Attribute To RSS GUID
The `isPermalink` attribute can now be set using the `guid()` function
for entries. Note that this only effects RSS feeds. This patch does not
change Atom feeds in any way.

This fixes #60
2017-10-14 19:51:02 +02:00
Lars Kiesow
8a65719dc4
Add Link To Entry Example
This improves the feed entry example so that it will generate a valid
feed entry.

This fixes #63
2017-10-14 19:33:14 +02:00
Bob Breznak
ae5759d133 Better format Geo and GeoEntry. Add test for Geo Extension 2017-09-12 15:50:05 -04:00
Bob Breznak
c0a1acc18c Add Simple GeoRSS support 2017-09-12 10:50:26 -04:00
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