Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: setup.py

Issue 29341320: Noissue - Added flake8-abp and pep8-naming extension and fix reported warnings (Closed)
Patch Set: Revert changes of patch set 2 Created May 27, 2016, 12:47 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « abp/filters/sources.py ('k') | tests/test_render_script.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # This file is part of Adblock Plus <https://adblockplus.org/>, 1 # This file is part of Adblock Plus <https://adblockplus.org/>,
2 # Copyright (C) 2006-2016 Eyeo GmbH 2 # Copyright (C) 2006-2016 Eyeo GmbH
3 # 3 #
4 # Adblock Plus is free software: you can redistribute it and/or modify 4 # Adblock Plus is free software: you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License version 3 as 5 # it under the terms of the GNU General Public License version 3 as
6 # published by the Free Software Foundation. 6 # published by the Free Software Foundation.
7 # 7 #
8 # Adblock Plus is distributed in the hope that it will be useful, 8 # Adblock Plus is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of 9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details. 11 # GNU General Public License for more details.
12 # 12 #
13 # You should have received a copy of the GNU General Public License 13 # You should have received a copy of the GNU General Public License
14 # along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. 14 # along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
15 15
16 import subprocess 16 import subprocess
17 from os import path 17 from os import path
18 from setuptools import setup, Command 18 from setuptools import setup, Command
19 19
20 20
21 DEVENV = 'devenv' 21 DEVENV = 'devenv'
22 PIP = path.join(DEVENV, 'bin', 'pip') 22 PIP = path.join(DEVENV, 'bin', 'pip')
23 DEV_DEPENDENCIES = ['pytest', 'mock', 'tox'] 23 DEV_DEPENDENCIES = ['pytest', 'mock', 'tox']
24 24
25 25
26 class devenv(Command): 26 class DevEnvCommand(Command):
27 """Set up development virtualenv.""" 27 """Set up development virtualenv."""
28 28
29 description = 'set up development virtualenv' 29 description = 'set up development virtualenv'
30 user_options = [('python=', 'p', 'the python interpreter to use')] 30 user_options = [('python=', 'p', 'the python interpreter to use')]
31 31
32 def initialize_options(self): 32 def initialize_options(self):
33 self.python = 'python' 33 self.python = 'python'
34 34
35 def finalize_options(self): 35 def finalize_options(self):
36 pass 36 pass
37 37
38 def run(self): 38 def run(self):
39 subprocess.check_call(['virtualenv', '-p', self.python, DEVENV]) 39 subprocess.check_call(['virtualenv', '-p', self.python, DEVENV])
40 subprocess.check_call([PIP, 'install'] + DEV_DEPENDENCIES) 40 subprocess.check_call([PIP, 'install'] + DEV_DEPENDENCIES)
41 subprocess.check_call([PIP, 'install', '-e', '.']) 41 subprocess.check_call([PIP, 'install', '-e', '.'])
42 42
43 43
44 setup( 44 setup(
45 name='python-abp', 45 name='python-abp',
46 version='0.0.1', 46 version='0.0.1',
47 description='ABP python tools', 47 description='ABP python tools',
48 long_description='A library for working with Adblock Plus filter lists.', 48 long_description='A library for working with Adblock Plus filter lists.',
49 author='Eyeo GmbH', 49 author='Eyeo GmbH',
50 author_email='info@adblockplus.org', 50 author_email='info@adblockplus.org',
51 url='https://hg.adblockplus.org/python-abp/', 51 url='https://hg.adblockplus.org/python-abp/',
52 packages=['abp', 'abp.filters'], 52 packages=['abp', 'abp.filters'],
53 cmdclass={'devenv': devenv}, 53 cmdclass={'devenv': DevEnvCommand},
54 entry_points={ 54 entry_points={
55 'console_scripts': ['flrender=abp.filters.render_script:main'] 55 'console_scripts': ['flrender=abp.filters.render_script:main']
56 }, 56 },
57 include_package_data=True, 57 include_package_data=True,
58 license='GPLv3', 58 license='GPLv3',
59 zip_safe=False, 59 zip_safe=False,
60 keywords='filterlist adblockplus ABP', 60 keywords='filterlist adblockplus ABP',
61 classifiers=[ 61 classifiers=[
62 'Development Status :: 2 - Pre-Alpha', 62 'Development Status :: 2 - Pre-Alpha',
63 'Intended Audience :: Developers', 63 'Intended Audience :: Developers',
64 'License :: OSI Approved :: GNU General Public License v3 (GPLv3)', 64 'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
65 'Natural Language :: English', 65 'Natural Language :: English',
66 'Programming Language :: Python :: 2', 66 'Programming Language :: Python :: 2',
67 'Programming Language :: Python :: 2.7', 67 'Programming Language :: Python :: 2.7',
68 'Programming Language :: Python :: 3', 68 'Programming Language :: Python :: 3',
69 'Programming Language :: Python :: 3.5', 69 'Programming Language :: Python :: 3.5',
70 ] 70 ]
71 ) 71 )
OLDNEW
« no previous file with comments | « abp/filters/sources.py ('k') | tests/test_render_script.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld