2011-06-06 03:00:12 +04:00
|
|
|
import os
|
2011-06-06 03:07:30 +04:00
|
|
|
from pyphantomjs import __version__
|
2011-06-06 03:00:12 +04:00
|
|
|
from setuptools import setup, find_packages
|
|
|
|
|
|
|
|
def read(fname):
|
|
|
|
return open(os.path.join(os.path.dirname(__file__), fname)).read()
|
2011-06-03 23:21:03 +04:00
|
|
|
|
2011-06-06 03:00:12 +04:00
|
|
|
README = read('README')
|
2011-06-06 03:07:30 +04:00
|
|
|
INSTALL = '''
|
2011-06-06 03:00:12 +04:00
|
|
|
INSTALLING
|
|
|
|
-------------------
|
|
|
|
%s''' % read('INSTALL')
|
2011-06-03 23:21:03 +04:00
|
|
|
|
2011-06-06 03:07:30 +04:00
|
|
|
index = README.find('LICENSING')
|
|
|
|
if index > -1:
|
|
|
|
README = README[:index] + INSTALL + '\n\n' + README[index:]
|
|
|
|
else:
|
|
|
|
README += INSTALL
|
|
|
|
|
|
|
|
print README
|
|
|
|
|
2011-06-06 03:00:12 +04:00
|
|
|
setup(name='pyphantomjs',
|
2011-06-03 23:21:03 +04:00
|
|
|
version=__version__,
|
2011-06-06 03:00:12 +04:00
|
|
|
description='Minimalistic, headless, WebKit-based, JavaScript-driven tool',
|
2011-06-03 23:21:03 +04:00
|
|
|
long_description=README,
|
|
|
|
author='Author name',
|
|
|
|
author_email='author-email',
|
|
|
|
packages=find_packages(),
|
|
|
|
include_package_data=True,
|
2011-06-03 23:43:26 +04:00
|
|
|
install_requires=['argparse',]
|
2011-06-03 23:21:03 +04:00
|
|
|
)
|