-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
49 lines (42 loc) · 1.36 KB
/
setup.py
File metadata and controls
49 lines (42 loc) · 1.36 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
48
49
# -*- coding: utf-8 -*-
from os import path
from setuptools import find_packages, setup
def get_requirements(rfile):
with open(rfile, "r") as f:
requirements = []
for line in f.readlines():
if len(line) == 0 or line[0] == "#" or "://" in line:
continue
requirements.append(line.strip())
return requirements
def version():
cdir = path.dirname(__file__)
try:
VERSION = open(path.join(cdir, "VERSION")).read().strip("\n")
return VERSION
except FileNotFoundError:
return None
setup(
name="memcached-stress",
version=version(),
description="Stress test Guillotina memcached driver",
long_description="",
keywords=[],
author="Ferran Llamas",
author_email="llamas.arroniz@gmail.com",
classifiers=[
"License :: OSI Approved :: BSD License",
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Topic :: Internet :: WWW/HTTP",
"Programming Language :: Python :: 3.7",
"Topic :: Software Development :: Libraries :: Python Modules",
],
url="http://github.com/lferran/memcached-stress.git",
license="Private License",
zip_safe=True,
include_package_data=True,
packages=find_packages(),
namespace_packages=[],
install_requires=get_requirements("requirements.txt"),
)