Skip to content

add package __version__ (fixes #116) - #157

Merged
tkrajina merged 1 commit into
tkrajina:masterfrom
cwbooth5:master
Mar 2, 2019
Merged

tkrajina merged 1 commit into
tkrajina:masterfrom
cwbooth5:master

Conversation

@cwbooth5

Copy link
Copy Markdown

This change adds gpxpy.__version__ into the package by moving the version string into __init__.py and then importing/reading that value from setup.py.

Tests ran cleanly and coverage remained unchanged.

Ran 124 tests in 4.021s

OK (skipped=1)
$
$ coverage report
Name                Stmts   Miss  Cover
---------------------------------------
gpxpy/__init__.py       5      0   100%
gpxpy/geo.py          203     21    90%
gpxpy/gpx.py         1219    184    85%
gpxpy/gpxfield.py     336     35    90%
gpxpy/gpxxml.py        49     16    67%
gpxpy/parser.py        54      7    87%
gpxpy/utils.py         55     21    62%
---------------------------------------
TOTAL                1921    284    85%

This addresses enhancement/issue #116.

This change adds gpxpy.__version__ into the package by moving the version string into __init__.py and then importing/reading that value from setup.py.

This addresses enhancement/issue tkrajina#116.
@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.008%) to 85.528% when pulling afeb586 on cwbooth5:master into b9219a9 on tkrajina:master.

@tkrajina
tkrajina merged commit c227906 into tkrajina:master Mar 2, 2019
@tkrajina

tkrajina commented Mar 2, 2019

Copy link
Copy Markdown
Owner

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants