-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
112 lines (46 loc) · 1.48 KB
/
setup.py
File metadata and controls
112 lines (46 loc) · 1.48 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""The Datakortet Basic utilities package: `dk`.
"""
classifiers = """\
Development Status :: 3 - Alpha
Intended Audience :: Developers
Programming Language :: Python
Programming Language :: Python :: 2
Programming Language :: Python :: 2.6
Programming Language :: Python :: 2.7
Programming Language :: Python :: 3
Programming Language :: Python :: 3.3
Topic :: Software Development :: Libraries
"""
import setuptools
from distutils.core import setup, Command
#version = eval(open('./package.json').read())['version']
version = '0.7.6'
class PyTest(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
import sys,subprocess
errno = subprocess.call([sys.executable, 'runtests.py'])
raise SystemExit(errno)
setup(
name='dk',
version=version,
requires=[],
install_requires=[],
description=__doc__.strip(),
classifiers=[line for line in classifiers.split('\n') if line],
long_description=open('README.rst').read(),
license="LGPL",
author='Bjorn Pettersen',
author_email='bp@datakortet.no',
url="http://thebjorn.github.io/dk/",
download_url='https://github.com/thebjorn/dk',
cmdclass={'test': PyTest},
packages=setuptools.find_packages(exclude=['tests*']),
zip_safe=False,
)