forked from spulec/freezegun
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
42 lines (36 loc) · 1.24 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
#!/usr/bin/env python
import os
import re
from setuptools import setup
with open('README.rst') as f:
readme = f.read()
def read_version():
with open(os.path.join('freezegun', '__init__.py')) as f:
m = re.search(r'''__version__\s*=\s*['"]([^'"]*)['"]''', f.read())
if m:
return m.group(1)
raise ValueError("couldn't find version")
setup(
name='freezegun',
version=read_version(),
description='Let your Python tests travel through time',
long_description=readme,
author='Steve Pulec',
author_email='[email protected]',
url='https://github.com/spulec/freezegun',
packages=['freezegun'],
install_requires=['python-dateutil>=2.7'],
include_package_data=True,
license='Apache 2.0',
python_requires='>=3.5',
classifiers=[
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
],
)