Skip to content

Commit

Permalink
Merge pull request #6 from ulf1/dev
Browse files Browse the repository at this point in the history
Fixes
  • Loading branch information
ulf1 committed Apr 27, 2021
2 parents 32a59f3 + 81f8e47 commit c9e62e7
Show file tree
Hide file tree
Showing 8 changed files with 39 additions and 9 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/syntax-and-unit-tests.yml
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 Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -108,3 +108,4 @@ venv.bak/
.vscode
profile/data*
.theia
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.1.3 / 2020-04-23

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

# 0.1.2 / 2021-04-08

* MIT License replaced by 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
14 changes: 12 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
[![PyPI version](https://badge.fury.io/py/scipy-tweaks.svg)](https://badge.fury.io/py/scipy-tweaks)

[![scipy-tweaks](https://snyk.io/advisor/python/scipy-tweaks/badge.svg)](https://snyk.io/advisor/python/scipy-tweaks)
[![Total alerts](https://img.shields.io/lgtm/alerts/g/ulf1/scipy-tweaks.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/ulf1/scipy-tweaks/alerts/)
[![Language grade: Python](https://img.shields.io/lgtm/grade/python/g/ulf1/scipy-tweaks.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/ulf1/scipy-tweaks/context:python)
[![deepcode](https://www.deepcode.ai/api/gh/badge?key=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwbGF0Zm9ybTEiOiJnaCIsIm93bmVyMSI6InVsZjEiLCJyZXBvMSI6InNjaXB5LXR3ZWFrcyIsImluY2x1ZGVMaW50IjpmYWxzZSwiYXV0aG9ySWQiOjI5NDUyLCJpYXQiOjE2MTk1NDA0MDR9.CRitUw9wkJfdXyNbjeOlHjm3IY3-QHUhpxnn1BRqskk)](https://www.deepcode.ai/app/gh/ulf1/scipy-tweaks/_/dashboard?utm_content=gh%2Fulf1%2Fscipy-tweaks)

# scipy-tweaks
Utility functions for scipy.
Expand Down Expand Up @@ -38,7 +41,14 @@ pip3 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
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
2 changes: 1 addition & 1 deletion scipy_tweaks/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
__version__ = '0.1.2'
__version__ = '0.1.3'

from .idseqs_to_mask import idseqs_to_mask
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='scipy-tweaks',
version=get_version("scipy_tweaks/__init__.py"),
description='Utility functions for scipy.',
long_description=pypandoc.convert('README.md', 'rst'),
long_description=read('README.rst'),
url='http://github.com/ulf1/scipy-tweaks',
author='Ulf Hamster',
author_email='554c46@gmail.com',
license='MIT',
license='Apache License 2.0',
packages=['scipy_tweaks'],
install_requires=[
'setuptools>=40.0.0',
'scipy>=1.5.4,<2'],
python_requires='>=3.6',
zip_safe=True)

0 comments on commit c9e62e7

Please sign in to comment.