Skip to content

Commit a77ca4f

Browse files
committed
Use project template from contrib
1 parent 5b54e04 commit a77ca4f

17 files changed

+242
-0
lines changed

.gitignore

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
# scikit-learn specific
10+
doc/_build/
11+
doc/auto_examples/
12+
doc/modules/generated/
13+
doc/datasets/generated/
14+
15+
# Distribution / packaging
16+
17+
.Python
18+
env/
19+
build/
20+
develop-eggs/
21+
dist/
22+
downloads/
23+
eggs/
24+
.eggs/
25+
lib/
26+
lib64/
27+
parts/
28+
sdist/
29+
var/
30+
*.egg-info/
31+
.installed.cfg
32+
*.egg
33+
34+
# PyInstaller
35+
# Usually these files are written by a python script from a template
36+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
37+
*.manifest
38+
*.spec
39+
40+
# Installer logs
41+
pip-log.txt
42+
pip-delete-this-directory.txt
43+
44+
# Unit test / coverage reports
45+
htmlcov/
46+
.tox/
47+
.coverage
48+
.coverage.*
49+
.cache
50+
nosetests.xml
51+
coverage.xml
52+
*,cover
53+
.hypothesis/
54+
55+
# Translations
56+
*.mo
57+
*.pot
58+
59+
# Django stuff:
60+
*.log
61+
62+
# Sphinx documentation
63+
doc/_build/
64+
doc/generated/
65+
66+
# PyBuilder
67+
target/

LICENSE

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
Copyright (c) 2016, Vighnesh Birodkar and scikit-learn-contrib contributors
2+
All rights reserved.
3+
4+
Redistribution and use in source and binary forms, with or without
5+
modification, are permitted provided that the following conditions are met:
6+
7+
* Redistributions of source code must retain the above copyright notice, this
8+
list of conditions and the following disclaimer.
9+
10+
* Redistributions in binary form must reproduce the above copyright notice,
11+
this list of conditions and the following disclaimer in the documentation
12+
and/or other materials provided with the distribution.
13+
14+
* Neither the name of project-template nor the names of its
15+
contributors may be used to endorse or promote products derived from
16+
this software without specific prior written permission.
17+
18+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
22+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
24+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
25+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
26+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include requirements.txt

README.rst

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
.. -*- mode: rst -*-
2+
3+
Fastfood algorithm
4+
==================
5+
6+
|Travis|_ |AppVeyor|_ |Codecov|_ |CircleCI|_ |ReadTheDocs|_
7+
8+
.. |Travis| image:: https://travis-ci.org/scikit-learn-contrib/project-template.svg?branch=master
9+
.. _Travis: https://travis-ci.org/scikit-learn-contrib/project-template
10+
11+
.. |AppVeyor| image:: https://ci.appveyor.com/api/projects/status/coy2qqaqr1rnnt5y/branch/master?svg=true
12+
.. _AppVeyor: https://ci.appveyor.com/project/glemaitre/project-template
13+
14+
.. |Codecov| image:: https://codecov.io/gh/scikit-learn-contrib/project-template/branch/master/graph/badge.svg
15+
.. _Codecov: https://codecov.io/gh/scikit-learn-contrib/project-template
16+
17+
.. |CircleCI| image:: https://circleci.com/gh/scikit-learn-contrib/project-template.svg?style=shield&circle-token=:circle-token
18+
.. _CircleCI: https://circleci.com/gh/scikit-learn-contrib/project-template/tree/master
19+
20+
.. |ReadTheDocs| image:: https://readthedocs.org/projects/sklearn-template/badge/?version=latest
21+
.. _ReadTheDocs: https://sklearn-template.readthedocs.io/en/latest/?badge=latest
22+
23+

appveyor.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
build: false
2+
3+
environment:
4+
matrix:
5+
- PYTHON: "C:\\Miniconda-x64"
6+
PYTHON_VERSION: "2.7.x"
7+
PYTHON_ARCH: "64"
8+
NUMPY_VERSION: "1.13.1"
9+
SCIPY_VERSION: "0.19.1"
10+
SKLEARN_VERSION: "0.19.1"
11+
12+
- PYTHON: "C:\\Miniconda3-x64"
13+
PYTHON_VERSION: "3.5.x"
14+
PYTHON_ARCH: "64"
15+
NUMPY_VERSION: "1.13.1"
16+
SCIPY_VERSION: "0.19.1"
17+
SKLEARN_VERSION: "0.19.1"
18+
19+
- PYTHON: "C:\\Miniconda3-x64"
20+
PYTHON_VERSION: "3.6.x"
21+
PYTHON_ARCH: "64"
22+
NUMPY_VERSION: "*"
23+
SCIPY_VERSION: "*"
24+
SKLEARN_VERSION: "*"
25+
26+
install:
27+
# Prepend miniconda installed Python to the PATH of this build
28+
# Add Library/bin directory to fix issue
29+
# https://github.com/conda/conda/issues/1753
30+
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PYTHON%\\Library\\bin;%PATH%"
31+
# install the dependencies
32+
- "conda install --yes pip numpy==%NUMPY_VERSION% scipy==%SCIPY_VERSION% scikit-learn==%SKLEARN_VERSION% nose pytest pytest-cov"
33+
- pip install codecov
34+
- pip install .
35+
36+
test_script:
37+
- mkdir for_test
38+
- cd for_test
39+
- pytest -v --cov=skltemplate --pyargs skltemplate
40+
41+
after_test:
42+
- cp .coverage %APPVEYOR_BUILD_FOLDER%
43+
- cd %APPVEYOR_BUILD_FOLDER%
44+
- codecov

enviornment.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
name: project-template
2+
dependencies:
3+
- numpy
4+
- scipy
5+
- scikit-learn

fastfood_ml/_version.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__version__ = '0.1.0'

0 commit comments

Comments
 (0)