servo: Merge #10590 - Package tidy (from edunham:package-tidy); r=larsbergstrom
This fixes https://github.com/servo/servo/issues/861. @askeing, I've copied your work from https://github.com/askeing/servo_tidy and attributed the commit to you. My commit in this PR is Git housekeeping to preserve `tidy`'s history. If you'd like to make additional changes, I've given you and @shinglyu push access to my fork of Servo. Apologies if this is already familiar, but the workflow for pushing to my branch is: ``` $ git remote add edunham git@github.com:edunham/servo.git $ git checkout -b package-tidy $ git pull edunham package-tidy $ git push edunham package-tidy ``` Once this lands, I'll look at how to publish it to PyPI and automate that process. Please don't merge this yet; we still need to discuss how the change should work around https://github.com/servo/servo/blob/master/python/servo/testing_commands.py#L33 , as I've yet to figure out how to get the egg to actually expose its tests. Source-Repo: https://github.com/servo/servo Source-Revision: bfe54539d290cb287e59e8ba106a54a3fab6201a
This commit is contained in:
50
servo/python/tidy/setup.py
Normal file
50
servo/python/tidy/setup.py
Normal file
@@ -0,0 +1,50 @@
|
||||
# Copyright 2013 The Servo Project Developers. See the COPYRIGHT
|
||||
# file at the top-level directory of this distribution.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||
# http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
||||
# <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
||||
# option. This file may not be copied, modified, or distributed
|
||||
# except according to those terms.
|
||||
|
||||
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 servo-tidy is used to check licenses, '
|
||||
'line lengths, whitespace, flake8 on Python files, lock file versions, and more.',
|
||||
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',
|
||||
packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
|
||||
package_data={},
|
||||
install_requires=install_requires,
|
||||
zip_safe=False,
|
||||
)
|
||||
Reference in New Issue
Block a user