forked from 72squared/redpipe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
73 lines (58 loc) · 1.96 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from os import path
from setuptools import setup
from distutils.cmd import Command
NAME = 'redpipe'
ROOTDIR = path.abspath(os.path.dirname(__file__))
with open(os.path.join(ROOTDIR, 'README.rst')) as f:
readme = f.read()
with open(os.path.join(ROOTDIR, 'docs', 'release-notes.rst')) as f:
history = f.read()
with open(os.path.join(ROOTDIR, 'redpipe', 'VERSION')) as f:
version = str(f.read().strip())
class TestCommand(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
import sys
import subprocess
raise SystemExit(
subprocess.call([sys.executable, '-m', 'test']))
cmdclass = {'test': TestCommand}
ext_modules = []
setup(
name=NAME,
version=version,
description='Easy Redis pipelines',
author='John Loehrer',
author_email='[email protected]',
url='https://github.com/72squared/%s' % NAME,
download_url='https://github.com/72squared/%s/archive/%s.tar.gz' %
(NAME, version),
keywords='redis redis-pipeline orm database',
packages=[NAME],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Programming Language :: Python',
'Programming Language :: Python',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Environment :: Web Environment',
'Operating System :: POSIX'],
license='MIT',
install_requires=['redis>=4.1.0'],
tests_require=['redislite>=3.0.271'],
include_package_data=True,
long_description=readme + '\n\n' + history,
long_description_content_type="text/markdown",
cmdclass=cmdclass,
ext_modules=ext_modules
)