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 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
|
#-*- coding:utf-8 -*-
#
# Copyright (C) 2008 - Olivier Lauzanne <olauzanne@gmail.com>
#
# Distributed under the BSD license, see LICENSE.txt
from setuptools import setup, find_packages
import os
def read(*names):
values = dict()
for name in names:
filename = name + '.txt'
if os.path.isfile(filename):
value = open(name + '.txt').read()
else:
value = ''
values[name] = value
return values
long_description = """
%(README)s
See http://packages.python.org/pyquery/ for the full documentation
News
====
%(CHANGES)s
""" % read('README', 'CHANGES')
version = '1.2.1'
setup(name='pyquery',
version=version,
description='A jquery-like library for python',
long_description=long_description,
classifiers=[
"Intended Audience :: Developers",
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.5",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
],
keywords='jquery html xml',
author='Olivier Lauzanne',
author_email='olauzanne@gmail.com',
maintainer='Gael Pasgrimaud',
maintainer_email='gael@gawel.org',
url='http://www.bitbucket.org/olauzanne/pyquery/',
license='BSD',
packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
include_package_data=True,
zip_safe=False,
install_requires=[
'lxml>=2.1',
'cssselect',
],
test_requires=['nose'],
test_suite='nose.collector',
entry_points="""
# -*- Entry points: -*-
""",
)
|