Skip to content

Commit 56309fd

Browse files
authored
Merge pull request #18 from vkurup/package-clean-up
Clean up package
2 parents 9dd3ac9 + ab21099 commit 56309fd

File tree

17 files changed

+211
-68
lines changed

17 files changed

+211
-68
lines changed

.coveragerc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[run]
2+
branch = true
3+
source = tcxparser
4+
5+
[report]
6+
show_missing = true

.travis.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
sudo: false
12
language: python
23
python:
34
- "2.7"
4-
install: python setup.py install
5-
script: python setup.py test
5+
- "3.5"
6+
install: pip install tox-travis
7+
script: tox

AUTHORS.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
Primary author:
2+
---------------
3+
4+
* Vinod Kurup (@vkurup)
5+
6+
7+
Other contributions from:
8+
-------------------------
9+
10+
* Iztok Fister Jr (@firefly-cpp)
11+
* Jason M. (@DaddyTheRunner)
12+
* Adam Neumann (@noizwaves)
13+
* Stephen Doyle (@stevedoyle)
14+
15+
Thank you!

CHANGES.rst

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
CHANGES
2+
=======
3+
4+
v0.8.0, 2018-04-27
5+
------------------
6+
7+
* Add coverage, flake8
8+
* Support Python 3
9+
* Move code into its own package
10+
* Add some cycling support (#16)
11+
* Run tests on CI using tox-travis
12+
13+
14+
v0.7.2, 2017-03-02
15+
------------------
16+
17+
* Don't fail if lat/lon not present.
18+
19+
20+
v0.7.1, 2016-08-14
21+
------------------
22+
23+
* Fix for tracks with only 1 trackpoint.
24+
25+
26+
v0.7.0, 2016-01-01
27+
------------------
28+
29+
* Added average altitude support. Thanks @firefly-cpp
30+
31+
32+
v0.6.0, 2014-11-18
33+
------------------
34+
35+
* Added heart rate data & pace support. Thanks @stevedoyle
36+
37+
38+
v0.3.0, 2013-01-09
39+
------------------
40+
41+
* Changed methods to properties
42+
43+
44+
v0.1.0, 2013-01-07
45+
------------------
46+
47+
* Initial release.

CHANGES.txt

Lines changed: 0 additions & 11 deletions
This file was deleted.

LICENSE.txt renamed to LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2013-6, Vinod Kurup
1+
Copyright (c) 2013-8, Vinod Kurup
22
All rights reserved.
33

44
Redistribution and use in source and binary forms, with or without modification,

README.md renamed to README.rst

Lines changed: 35 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
1-
# python-tcxparser
1+
python-tcxparser
2+
================
23

3-
[ ![Codeship Status for vkurup/python-tcxparser](https://codeship.com/projects/eb924480-4493-0134-5e03-3a611b6d72e6/status?branch=master)](https://codeship.com/projects/168475)
4+
.. image:: https://img.shields.io/pypi/v/python-tcxparser.svg
5+
:target: https://pypi.python.org/pypi/python-tcxparser
6+
:alt: Latest PyPI version
7+
8+
.. image:: https://travis-ci.org/vkurup/python-tcxparser.svg?branch=master
9+
:target: https://travis-ci.org/vkurup/python-tcxparser
10+
:alt: Latest Travis CI build status
11+
12+
.. image:: https://pyup.io/repos/github/vkurup/python-tcxparser/shield.svg
13+
:target: https://pyup.io/repos/github/vkurup/python-tcxparser/
14+
:alt: Updates
415

516
python-tcxparser is a minimal parser for Garmin's TCX file format. It
617
is not in any way exhaustive. It extracts just enough data to allow me
@@ -21,11 +32,17 @@ Data extracted:
2132
- max and min altitude
2233
- time stamp of each data point (in ISO UTC)
2334

24-
## Installation
35+
Installation
36+
------------
37+
38+
Install it from PyPI::
2539

26-
pip install python-tcxparser
40+
pip install python-tcxparser
2741

28-
## Usage
42+
Usage
43+
-----
44+
45+
Basic usage example::
2946

3047
>>> import tcxparser
3148
>>> tcx = tcxparser.TCXParser('/home/vinod/Downloads/20121226-212953.tcx')
@@ -51,5 +68,17 @@ Data extracted:
5168
... tcx.calories
5269
379
5370

54-
## Contact
71+
Compatibility
72+
-------------
73+
74+
* Python 2.7 or 3.5+
75+
76+
License
77+
-------
78+
79+
BSD
80+
81+
Contact
82+
-------
83+
5584
Please contact me with any questions: Vinod Kurup (vinod@kurup.com)

setup.cfg

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
[metadata]
2-
description-file = README.md
2+
description-file = README.rst
3+
4+
[flake8]
5+
max-line-length = 120

setup.py

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,34 @@
1-
from setuptools import setup
1+
from setuptools import setup, find_packages
22

3-
__version__ = '0.7.2'
3+
__version__ = '0.8.0'
44

55
setup(
66
name='python-tcxparser',
77
version=__version__,
8+
description='Simple parser for Garmin TCX files',
9+
long_description=open('README.rst').read(),
810
author='Vinod Kurup',
911
author_email='vinod@kurup.com',
10-
py_modules=['tcxparser', 'test_tcxparser'],
1112
url='https://github.com/vkurup/python-tcxparser/',
13+
packages=find_packages(include=['tcxparser']),
14+
include_package_data=True,
1215
license='BSD',
13-
description='Simple parser for Garmin TCX files',
16+
zip_safe=False,
17+
keywords='tcx',
1418
classifiers=[
1519
'Development Status :: 4 - Beta',
1620
'Intended Audience :: Developers',
1721
'License :: OSI Approved :: BSD License',
1822
'Operating System :: OS Independent',
1923
'Programming Language :: Python',
24+
'Programming Language :: Python :: 2',
25+
'Programming Language :: Python :: 2.7',
26+
'Programming Language :: Python :: 3',
27+
'Programming Language :: Python :: 3.5',
2028
'Topic :: Software Development :: Libraries :: Python Modules',
2129
],
22-
long_description=open('README.md').read(),
2330
install_requires=[
2431
"lxml",
2532
],
26-
test_suite="test_tcxparser",
33+
test_suite="tests",
2734
)

tcxparser/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from .tcxparser import TCXParser # noqa

0 commit comments

Comments
 (0)