-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
54 lines (43 loc) · 1.26 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
# -*- coding: utf-8 -*-
import os
import sys
from setuptools import setup, find_packages, Command
class BaseCommand(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
class TestCommand(BaseCommand):
description = "run self-tests"
def run(self):
ret = os.system('python tests.py')
if ret != 0:
sys.exit(-1)
if sys.version_info.major == 3:
REQUIRES = ["requests>=2.12.4"]
else:
REQUIRES = ["requests>=2.12.4", "mock>=2.0.0"]
setup(
name='hnbex',
version='0.0.1',
author='Amalia Souček',
author_email='[email protected]',
description='A Python package for accessing hnbex.eu service',
license='MIT',
url='https://github.com/dobarkod/hnbex-python',
classifiers=[
"Environment :: Web Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
"Topic :: Software Development :: Libraries :: Python Modules",
],
packages=find_packages(),
install_requires=REQUIRES,
cmdclass={
'test': TestCommand,
}
)