Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 25 lines (21 sloc) 0.863 kb
6693f94 Add a setup.py & a README
Toby White authored
1 #!/usr/bin/env python
2
72bc1a9 Add a version string
Toby White authored
3 import distutils.core, os, re
4
5 version_number_re = "\s*__version__\s*=\s*((\"([^\"]|\\\\\")*\"|'([^']|\\\\')*'))"
6 version_file = os.path.join(os.path.dirname(__file__), 'sunburnt', '__init__.py')
fb4c3bf Fix version-number auto-detection
Toby White authored
7 version_number = re.search(version_number_re, open(version_file).read()).groups()[0][1:-1]
6693f94 Add a setup.py & a README
Toby White authored
8
9 distutils.core.setup(
10 name='sunburnt',
72bc1a9 Add a version string
Toby White authored
11 version=version_number,
6693f94 Add a setup.py & a README
Toby White authored
12 description='Python interface to Solr',
13 author='Toby White',
05e8bff Update setup.py & bump version number
Toby White authored
14 author_email='toby@timetric.com',
6693f94 Add a setup.py & a README
Toby White authored
15 packages=['sunburnt'],
1c9024f @evansd Support using `requests` in place of `httplib2`
evansd authored
16 requires=['lxml', 'pytz'],
f4f439f Add some trove classifiers to the package metadata
Toby White authored
17 classifiers=[
af561cd Release 0.5
Toby White authored
18 'Development Status :: 4 - Beta',
f4f439f Add some trove classifiers to the package metadata
Toby White authored
19 'Intended Audience :: Developers',
29be370 Missing comma in setup.py
Toby White authored
20 'License :: OSI Approved :: MIT License',
f4f439f Add some trove classifiers to the package metadata
Toby White authored
21 'Programming Language :: Python',
22 'Topic :: Internet :: WWW/HTTP :: Indexing/Search',
23 'Topic :: Software Development :: Libraries'],
6693f94 Add a setup.py & a README
Toby White authored
24 )
Something went wrong with that request. Please try again.