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

Side by Side Diff: setup.py

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

Powered by Google App Engine
This is Rietveld