-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
49 lines (37 loc) · 1.43 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
40
41
42
43
44
45
46
47
48
49
#!/usr/bin/env python
import os
from setuptools import find_packages
from setuptools import setup
with open("requirements.txt", "r") as requirements_file:
requirements = [req.strip() for req in requirements_file.read().split("\n")]
ROOT = os.path.dirname(__file__)
def version():
init = os.path.join(ROOT, "spinneret", "__init__.py")
version = None
for line in open(init, "r"):
if line.startswith("__version__"):
version = line.split("=")[-1].strip().replace('\"', '')
assert version is not None, "Unable to determine version!"
return version
def long_description():
readme = os.path.join(ROOT, "README.rst")
long_description = open(readme, "r").read()
return long_description
setup(name='spinneret',
author="Mike Steder",
author_email="[email protected]",
version=version(),
description='Quick web spider and traffic generator',
packages=find_packages(),
package_data={'': ['config/*']},
scripts=["bin/spinneret",],
test_suite='nose.collector',
install_requires=requirements,
classifiers=["Development Status :: 3 - Alpha",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Topic :: Utilities",],
url="https://github.com/steder/spinneret",
long_description=long_description(),
)