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

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

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

pending completion
78

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%)

4.15 hits per line

Jobs
ID Job ID Ran Files Coverage
1 78.1 12 Jun 2020 03:23PM CUT 0
82.93
Travis Job 78.1
2 78.2 12 Jun 2020 03:23PM CUT 0
82.93
Travis Job 78.2
3 78.3 12 Jun 2020 03:23PM CUT 0
82.93
Travis Job 78.3
4 78.4 12 Jun 2020 03:23PM CUT 0
82.93
Travis Job 78.4
5 78.5 12 Jun 2020 03:23PM CUT 0
82.93
Travis Job 78.5
Source Files on build 78
  • Tree
  • List 2
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Loading...
Coverage∆FileLinesRelevantCoveredMissedHits/Line
  • Back to Repo
  • Travis Build #78
  • 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

© 2025 Coveralls, Inc