Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,19 @@ jobs:

runs-on: ubuntu-18.04

strategy:
matrix:
python-version: ['3.6', '3.7', '3.8', '3.x']

name: Python ${{ matrix.python-version }} Tests

steps:
- uses: actions/checkout@v1
- name: Set up Python 3.6
- name: Setup python
uses: actions/setup-python@v1
with:
python-version: 3.6
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand All @@ -21,6 +28,6 @@ jobs:
- name: Lint with flake8
run: |
flake8 --ignore=F401 --exclude=$(grep -v '^#' .gitignore | xargs | sed -e 's/ /,/g')
- name: Test with unittest
- name: Unit Test with pytest
run: |
pytest
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -108,4 +108,5 @@ venv.bak/
.vscode
profile/data*

examples/data
examples/data
README.rst
5 changes: 5 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# 0.3.3 / 2020-04-23

* Test multiple python versions
* Installation problems: remove pandoc from setup.py

# 0.3.1 / 2021-04-08

* MIT License changed to Apache 2.0
Expand Down
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
include README.md
include README.rst
recursive-include test *.py
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
[![PyPI version](https://badge.fury.io/py/numpy-fracdiff.svg)](https://badge.fury.io/py/numpy-fracdiff)
[![numpy-fracdiff](https://snyk.io/advisor/python/numpy-fracdiff/badge.svg)](https://snyk.io/advisor/python/numpy-fracdiff)
[![Total alerts](https://img.shields.io/lgtm/alerts/g/ulf1/numpy-fracdiff.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/ulf1/numpy-fracdiff/alerts/)
[![Language grade: Python](https://img.shields.io/lgtm/grade/python/g/ulf1/numpy-fracdiff.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/ulf1/numpy-fracdiff/context:python)
[![deepcode](https://www.deepcode.ai/api/gh/badge?key=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwbGF0Zm9ybTEiOiJnaCIsIm93bmVyMSI6InVsZjEiLCJyZXBvMSI6Im51bXB5LWZyYWNkaWZmIiwiaW5jbHVkZUxpbnQiOmZhbHNlLCJhdXRob3JJZCI6Mjk0NTIsImlhdCI6MTYxOTU0MDI2N30.D99hoaXfMKuj6sva3Z0J3nJ9VXI6V_G1vyGEML9D0c4)](https://www.deepcode.ai/app/gh/ulf1/numpy-fracdiff/_/dashboard?utm_content=gh%2Fulf1%2Fnumpy-fracdiff)

# numpy-fracdiff
Fractional Difference for Time Series
Expand Down Expand Up @@ -35,7 +39,14 @@ pip install -r requirements-demo.txt
* Jupyter for the examples: `jupyter lab`
* Check syntax: `flake8 --ignore=F401 --exclude=$(grep -v '^#' .gitignore | xargs | sed -e 's/ /,/g')`
* Run Unit Tests: `pytest`
* Upload to PyPi with twine: `python setup.py sdist && twine upload -r pypi dist/*`

Publish

```sh
pandoc README.md --from markdown --to rst -s -o README.rst
python setup.py sdist
twine upload -r pypi dist/*
```

### Clean up

Expand Down
2 changes: 1 addition & 1 deletion numpy_fracdiff/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
__version__ = '0.3.2'
__version__ = '0.3.3'

from .fracdiff_fn import fracdiff
1 change: 1 addition & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# syntax check, unit test, profiling
setuptools>=56.0.0
flake8>=3.8.4
pytest>=6.2.1
twine==3.3.0
Expand Down
13 changes: 9 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
from setuptools import setup
import pypandoc
import os


def read(fname):
with open(os.path.join(os.path.dirname(__file__), fname)) as fp:
s = fp.read()
return s


def get_version(path):
Expand All @@ -15,14 +21,13 @@ def get_version(path):
setup(name='numpy-fracdiff',
version=get_version("numpy_fracdiff/__init__.py"),
description='Fractional Difference for Time Series',
long_description=pypandoc.convert('README.md', 'rst'),
long_description=read('README.rst'),
url='http://github.com/ulf1/numpy-fracdiff',
author='Ulf Hamster',
author_email='[email protected]',
license='MIT',
license='Apache License 2.0',
packages=['numpy_fracdiff'],
install_requires=[
'setuptools>=40.0.0',
'numpy>=1.18.*,<2',
'numba>=0.48.*'],
python_requires='>=3.6',
Expand Down