-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathsetup.py
39 lines (35 loc) · 1.06 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_suite = True
def run_tests(self):
import pytest
import sys
cmdline = ' -v --cov surt tests/'
errcode = pytest.main(cmdline)
sys.exit(errcode)
setup(name='surt',
version='0.3.1',
author='rajbot',
author_email='[email protected]',
classifiers=[
'License :: OSI Approved :: GNU Affero General Public License v3',
],
description='Sort-friendly URI Reordering Transform (SURT) python package.',
long_description=open('README.rst').read(),
url='https://github.com/internetarchive/surt',
zip_safe=True,
install_requires=[
'six',
'tldextract>=2.0',
],
provides=[ 'surt' ],
packages=[ 'surt' ],
scripts=[],
# Tests
tests_require=[ 'pytest', 'pytest-cov' ],
test_suite='',
cmdclass={'test': PyTest},
)