Permalink
Switch branches/tags
pre-1.0a hudson-python-oauth2-211 hudson-python-oauth2-210 hudson-python-oauth2-209 hudson-python-oauth2-208 hudson-python-oauth2-207 hudson-python-oauth2-206 hudson-python-oauth2-205 hudson-python-oauth2-204 hudson-python-oauth2-203 hudson-python-oauth2-202 hudson-python-oauth2-201 hudson-python-oauth2-200 hudson-python-oauth2-199 hudson-python-oauth2-170 hudson-python-oauth2-169 hudson-python-oauth2-169-SUCCESS hudson-python-oauth2-168 hudson-python-oauth2-168-SUCCESS hudson-python-oauth2-167 hudson-python-oauth2-167-SUCCESS hudson-python-oauth2-166 hudson-python-oauth2-166-SUCCESS hudson-python-oauth2-165 hudson-python-oauth2-165-SUCCESS hudson-python-oauth2-164 hudson-python-oauth2-164-SUCCESS hudson-python-oauth2-163 hudson-python-oauth2-163-SUCCESS hudson-python-oauth2-162 hudson-python-oauth2-162-SUCCESS hudson-python-oauth2-161 hudson-python-oauth2-161-SUCCESS hudson-python-oauth2-160 hudson-python-oauth2-160-SUCCESS hudson-python-oauth2-159 hudson-python-oauth2-159-SUCCESS hudson-python-oauth2-158 hudson-python-oauth2-158-SUCCESS hudson-python-oauth2-157 hudson-python-oauth2-156 hudson-python-oauth2-155 hudson-python-oauth2-155-SUCCESS hudson-python-oauth2-154 hudson-python-oauth2-154-SUCCESS hudson-python-oauth2-153 hudson-python-oauth2-153-SUCCESS hudson-python-oauth2-152 hudson-python-oauth2-152-SUCCESS hudson-python-oauth2-151 hudson-python-oauth2-151-SUCCESS hudson-python-oauth2-150 hudson-python-oauth2-150-SUCCESS hudson-python-oauth2-149 hudson-python-oauth2-149-SUCCESS hudson-python-oauth2-148 hudson-python-oauth2-148-SUCCESS hudson-python-oauth2-147 hudson-python-oauth2-147-SUCCESS hudson-python-oauth2-146 hudson-python-oauth2-146-SUCCESS hudson-python-oauth2-145 hudson-python-oauth2-145-SUCCESS hudson-python-oauth2-144 hudson-python-oauth2-144-SUCCESS hudson-python-oauth2-143 hudson-python-oauth2-143-SUCCESS hudson-python-oauth2-142 hudson-python-oauth2-141 hudson-python-oauth2-140 hudson-python-oauth2-139 hudson-python-oauth2-138 hudson-python-oauth2-137 hudson-python-oauth2-136 hudson-python-oauth2-135 hudson-python-oauth2-134 hudson-python-oauth2-134-SUCCESS hudson-python-oauth2-133 hudson-python-oauth2-133-SUCCESS hudson-python-oauth2-132 hudson-python-oauth2-132-SUCCESS hudson-python-oauth2-131 hudson-python-oauth2-131-SUCCESS hudson-python-oauth2-130 hudson-python-oauth2-130-SUCCESS hudson-python-oauth2-129 hudson-python-oauth2-129-SUCCESS hudson-python-oauth2-128 hudson-python-oauth2-128-SUCCESS hudson-python-oauth2-127 hudson-python-oauth2-127-SUCCESS debian/1.5.211 debian/1.5.210 debian/1.5.209 debian/1.5.208 debian/1.5.207 debian/1.5.206 debian/1.5.205 debian/1.5.204 debian/1.5.203
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 41 lines (38 sloc) 1.2 KB
#!/usr/bin/env python
from setuptools import setup, find_packages
import os, re
PKG='oauth2'
VERSIONFILE = os.path.join('oauth2', '_version.py')
verstr = "unknown"
try:
verstrline = open(VERSIONFILE, "rt").read()
except EnvironmentError:
pass # Okay, there is no version file.
else:
MVSRE = r"^manual_verstr *= *['\"]([^'\"]*)['\"]"
mo = re.search(MVSRE, verstrline, re.M)
if mo:
mverstr = mo.group(1)
else:
print "unable to find version in %s" % (VERSIONFILE,)
raise RuntimeError("if %s.py exists, it must be well-formed" % (VERSIONFILE,))
AVSRE = r"^auto_build_num *= *['\"]([^'\"]*)['\"]"
mo = re.search(AVSRE, verstrline, re.M)
if mo:
averstr = mo.group(1)
else:
averstr = ''
verstr = '.'.join([mverstr, averstr])
setup(name=PKG,
version=verstr,
description="library for OAuth version 1.0",
author="Joe Stump",
author_email="joe@simplegeo.com",
url="http://github.com/simplegeo/python-oauth2",
packages = find_packages(),
install_requires = ['httplib2'],
license = "MIT License",
keywords="oauth",
zip_safe = True,
test_suite="tests",
tests_require=['coverage', 'mock'])