Permalink
Switch branches/tags
hudson-python-txsimplegeo.shared-83 hudson-python-txsimplegeo.shared-82 hudson-python-txsimplegeo.shared-81 hudson-python-txsimplegeo.shared-80 hudson-python-txsimplegeo.shared-79 hudson-python-txsimplegeo.shared-78 hudson-python-txsimplegeo.shared-77 hudson-python-txsimplegeo.shared-76 hudson-python-txsimplegeo.shared-75 hudson-python-txsimplegeo.shared-74 hudson-python-txsimplegeo.shared-73 hudson-python-txsimplegeo.shared-72 hudson-python-txsimplegeo.shared-71 hudson-python-txsimplegeo.shared-42 hudson-python-txsimplegeo.shared-41 hudson-python-txsimplegeo.shared-41-SUCCESS hudson-python-txsimplegeo.shared-40 hudson-python-txsimplegeo.shared-40-SUCCESS hudson-python-txsimplegeo.shared-39 hudson-python-txsimplegeo.shared-39-SUCCESS hudson-python-txsimplegeo.shared-38 hudson-python-txsimplegeo.shared-37 hudson-python-txsimplegeo.shared-36 hudson-python-txsimplegeo.shared-35 hudson-python-txsimplegeo.shared-34 hudson-python-txsimplegeo.shared-34-SUCCESS hudson-python-txsimplegeo.shared-33 hudson-python-txsimplegeo.shared-32 hudson-python-txsimplegeo.shared-31 hudson-python-txsimplegeo.shared-30 hudson-python-txsimplegeo.shared-29 hudson-python-txsimplegeo.shared-28 hudson-python-txsimplegeo.shared-27 hudson-python-txsimplegeo.shared-26 hudson-python-txsimplegeo.shared-25 hudson-python-txsimplegeo.shared-24 hudson-python-txsimplegeo.shared-23 hudson-python-txsimplegeo.shared-22 hudson-python-txsimplegeo.shared-21 hudson-python-txsimplegeo.shared-20 hudson-python-txsimplegeo.shared-19 hudson-python-txsimplegeo.shared-18 hudson-python-txsimplegeo.shared-17 hudson-python-txsimplegeo.shared-16 hudson-python-txsimplegeo.shared-15 hudson-python-txsimplegeo.shared-14 hudson-python-txsimplegeo.shared-13 hudson-python-txsimplegeo.shared-12 hudson-python-txsimplegeo.shared-11 debian/0.9.83 debian/0.9.82 debian/0.9.81 debian/0.9.80 debian/0.9.79 debian/0.9.78 debian/0.9.77 debian/0.9.76 debian/0.9.75 debian/0.9.74 debian/0.9.73 debian/0.9.72 debian/0.9.71 debian/0.9.42 debian/0.9.41 debian/0.9.40 debian/0.9.39 debian/0.9.38 debian/0.9.0
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 65 lines (57 sloc) 2.4 KB
#!/usr/bin/env python
from setuptools import setup, find_packages
import os, re
PKG='txsimplegeo.shared'
VERSIONFILE = os.path.join('txsimplegeo', 'shared', '_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_requires = []
tests_require = ['mock']
# trialcoverage is an optional way to get code-coverage
# results. Uncomment the following and run "python setup.py trial
# --reporter=bwverbose-coverage -s simplegeo.shared.test".
# tests_require.extend(['setuptools_trial', 'trialcoverage'])
# As of 2010-11-22 neither of the above options appear to work to
# generate code coverage results, but the following does:
# rm -rf ./.coverage* htmlcov ; coverage run --branch --include=txsimplegeo/* setup.py trial ; coverage html
data_fnames=[ 'COPYING.SPL.txt', 'COPYING.GPL', 'COPYING.TGPPL.html', 'README.rst' ]
# In case we are building for a .deb with stdeb's sdist_dsc command, we put the
# docs in "share/doc/python-$PKG".
doc_loc = "share/doc/" + PKG
data_files = [(doc_loc, data_fnames)]
setup(name=PKG,
version=verstr,
description="Twisted library for interfacing with SimpleGeo's API",
long_description=open('README.rst').read(),
author="Zooko Wilcox-O'Hearn",
author_email="zooko@simplegeo.com",
url="http://github.com/simplegeo/python-txsimplegeo.shared",
packages = find_packages(),
include_package_data=True,
data_files=data_files,
license = "MIT License",
install_requires=['pyutil >= 1.7.9'],
keywords="simplegeo",
zip_safe=False, # actually it is zip safe, but zipping packages doesn't help with anything and can cause some problems (http://bugs.python.org/setuptools/issue33 )
namespace_packages = ['txsimplegeo'],
test_suite='txsimplegeo.shared.test',
setup_requires=setup_requires,
tests_require=tests_require)