Create a Python package of Tidy

This commit is contained in:
Askeing Yen (fyen) 2016-04-13 16:00:23 -07:00 committed by edunham
parent 711bfe2860
commit af2ca1fa80
18 changed files with 233 additions and 5 deletions

40
python/tidy/setup.py Normal file
View file

@ -0,0 +1,40 @@
import os
from setuptools import setup, find_packages
VERSION = '0.0.1'
install_requires = [
]
here = os.path.dirname(os.path.abspath(__file__))
# get documentation from the README and HISTORY
try:
with open(os.path.join(here, 'README.rst')) as doc:
readme = doc.read()
except:
readme = ''
try:
with open(os.path.join(here, 'HISTORY.rst')) as doc:
history = doc.read()
except:
history = ''
long_description = readme + '\n\n' + history
if __name__ == '__main__':
setup(
name='servo_tidy',
version=VERSION,
description='The tidy package of Servo',
long_description=long_description,
keywords='mozilla servo tidy ',
author='The Servo Project Developers',
author_email='dev-servo@lists.mozilla.org',
url='https://github.com/servo/servo_tindy',
packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
package_data={},
install_requires=install_requires,
zip_safe=False,
)