diff options
author | Martin Robinson <mrobinson@igalia.com> | 2023-06-15 12:34:27 +0200 |
---|---|---|
committer | Martin Robinson <mrobinson@igalia.com> | 2023-06-15 13:10:06 +0200 |
commit | 81433a8684d078ae629ba24f30f877028e361136 (patch) | |
tree | c974ac6f5741138f4926e02ca6a3f35abfc46738 /python/tidy/setup.py | |
parent | fa266abd29688833e1ffa5995230e5a6c30161f6 (diff) | |
download | servo-81433a8684d078ae629ba24f30f877028e361136.tar.gz servo-81433a8684d078ae629ba24f30f877028e361136.zip |
Convert tidy to a non-egg Python package
It seems that servo-tidy is only used by webrender in my GitHub
searches. WebRender could simply use `rustfmt` and the tidy on pypi
hasn't been updated since 2018. Converting tidy to a normal Python
package removes the maintenance burden of continually fixing the easy
install configuration.
Fixes #29094.
Fixes #29334.
Diffstat (limited to 'python/tidy/setup.py')
-rw-r--r-- | python/tidy/setup.py | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/python/tidy/setup.py b/python/tidy/setup.py deleted file mode 100644 index 17c6172acbc..00000000000 --- a/python/tidy/setup.py +++ /dev/null @@ -1,60 +0,0 @@ -# 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.3.0' - -install_requires = [ - "flake8==3.8.3", - "toml==0.9.2", - "colorama==0.3.7", - "voluptuous==0.12.1", - "PyYAML==5.4", -] - -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 Exception: - readme = '' - -try: - with open(os.path.join(here, 'HISTORY.rst')) as doc: - history = doc.read() -except Exception: - 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, - entry_points={ - 'console_scripts': [ - 'servo-tidy=servo_tidy.tidy:scan', - ], - }, - ) |