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

ppannuto / python-titlecase / 78 / 2
83%
master: 83%

Build:
Build:
LAST BUILD BRANCH: actions
DEFAULT BRANCH: master
Ran 12 Jun 2020 03:23PM UTC
Files 2
Run time 11s
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

12 Jun 2020 03:21PM UTC coverage: 82.927%. First build
78.2

push

travis-ci

ppannuto
setup.py: Read version from __init__.py to avoid importing the module

The module import happens before setup() is executed, and therefore,
none of the modules specified in 'setup_requires' (or 'install_requires',
for that matter) are loaded at that moment, causing the import to fail
with ModuleNotFoundError.

Following the first recommendation from the 'Single-sourcing the
package version' section of the Python Package User Guide [1], in this
commit we switch to reading the version string from the '__init__.py'
file instead of attempting to import the module.

[1]: https://packaging.python.org/guides/single-sourcing-package-version/

---

Also includes updates in patch at
https://github.com/ppannuto/python-titlecase/pull/54#issuecomment-643048143

136 of 164 relevant lines covered (82.93%)

0.83 hits per line

Source Files on job 78.2
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 74
  • Travis Job 78.2
  • 4b7aa315 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

© 2026 Coveralls, Inc