Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
horta committed Jan 25, 2018
2 parents 5e1636b + f050faa commit b037275
Show file tree
Hide file tree
Showing 19 changed files with 199 additions and 345 deletions.
11 changes: 11 additions & 0 deletions .appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
build: off
clone_depth: 5
platform: x64
configuration: Release

environment:
PKG_NAME: optimix
PYTHON: "C:\\Python36-x64"

install:
- powershell -Command "(New-Object Net.WebClient).DownloadFile('https://raw.githubusercontent.com/horta/ci/master/appveyor.bat', 'appveyor.bat')" && appveyor.bat
47 changes: 11 additions & 36 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,43 +1,18 @@
os: linux
language: python
services: docker
git:
depth: 5
matrix:
include:
- python: 2.7
- python: 3.6
- env: DOCKER_IMAGE=quay.io/pypa/manylinux1_x86_64
- os: osx
language: generic
env: PYENV=py27
- os: osx
language: generic
env: PYENV=py36
before_install:
- travis_retry bash <(curl -s https://raw.githubusercontent.com/limix/travis-tools/master/get-travis-tools.sh)
- travis_retry travis/before-install.sh
install:
- travis_retry travis/install.sh
sudo: false
python: 3.6
env:
- PKG_NAME=optimix
addons:
apt:
packages:
- pandoc
script:
- travis_retry travis/script.sh
after_success:
- travis_retry travis/after-success.sh
- bash <(curl -fsSL https://raw.githubusercontent.com/horta/ci/master/travis.sh)
notifications:
email:
recipients:
- danilo.horta@gmail.com
on_success: change
on_success: never
on_failure: always
deploy:
provider: pypi
user: dhorta
password:
secure: Fg6zTcl4I6WK4m29VzJJLKLMQ30nOIRPgiUAN0dHHN0XcxZYuLvtxM3me1AlaRnMC4ALM5w+NWzXZt/n3P0ZXI4KtCunv+d0M6HITZYjluJfG595o7BsLItA7ZLSU6+EHRpKpLXKaD7brQcjr4Hdjdy+ty2rZaTcJIfoe2zoI1Vap/wDrzwvx90ob83JY2ZoAA9nnR8Kk4UkkULLbkqh/V9vn9fRlo/R6e0WzkmDDObXFUxeY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rEKB7JeZx6emtZgOeQq8+dcXsMHU7x7SySalW7Tf+Qq4GjF1tYcH1q4KNuYUSuV7D7hI3yl8S0GKvLha5k0=
- PKG_NAME=scipy_sugar
17 changes: 9 additions & 8 deletions LICENSE.txt → LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
MIT License
The MIT License (MIT)
=====================

Copyright (c) 2017 Danilo Horta
Copyright (c) `2018` `Danilo Horta`

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
Expand Down
7 changes: 3 additions & 4 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
include LICENSE.txt
include README.rst
include requirements.txt
include test-requirements.txt
include LICENSE.md
include README.md
include version.py
31 changes: 31 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# scipy-sugar

[![Travis](https://img.shields.io/travis/limix/scipy-sugar.svg?style=flat-square&label=linux%20%2F%20macos%20build)](https://travis-ci.org/limix/scipy-sugar) [![AppVeyor](https://img.shields.io/appveyor/ci/Horta/scipy-sugar.svg?style=flat-square&label=windows%20build)](https://ci.appveyor.com/project/Horta/scipy-sugar) [![Read the Docs (version)](https://img.shields.io/readthedocs/scipy-sugar/stable.svg?style=flat-square)](http://scipy-sugar.readthedocs.io/)

Missing SciPy functionalities.

## Install

Enter

```bash
pip install scipy-sugar
```

from the command-line.

## Running the tests

Enter

```python
python -c "import scipy_sugar; scipy_sugar.test()"
```

## Authors

* [Danilo Horta](https://github.com/horta)

## License

This project is licensed under the [MIT License](https://raw.githubusercontent.com/limix/scipy-sugar/master/LICENSE.md).
80 changes: 0 additions & 80 deletions README.rst

This file was deleted.

9 changes: 0 additions & 9 deletions conftest.py

This file was deleted.

4 changes: 2 additions & 2 deletions doc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = sphinx-build
SPHINXBUILD = python -msphinx
SPHINXPROJ = scipy-sugar
SOURCEDIR = .
BUILDDIR = _build
Expand All @@ -17,4 +17,4 @@ help:
# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
79 changes: 44 additions & 35 deletions doc/conf.py
Original file line number Diff line number Diff line change
@@ -1,56 +1,65 @@
from __future__ import unicode_literals

import re
from importlib import import_module
from os import getenv
from os.path import dirname, join, realpath
from time import strftime
import os
import sys

import sphinx_rtd_theme
from setuptools import find_packages

sys.path.insert(0, os.path.abspath('..'))

def get_init_metadata(name):
expr = re.compile(r"__%s__ *= *\"(.*)\"" % name)

dir_path = dirname(realpath(__file__))
pkgname = find_packages(where=join(dir_path, '..'))[0]
def get_version():
import scipy_sugar
return scipy_sugar.__version__

data = open(join("..", pkgname, "__init__.py")).read()

return re.search(expr, data).group(1).strip()
extensions = [
'sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.viewcode',
'sphinx.ext.intersphinx', 'sphinx.ext.napoleon'
]

templates_path = ['_templates']

if getenv("READTHEDOCS", "False") == "True":
source_suffix = '.rst'

prjname = getenv("READTHEDOCS_PROJECT", "unknown")
pkgname = prjname.replace("-", "_")
pkg = import_module(pkgname)
master_doc = 'index'

project = pkg.__name__
version = pkg.__version__
author = pkg.__author__
else:
project = get_init_metadata('name')
version = get_init_metadata('version')
author = get_init_metadata('author')
project = 'ndarray-listener'
copyright = '2018, Danilo Horta'
author = 'Danilo Horta'

extensions = [
'sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.intersphinx',
'sphinx.ext.coverage', 'sphinx.ext.viewcode', 'sphinx.ext.napoleon',
'sphinx.ext.mathjax'
]
napoleon_google_docstring = True
master_doc = 'index'
copyright = '%s, %s' % (strftime("%Y"), author)
version = get_version()
release = version
language = "en"

language = None

exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store', 'conf.py']

pygments_style = 'sphinx'

todo_include_todos = False

html_theme = 'sphinx_rtd_theme'
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]

html_sidebars = {
'**': [
'relations.html',
'searchbox.html',
]
}

htmlhelp_basename = 'ndarray-listenerdoc'

man_pages = [(master_doc, 'ndarray-listener', 'ndarray-listener Documentation',
[author], 1)]

epub_title = project
epub_author = author
epub_publisher = author
epub_copyright = copyright

epub_exclude_files = ['search.html']

intersphinx_mapping = {
'python': ('http://docs.python.org/', None),
'numpy': ('http://docs.scipy.org/doc/numpy/', None),
'pandas': ('http://pandas.pydata.org/pandas-docs/stable/', None)
}
10 changes: 5 additions & 5 deletions doc/make.bat
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pushd %~dp0
REM Command file for Sphinx documentation

if "%SPHINXBUILD%" == "" (
set SPHINXBUILD=sphinx-build
set SPHINXBUILD=python -msphinx
)
set SOURCEDIR=.
set BUILDDIR=_build
Expand All @@ -16,10 +16,10 @@ if "%1" == "" goto help
%SPHINXBUILD% >NUL 2>NUL
if errorlevel 9009 (
echo.
echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
echo.installed, then set the SPHINXBUILD environment variable to point
echo.to the full path of the 'sphinx-build' executable. Alternatively you
echo.may add the Sphinx directory to PATH.
echo.The Sphinx module was not found. Make sure you have Sphinx installed,
echo.then set the SPHINXBUILD environment variable to point to the full
echo.path of the 'sphinx-build' executable. Alternatively you may add the
echo.Sphinx directory to PATH.
echo.
echo.If you don't have Sphinx installed, grab it from
echo.http://sphinx-doc.org/
Expand Down
13 changes: 11 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,11 @@
numpy
scipy>=0.19.1
numpy>=1.14.0
optimix>=1.2.22
pypandoc>=1.4
pytest-pep8>=1.0.6
pytest-runner>=3.0
pytest>=3.2.5
scipy>=1.0.0
setuptools>=38.4.0
sphinx_rtd_theme>=0.2.4
sphinx>=1.6.6
toolz>=0.9.0
4 changes: 0 additions & 4 deletions rtd-requirements.txt

This file was deleted.

10 changes: 2 additions & 8 deletions scipy_sugar/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,6 @@
from . import stats
from .testit import test

__name__ = "scipy-sugar"
__version__ = "1.0.4"
__author__ = "Danilo Horta"
__author_email__ = "horta@ebi.ac.uk"
__version__ = "1.0.5"

__all__ = [
"__name__", "__version__", "__author__", "__author_email__", "test",
"stats"
]
__all__ = ["__version__", "test", "stats"]
Empty file.

0 comments on commit b037275

Please sign in to comment.