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

Delta Between Two Patch Sets: setup.py

Issue 29968569: Issue 4014 - Publish python-abp on PyPI (Closed) Base URL: https://hg.adblockplus.org/python-abp/
Left Patch Set: Address comments on PS1, update README Created Dec. 28, 2018, 9:48 p.m.
Right Patch Set: Address comment on PS5 Created Jan. 3, 2019, 9:32 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « abp/filters/sources.py ('k') | tests/test_fs_source.py » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
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-present eyeo GmbH 2 # Copyright (C) 2006-present 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
17 from os import path 16 from os import path
18 from setuptools import setup, Command 17 from setuptools import setup
19 18
20 with open(path.join(path.dirname(__file__), 'README.md')) as fh: 19 with open(path.join(path.dirname(__file__), 'README.rst')) as fh:
21 long_description = fh.read() 20 long_description = fh.read()
22
23 DEVENV = 'devenv'
24 PIP = path.join(DEVENV, 'bin', 'pip')
25 DEV_DEPENDENCIES = ['pytest', 'mock', 'tox']
26
27
28 class DevEnvCommand(Command):
29 """Set up development virtualenv."""
30
31 description = 'set up development virtualenv'
32 user_options = [('python=', 'p', 'the python interpreter to use')]
33
34 def initialize_options(self):
35 self.python = 'python'
36
37 def finalize_options(self):
38 pass
39
40 def run(self):
41 subprocess.check_call(['virtualenv', '-p', self.python, DEVENV])
42 subprocess.check_call([PIP, 'install'] + DEV_DEPENDENCIES)
43 subprocess.check_call([PIP, 'install', '-e', '.'])
44
45 21
46 setup( 22 setup(
47 name='python-abp', 23 name='python-abp',
48 version='0.1.0', 24 version='0.1.0',
49 description='A library for working with Adblock Plus filter lists.', 25 description='A library for working with Adblock Plus filter lists.',
50 long_description=long_description, 26 long_description=long_description,
51 long_description_content_type='text/markdown', 27 long_description_content_type='text/x-rst',
52 author='eyeo GmbH', 28 author='eyeo GmbH',
53 author_email='info@adblockplus.org', 29 author_email='info@adblockplus.org',
54 url='https://hg.adblockplus.org/python-abp/', 30 url='https://hg.adblockplus.org/python-abp/',
55 packages=['abp', 'abp.filters'], 31 packages=['abp', 'abp.filters'],
56 cmdclass={'devenv': DevEnvCommand},
57 entry_points={ 32 entry_points={
58 'console_scripts': ['flrender=abp.filters.render_script:main', 33 'console_scripts': ['flrender=abp.filters.render_script:main',
59 'fldiff=abp.filters.diff_script:main'], 34 'fldiff=abp.filters.diff_script:main'],
60 }, 35 },
61 include_package_data=True, 36 include_package_data=True,
62 license='GPLv3', 37 license='GPLv3',
63 zip_safe=False, 38 zip_safe=False,
64 keywords='filterlist adblockplus ABP', 39 keywords='filterlist adblockplus ABP',
65 classifiers=[ 40 classifiers=[
66 'Development Status :: 4 - Beta', 41 'Development Status :: 4 - Beta',
67 'Intended Audience :: Developers', 42 'Intended Audience :: Developers',
68 'License :: OSI Approved :: GNU General Public License v3 (GPLv3)', 43 'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
69 'Natural Language :: English', 44 'Natural Language :: English',
70 'Programming Language :: Python :: 2', 45 'Programming Language :: Python :: 2',
71 'Programming Language :: Python :: 2.7', 46 'Programming Language :: Python :: 2.7',
72 'Programming Language :: Python :: 3', 47 'Programming Language :: Python :: 3',
73 'Programming Language :: Python :: 3.5', 48 'Programming Language :: Python :: 3.5',
74 'Programming Language :: Python :: 3.6', 49 'Programming Language :: Python :: 3.6',
75 'Operating System :: OS Independent', 50 'Operating System :: OS Independent',
76 'Topic :: Software Development :: Libraries :: Python Modules', 51 'Topic :: Software Development :: Libraries :: Python Modules',
77 ], 52 ],
78 ) 53 )
LEFTRIGHT

Powered by Google App Engine
This is Rietveld