1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
|
# coding: utf8
import re
import os.path
try:
from setuptools import setup
extra_kwargs = {'test_suite': 'cssselect.tests'}
except ImportError:
from distutils.core import setup
extra_kwargs = {}
ROOT = os.path.dirname(__file__)
README = open(os.path.join(ROOT, 'README.rst')).read()
INIT_PY = open(os.path.join(ROOT, 'cssselect', '__init__.py')).read()
VERSION = re.search("VERSION = '([^']+)'", INIT_PY).group(1)
setup(
name='cssselect',
version=VERSION,
author='Ian Bicking',
author_email='ianb@colorstudy.com',
maintainer='Simon Sapin',
maintainer_email='simon.sapin@exyr.org',
description=
'cssselect parses CSS3 Selectors and translates them to XPath 1.0',
long_description=README,
url='http://packages.python.org/cssselect/',
license='BSD',
packages=['cssselect'],
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.5',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
],
**extra_kwargs
)
|