forked from bollwyvl/yamlmagic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
62 lines (55 loc) · 1.76 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
61
62
import os
from setuptools import setup
# you'd add this, too, for `python setup.py test` integration
from setuptools.command.test import test as TestCommand
class YAMLMagicTestCommand(TestCommand):
def run_tests(self):
# Run nose ensuring that argv simulates running nosetests directly
import nose
nose.run_exit(argv=[
"nosetests",
"--with-nosebook",
"--verbosity=3"
])
def read(fname):
"""
Utility function to read the README file.
Used for the long_description. It's nice, because now 1) we have a top
level README file and 2) it's easier to type in the README file than to put
a raw string in below ...
"""
with open(os.path.join(os.path.dirname(__file__), fname)) as f:
return f.read()
setup(
name="yamlmagic",
version="0.2.0",
author="Nicholas Bollweg",
author_email="[email protected]",
description="a YAML magic for IPython notebooks",
license="BSD",
keywords="IPython yaml",
url="http://github.com/bollwyvl/yamlmagic",
py_modules=["yamlmagic"],
long_description=read("README.rst"),
test_suite="nose.collector",
classifiers=[
"Topic :: Utilities",
"Framework :: IPython",
"Natural Language :: English",
"Programming Language :: Python",
"Intended Audience :: Developers",
"Development Status :: 3 - Alpha",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"License :: OSI Approved :: BSD License",
"Topic :: Software Development :: Testing",
],
setup_requires=[
"nose",
"IPython",
"jsonschema",
"pyzmq",
"PyYAML"
],
cmdclass={"test": YAMLMagicTestCommand}
)