Skip to content
Snippets Groups Projects
Commit 0c4b6dd2 authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

add docs, drop support for Python 2.7

parent 8f59e515
No related branches found
No related tags found
No related merge requests found
language: python
python:
- "2.7"
- "3.3"
- "3.4"
- "3.5"
- "pypy"
- "3.6"
- "3.7"
- "3.8"
- "nightly"
- "pypy3"
install:
- pip install -r requirements.txt
- pip install --force-reinstall "coverage>=4.0,<4.4" codeclimate-test-reporter
script:
- python setup.py nosetests
- python setup.py tests
- python setup.py sdist bdist bdist_wheel
after_success:
- codeclimate-test-reporter
notifications:
slack: digicort:lbgdFcFmWmHtHKDEMI3FwQK5
\ No newline at end of file
MIT License
Copyright (c) 2017 P.W. DMS s.c.
Copyright (c) 2017-2018 P.W. DMS s.c.
Copyright (c) 2018-2020 Piotr Maślanka
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
......
# Minimal makefile for Sphinx documentation
#
# You can set these variables from the command line, and also
# from the environment for the first two.
SPHINXOPTS ?=
SPHINXBUILD ?= sphinx-build
SOURCEDIR = .
BUILDDIR = _build
# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
.PHONY: help Makefile
# 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)
# Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Path setup --------------------------------------------------------------
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#
# import os
# import sys
# sys.path.insert(0, os.path.abspath('.'))
# -- Project information -----------------------------------------------------
project = 'firanka'
copyright = '2018-2020, Piotr Maślanka'
author = 'Piotr Maślanka'
# The full version, including alpha/beta/rc tags
release = '0.1.2'
# -- General configuration ---------------------------------------------------
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
]
# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
# This pattern also affects html_static_path and html_extra_path.
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
# -- Options for HTML output -------------------------------------------------
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
html_theme = 'alabaster'
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']
\ No newline at end of file
.. firanka documentation master file, created by
sphinx-quickstart on Fri Feb 7 14:22:52 2020.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Welcome to firanka's documentation!
===================================
.. toctree::
:maxdepth: 2
:caption: Contents:
Indices and tables
==================
* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`
@ECHO OFF
pushd %~dp0
REM Command file for Sphinx documentation
if "%SPHINXBUILD%" == "" (
set SPHINXBUILD=sphinx-build
)
set SOURCEDIR=.
set BUILDDIR=_build
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.
echo.If you don't have Sphinx installed, grab it from
echo.http://sphinx-doc.org/
exit /b 1
)
%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
goto end
:help
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
:end
popd
# coding=UTF-8
from __future__ import print_function, absolute_import, division
import copy
......
# coding=UTF-8
from __future__ import print_function, absolute_import, division
__all__ = [
'FirankaError',
......
# coding=UTF-8
from __future__ import print_function, absolute_import, division
import math
import six
import functools
from .exceptions import NotInDomainError
__all__ = [
......@@ -15,7 +11,7 @@ __all__ = [
def _pre_range(fun): # for making sure that first argument gets parsed as a Interval
@six.wraps(fun)
@functools.wraps(fun)
def inner(self, arg, *args, **kwargs):
if not isinstance(arg, Interval):
arg = Interval(arg)
......
# coding=UTF-8
from __future__ import absolute_import
from .base import DiscreteSeries, Series
from .bundle import SeriesBundle, DiscreteSeriesBundle
from .function import FunctionSeries
......
# coding=UTF-8
from __future__ import print_function, absolute_import, division
import inspect
......
# coding=UTF-8
from __future__ import print_function, absolute_import, division
import functools
import logging
......
# coding=UTF-8
from __future__ import print_function, absolute_import, division
from .base import Series
......
# coding=UTF-8
from __future__ import print_function, absolute_import, division
import six
......
# coding=UTF-8
from __future__ import print_function, absolute_import, division
import math
......
......@@ -3,10 +3,11 @@ description-file = README.md
license = MIT License
classifiers =
Programming Language :: Python
Programming Language :: Python :: 2.7
Programming Language :: Python :: 3.3
Programming Language :: Python :: 3.4
Programming Language :: Python :: 3.5
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: Implementation :: CPython
Programming Language :: Python :: Implementation :: PyPy
Operating System :: OS Independent
......@@ -27,10 +28,3 @@ universal=1
verbosity=1
detailed-errors=1
with-coverage=1
[isort]
add_imports =
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
\ No newline at end of file
......@@ -7,10 +7,14 @@ setup(
name='firanka',
version=__version__,
packages=find_packages(exclude=['tests.*', 'tests']),
tests_require=["nose", 'coverage>=4.0,<4.4'],
install_requires=open('requirements.txt', 'r').readlines(),
test_suite='nose.collector',
url='https://github.com/smok-serwis/firanka',
author=u'Piotr Maślanka',
author_email=u'piotrm@dms-serwis.com.pl',
author_email=u'pmaslanka@smok.co',
tests_require=[
"nose2", "mock", "coverage", "nose2[coverage_plugin]"
],
test_suite='nose2.collector.collector',
python_requires='!=2.7.*,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*',
)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment