-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathsetup.py
48 lines (42 loc) · 1.68 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
from setuptools import setup, find_packages
import select
version = '1.1.2'
patchers = [
'datetime_patcher = time_travel.patchers.datetime_patcher:DatetimePatcher',
'select_patcher = time_travel.patchers.select_patcher:SelectPatcher',
'time_patcher = time_travel.patchers.time_patcher:TimePatcher',
]
if hasattr(select, 'poll'):
patchers.append('poll_patcher = time_travel.patchers.poll_patcher:PollPatcher')
if hasattr(select, 'epoll'):
patchers.append('epoll_patcher = time_travel.patchers.epoll_patcher:EpollPatcher')
setup(
name='time_travel',
version=version,
description='Python time mocking',
long_description=open('README.rst').read(),
license='MIT',
author='Shachar Nudler',
author_email='[email protected]',
url='https://github.com/snudler6/time-travel',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Operating System :: OS Independent',
'License :: OSI Approved :: MIT License',
'Topic :: Software Development :: Testing',
],
packages=find_packages('src', exclude=["tests*"]),
package_dir={'': 'src'},
entry_points={
'time_travel.patchers': patchers,
}
)