• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

anqxyr / mkepub
99%
master: 99%

Build:
Build:
LAST BUILD BRANCH: set-cover-arg-extension
DEFAULT BRANCH: master
Repo Added 01 Nov 2016 03:13PM UTC
Files 2
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH set-cover-arg-extension
branch: SELECT
CHANGE BRANCH
x
  • No branch selected
  • PR#3
  • master
  • v1.0
  • v1.1
  • v1.2

pending completion
52

Pull #11

travis-ci

web-flow
Add optional `extension` keyword argument to set_cover()

Previously, set_cover() would rely on the Python standard module
`imghdr` to determine the type of the specified cover image file.
Unfortunately, imghdr does not support SVG, so set_cover() could
not handle that type (which is permitted by the EPUB spec).

Detecting SVG files programmatically is nontrivial, and is generally
considered to require parsing the file source.

Instead, simply provide an option for the client to specify the file
type with the new keyword argument.
Pull Request #11: Add optional `ext` keyword argument to `set_cover()`

4 of 4 new or added lines in 1 file covered. (100.0%)

97 of 98 relevant lines covered (98.98%)

1.98 hits per line

Relevant lines Covered
Build:
Build:
98 RELEVANT LINES 97 COVERED LINES
1.98 HITS PER LINE
Source Files on master
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
52 set-cover-arg-extension Add optional `extension` keyword argument to set_cover() Previously, set_cover() would rely on the Python standard module `imghdr` to determine the type of the specified cover image file. Unfortunately, imghdr does not support SVG, so set_cover()... Pull #11 14 Oct 2019 02:35AM UTC web-flow travis-ci pending completion  
50 master Merge pull request #10 from elebow/add-test-log-to-gitignore Add test.log to .gitignore push 12 Oct 2019 07:17AM UTC web-flow travis-ci pending completion  
49 master Merge pull request #12 from elebow/support-dcterms Add dcterms to package.opf template push 12 Oct 2019 07:12AM UTC web-flow travis-ci pending completion  
48 support-dcterms Merge branch 'master' into support-dcterms Pull #12 12 Oct 2019 07:09AM UTC web-flow travis-ci pending completion  
47 master Merge pull request #9 from elebow/exclude-tests-from-coverage.py Exclude mkepub/tests/* from coverage.py push 12 Oct 2019 07:03AM UTC web-flow travis-ci pending completion  
46 master Merge pull request #8 from elebow/image-mediatype-svg-xml Use `image/svg+xml` media-type for SVG files. push 12 Oct 2019 07:01AM UTC web-flow travis-ci pending completion  
45 support-dcterms Add dcterms to package.opf template The EPUB spec allows for Dublin Core metadata terms. This commit adds support for them to the package.opf template. No API change is necessary—all metadata is already passed through to the template. It is the... Pull #12 12 Oct 2019 03:50AM UTC web-flow travis-ci pending completion  
44 add-chapter-alias-for-add-page Add add_chapter() as alias for add_page This provides the option for a more natural-sounding API when generating books. Pull #13 12 Oct 2019 03:47AM UTC web-flow travis-ci pending completion  
42 set-cover-arg-extension Add optional `ext` keyword argument to set_cover() Previously, set_cover() would rely on the Python standard module `imghdr` to determine the type of the specified cover image file. Unfortunately, imghdr does not support SVG, so set_cover() could... Pull #11 12 Oct 2019 02:47AM UTC web-flow travis-ci pending completion  
41 add-test-log-to-gitignore Add test.log to .gitignore Pull #10 12 Oct 2019 01:10AM UTC web-flow travis-ci pending completion  
See All Builds (37)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc