-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·47 lines (42 loc) · 1.39 KB
/
setup.py
File metadata and controls
executable file
·47 lines (42 loc) · 1.39 KB
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
40
41
42
43
44
45
46
47
#!/usr/bin/env python3
import sys
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
from crawler.tests.run_tests import run_tests
errno = run_tests()
sys.exit(errno)
def read(filename):
with open(filename, 'r') as myfile:
return myfile.read()
setup(
name = "swiftea-crawler",
version = "1.1.3",
author = "Thykof",
author_email="thykof@protonmail.ch",
tests_require=['pytest'],
install_requires=read('requirements.txt').split(),
cmdclass={'test': PyTest},
description = ("Swiftea's Open Source Web Crawler"),
long_description=read('README.md'),
long_description_content_type="text/markdown",
license = "GNU GPL v3",
keywords = "crawler swiftea",
url = "https://github.com/Swiftea/Crawler",
packages=find_packages(),
classifiers=[
"Development Status :: 5 - Production/Stable",
"Topic :: Internet :: WWW/HTTP :: Indexing/Search",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
'Operating System :: OS Independent',
'Programming Language :: Python :: 3'
],
extras_require={
'testing': ['pytest', 'coverage']
}
)