Lars Kiesow
ffe3e4d752
Release 0.9.0
...
- Prevent XML Denial of Service Attacks
- Make Generator Optional (Atom)
- Properly Parse text/xml
- Add support for html summaries for Atom feeds
2020-01-28 17:58:13 +01:00
Lars Kiesow
2b77fd58eb
Introduce Bandit Security Linter
...
This patch introduces the bandit security linter as part of the CI tests
run on feedgen.
2020-01-28 17:50:53 +01:00
Lars Kiesow
f57a01b20f
Merge pull request from GHSA-g8q7-xv52-hf9f
...
Prevent XML Denial of Service Attacks
2020-01-28 17:49:08 +01:00
Lars Kiesow
0eb12f9133
Prevent XML Denial of Service Attacks
...
This patch prevents entity expansion for provided XML content to guard
against XML denial of service attacks like XML bomb or Billion laughs
attack.
2020-01-28 17:29:11 +01:00
Lars Kiesow
9440ccaffe
Update Python Versions
...
This patch updates the Python versions to test against, dropping the now
officially unsupported Python 2.7.
2020-01-25 22:27:58 +01:00
Lars Kiesow
e942a0839e
Documentation Update
...
Just updating a few minor bits of the documentation.
2020-01-25 22:21:05 +01:00
Lars Kiesow
771b45021b
Add Security Policy
...
This patch adds a security policy stating how to handle and repost
security issues found in this library.
2020-01-25 21:39:55 +01:00
Lars Kiesow
5a68e682d9
Make Generator Optional (Atom)
...
This patch makes the field generator optional in Atom, allowing to set
an empty string to disable the element in the same way it is disabled in
RSS already:
```python
# disable generator element
fg.generator('')
```
This fixes #89
2020-01-25 18:26:52 +01:00
Lars Kiesow
26b64ca9fc
Properly Parse text/xml
...
This patch fixes the problem that content with the MIME type `text/xml`
is accidentally treated as text rather than as XML.
2020-01-25 18:12:56 +01:00
Carey Metcalfe
d1e77c78ee
Use more appropriate exception class for unimplemented functionality
2019-11-25 23:19:41 -05:00
Carey Metcalfe
e771488854
Add support for html summaries for Atom feeds
...
- Add a test
- Update existing test
- Make flake8 happy
2019-11-25 23:18:41 -05:00
Lars Kiesow
edd988f8a6
Automated License Check
...
This patch adds a license checker to the automated tests. This ensures
that only dependencies with licenses from a list of known good licenses
are used.
2019-10-19 00:03:52 +02:00
Lars Kiesow
9e3146f2ab
Release 0.8.0
...
- Implement complete GeoRSS specification
- Allow CDATA content in RSS description
- Add source element to feed entries
- Fixed a number of typos
2019-09-08 12:20:13 +02:00
Lars Kiesow
d133e1c575
Merge branch 'extend_geoms_for_geo' of https://github.com/om-henners/python-feedgen into om-henners-extend_geoms_for_geo
2019-08-11 23:11:30 +02:00
Lars Kiesow
ff236964ef
License Formatting
2019-08-11 23:04:17 +02:00
Lars Kiesow
b6a60c7883
Add requirements.txt
2019-08-11 22:55:27 +02:00
Lars Kiesow
8e5e8845af
Update Documentation
...
- Update Fedora installation instructions
- Use HTTPS for links
2019-08-11 22:45:27 +02:00
Lars Kiesow
ca25295ac3
Update Python Versions
...
This patch drops tests of the rather dated Python 3.4 and 3.5 while
simultaneously adding tests for Python 3.7 and updating the build and
test environment.
2019-08-11 22:38:27 +02:00
Henry Walshaw
66f8bdb45e
Fix errors from make test
...
One Python 2.7 error in the test (didn’t work for points)
Also fixed all the formatting errors raised by flake8
2019-07-29 10:24:02 +10:00
Henry Walshaw
9586e7bcf1
Add a unit test to confirm all coordinates
...
Make sure that all the required coordinates are in the GeoRSS string,
to avoid the mistake made earlier.
2019-07-08 15:39:33 +10:00
Henry Walshaw
b02278e536
Fix a really dumb formatting issue for the geom_interface
...
Use the old formatting tag instead of the new when creating geom text
from the geo_interface. Tests updated as well
2019-07-08 15:16:20 +10:00
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