-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathsetup.py
50 lines (42 loc) · 1.5 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
import unittest
import sys
from setuptools import setup, find_packages, Command
class RunTests(Command):
description = "run all tests for python-currencies"
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
tests = unittest.TestLoader().discover('.')
runner = unittest.TextTestRunner()
results = runner.run(tests)
sys.exit(not results.wasSuccessful())
setup(
name='currencies',
version=__import__("currencies").get_version(),
description='Display money format and its filthy currencies, '
'for all money lovers out there.',
long_description=open('README.rst').read(),
license='GNU GPL 3',
author='Alireza Savand',
author_email='[email protected]',
url='https://github.com/Alir3z4/python-currencies',
cmdclass={'test': RunTests},
packages=find_packages(),
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU General Public License (GPL)',
'Operating System :: OS Independent',
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Topic :: Software Development"
],
python_requires='<4',
)