Skip to content

Commit d27c864

Browse files
committed
Initial commit, transferred from pims with more tests.
0 parents  commit d27c864

File tree

5 files changed

+633
-0
lines changed

5 files changed

+633
-0
lines changed

.gitignore

+124
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
# Created by .gitignore support plugin (hsz.mobi)
2+
### Python template
3+
# Byte-compiled / optimized / DLL files
4+
__pycache__/
5+
*.py[cod]
6+
7+
# tmp/backup files
8+
*~
9+
10+
# C extensions
11+
*.so
12+
13+
# Distribution / packaging
14+
.Python
15+
env/
16+
build/
17+
develop-eggs/
18+
dist/
19+
downloads/
20+
eggs/
21+
lib/
22+
lib64/
23+
parts/
24+
sdist/
25+
var/
26+
*.egg-info/
27+
.installed.cfg
28+
*.egg
29+
30+
# PyInstaller
31+
# Usually these files are written by a python script from a template
32+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
33+
*.manifest
34+
*.spec
35+
36+
# Installer logs
37+
pip-log.txt
38+
pip-delete-this-directory.txt
39+
40+
# Unit test / coverage reports
41+
htmlcov/
42+
.tox/
43+
.coverage
44+
.cache
45+
nosetests.xml
46+
coverage.xml
47+
cover/*
48+
49+
# Translations
50+
*.mo
51+
*.pot
52+
53+
# Django stuff:
54+
*.log
55+
56+
# Sphinx documentation
57+
docs/_build/
58+
59+
# PyBuilder
60+
target/
61+
62+
63+
64+
### Python template
65+
# Byte-compiled / optimized / DLL files
66+
__pycache__/
67+
*.py[cod]
68+
69+
# C extensions
70+
*.so
71+
72+
# Distribution / packaging
73+
.Python
74+
env/
75+
build/
76+
develop-eggs/
77+
dist/
78+
downloads/
79+
eggs/
80+
lib/
81+
lib64/
82+
parts/
83+
sdist/
84+
var/
85+
*.egg-info/
86+
.installed.cfg
87+
*.egg
88+
89+
# PyInstaller
90+
# Usually these files are written by a python script from a template
91+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
92+
*.manifest
93+
*.spec
94+
95+
# Installer logs
96+
pip-log.txt
97+
pip-delete-this-directory.txt
98+
99+
# Unit test / coverage reports
100+
htmlcov/
101+
.tox/
102+
.coverage
103+
.cache
104+
nosetests.xml
105+
coverage.xml
106+
107+
# Translations
108+
*.mo
109+
*.pot
110+
111+
# Django stuff:
112+
*.log
113+
114+
# Sphinx documentation
115+
docs/_build/
116+
117+
# PyBuilder
118+
target/
119+
120+
# PyCharm
121+
.idea/
122+
123+
#ipython notebook stuff
124+
.ipynb_checkpoints/

run_tests.py

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
#!/usr/bin/env python
2+
# This file is closely based on tests.py from matplotlib
3+
#
4+
# This allows running the matplotlib tests from the command line: e.g.
5+
#
6+
# $ python run_tests.py -v -d
7+
#
8+
# The arguments are identical to the arguments accepted by nosetests.
9+
#
10+
# See https://nose.readthedocs.org/ for a detailed description of
11+
# these options.
12+
13+
14+
import nose
15+
from nose.plugins import multiprocess
16+
# from skxray.testing.noseclasses import KnownFailure
17+
18+
# plugins = [KnownFailure]
19+
plugins = []
20+
env = {"NOSE_WITH_COVERAGE": 1,
21+
'NOSE_COVER_PACKAGE': 'sliceable_iterable',
22+
'NOSE_COVER_HTML': 1}
23+
# Nose doesn't automatically instantiate all of the plugins in the
24+
# child processes, so we have to provide the multiprocess plugin with
25+
# a list.
26+
27+
multiprocess._instantiate_plugins = plugins
28+
29+
30+
def run():
31+
nose.main(addplugins=[x() for x in plugins], env=env)
32+
33+
34+
if __name__ == '__main__':
35+
run()

setup.py

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
from setuptools import setup
2+
3+
setup(name='history',
4+
version='0.1.0',
5+
author='Daniel B. Allan'
6+
py_modules=['sliceable_iterable'],
7+
description='A lazy-loading, fancy-sliceable iterable.',
8+
url='http://github.com/soft-matter/sliceable-iterable',
9+
platforms='Cross platform (Linux, Mac OSX, Windows)',
10+
requires=['six']
11+
)

0 commit comments

Comments
 (0)