forked from poswald/python-money
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
86 lines (69 loc) · 1.93 KB
/
setup.py
File metadata and controls
86 lines (69 loc) · 1.93 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
from setuptools.command.test import test as TestCommand
from version import get_git_version, get_git_hash
loc = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(loc, 'README.md')) as f:
README = f.read()
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
# import here, cause outside the eggs aren't loaded
import pytest
errno = pytest.main(self.test_args)
sys.exit(errno)
keywords = 'money currency finance'.split()
tests_require = [
'pytest-django',
'pytest-cov',
'django<1.9',
'psycopg2',
'six',
]
requirements = [
'six',
]
extras_require = {
'django': ['Django < 1.8', ],
}
dependency_links = []
setup(
name='python-money',
version=get_git_version(),
description='Primitives for working with money and currencies in Python',
url='http://github.com/poswald/python-money',
maintainer='Paul Oswald',
maintainer_email='pauloswald@gmail.com',
license='BSD',
platforms=["any"],
keywords=keywords,
long_description=README,
packages=[
'money',
],
package_dir={'money': 'money'},
include_package_data=True, # Read in MANIFEST.in
zip_safe=False,
install_requires=requirements,
tests_require=tests_require,
extras_require=extras_require,
dependency_links=dependency_links,
cmdclass={'test': PyTest},
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Office/Business :: Financial',
],
)