forked from stravalib/stravalib
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
527 additions
and
513 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,9 +17,9 @@ | |
news = open(news).read() | ||
parts = re.split(r'([0-9\.]+)\s*\n\r?-+\n\r?', news) | ||
found_news = '' | ||
for i in range(len(parts)-1): | ||
for i in range(len(parts) - 1): | ||
if parts[i] == version: | ||
found_news = parts[i+i] | ||
found_news = parts[i + i] | ||
break | ||
if not found_news: | ||
warnings.warn('No news for this version found.') | ||
|
@@ -31,38 +31,38 @@ | |
|
||
if found_news: | ||
title = 'Changes in %s' % version | ||
long_description += "\n%s\n%s\n" % (title, '-'*len(title)) | ||
long_description += '\n%s\n%s\n' % (title, '-' * len(title)) | ||
long_description += found_news | ||
|
||
setup( | ||
name = "stravalib", | ||
version = version, | ||
author = "Hans Lellelid", | ||
author_email = "[email protected]", | ||
url = "http://github.com/hozn/stravalib", | ||
license = "Apache", | ||
description = "Python library for interacting with Strava v3 REST API", | ||
long_description = long_description, | ||
packages = find_packages(), | ||
name='stravalib', | ||
version=version, | ||
author='Hans Lellelid', | ||
author_email='[email protected]', | ||
url='http://github.com/hozn/stravalib', | ||
license='Apache', | ||
description='Python library for interacting with Strava v3 REST API', | ||
long_description=long_description, | ||
packages=find_packages(), | ||
include_package_data=True, | ||
package_data={'stravalib': ['tests/resources/*']}, | ||
install_requires=['python-dateutil{0}'.format('>=2.0,<3.0dev' if sys.version_info[0] == 3 else '>=1.5,<2.0dev'), # version 1.x is for python 2 and version 2.x is for python 3. | ||
install_requires=['python-dateutil{0}'.format('>=2.0,<3.0dev' if sys.version_info[0] == 3 else '>=1.5,<2.0dev'), # version 1.x is for python 2 and version 2.x is for python 3. | ||
'pytz', | ||
'requests>=2.0,<3.0dev', | ||
'beautifulsoup4>=4.0,<5.0dev', | ||
'units'], | ||
tests_require = ['nose>=1.0.3'], | ||
test_suite = 'stravalib.tests', | ||
tests_require=['nose>=1.0.3'], | ||
test_suite='stravalib.tests', | ||
classifiers=[ | ||
'Development Status :: 3 - Alpha', | ||
'License :: OSI Approved :: Apache Software License', | ||
'Intended Audience :: Developers', | ||
'Operating System :: OS Independent', | ||
'Programming Language :: Python :: 2.6', | ||
'Programming Language :: Python :: 2.7', | ||
'Programming Language :: Python :: 3', | ||
"Topic :: Software Development :: Libraries :: Python Modules", | ||
'Development Status :: 3 - Alpha', | ||
'License :: OSI Approved :: Apache Software License', | ||
'Intended Audience :: Developers', | ||
'Operating System :: OS Independent', | ||
'Programming Language :: Python :: 2.6', | ||
'Programming Language :: Python :: 2.7', | ||
'Programming Language :: Python :: 3', | ||
'Topic :: Software Development :: Libraries :: Python Modules', | ||
], | ||
use_2to3=True, | ||
zip_safe=False # Technically it should be fine, but there are issues w/ 2to3 | ||
zip_safe=False # Technically it should be fine, but there are issues w/ 2to3 | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
from stravalib.client import Client | ||
from stravalib.client import Client |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.