This repository has been archived by the owner on Nov 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
60 lines (53 loc) · 1.63 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
55
56
57
58
59
60
# -*- coding: utf-8 -*-
# pylint: disable=C0111
from __future__ import absolute_import
import os
import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
class ToxTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
import tox
errcode = tox.cmdline(args=self.test_args)
sys.exit(errcode)
# Get the long description from the relevant file
BASE_DIR = os.path.abspath(os.path.dirname(__file__))
long_description = None
try:
with open(os.path.join(BASE_DIR, 'README-pypi.rst')) as f:
long_description = f.read()
except IOError:
pass
setup(
name='dotable',
version='0.1.1',
packages=['dotable'],
description='A module for accessing nested lists and dictionaries using json style dot notation.',
long_description=long_description,
license='Apache 2',
author='Marc Meszaros',
author_email='me@marcmeszaros.com',
url='https://github.com/MarcMeszaros/dotable',
keywords=[
''
],
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
],
tests_require=['tox'],
cmdclass={
'test': ToxTest
},
)