Skip to content

Commit

Permalink
Improvements to the Conda package (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
clintval committed Dec 28, 2018
1 parent 283245b commit 032a3ec
Show file tree
Hide file tree
Showing 77 changed files with 44 additions and 274 deletions.
19 changes: 19 additions & 0 deletions .codecov.yml
@@ -0,0 +1,19 @@
coverage:
precision: 1
round: down
status:
project:
default:
enabled: yes
target: 95%
threshold: 0.25%
patch:
default:
target: auto

comment:
layout: "diff"
behavior: default
require_changes: no
require_base: no
require_head: yes
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -4,6 +4,7 @@
[![codecov](https://codecov.io/gh/clintval/snakescale/branch/master/graph/badge.svg)](https://codecov.io/gh/clintval/snakescale)
[![Documentation Build Status](https://readthedocs.org/projects/snakescale/badge/?version=latest)](https://snakescale.readthedocs.io/en/latest/?badge=latest)
[![PyPi Release](https://badge.fury.io/py/snakescale.svg)](https://badge.fury.io/py/snakescale)
[![Anaconda-Server Badge](https://anaconda.org/clintval/snakescale/badges/version.svg)](https://anaconda.org/clintval/snakescale)
[![Python Versions](https://img.shields.io/pypi/pyversions/snakescale.svg)](https://pypi.python.org/pypi/snakescale/)
[![MyPy Checked](http://www.mypy-lang.org/static/mypy_badge.svg)](http://mypy-lang.org/)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black)
Expand Down
263 changes: 0 additions & 263 deletions Untitled.ipynb

This file was deleted.

7 changes: 4 additions & 3 deletions conda-recipe/meta.yaml
@@ -1,16 +1,17 @@
{% set name = "snakescale" %}
{% set version = "0.3.0" %}
{% set version = "0.4.0" %}

package:
name: "{{ name|lower }}"
version: "{{ version }}"

source:
#url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz
#sha256: cf7775431ab352a3f2bf957ca0ab4ea93560ba0e1fa1dddeccf4269d077dfca1
url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz
sha256: 4cf5b989aef26491a618d8fa3339f936da16f6a9e4237f8fe6a94e4ae34d0540

build:
number: 0
noarch: python
script: "{{ PYTHON }} -m pip install . --no-deps --ignore-installed -vv "

requirements:
Expand Down
4 changes: 2 additions & 2 deletions docs/conf.py
Expand Up @@ -18,9 +18,9 @@
author = 'clintval'

# The short X.Y version
version = '0.3'
version = '0.4'
# The full version, including alpha/beta/rc tags
release = '0.3.0'
release = '0.4.0'

# -- General configuration ---------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -4,7 +4,7 @@
from pathlib import Path

PACKAGE = 'snakescale'
VERSION = '0.3.0'
VERSION = '0.4.0'

setuptools.setup(
name=PACKAGE,
Expand Down
2 changes: 1 addition & 1 deletion snakescale/__init__.py
Expand Up @@ -18,7 +18,7 @@

DEFAULT_SCALE_FILENAME = 'wrapper.py'
DEFAULT_SCALE_VERSION = 'latest'
WRAPPER_ROOT_PATH = Path(__file__).parent.parent / 'wrappers'
WRAPPER_ROOT_PATH = Path(__file__).parent / 'wrappers'

AVAILABLE_WRAPPER_VERSIONS = set(map(lambda _: _.name, WRAPPER_ROOT_PATH.glob('*')))

Expand Down
6 changes: 6 additions & 0 deletions snakescale/wrappers/latest/bedtools/subtract/environment.yaml
@@ -0,0 +1,6 @@
channels:
- clinval
- bioconda
dependencies:
- snakescale
- bedtools
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
10 changes: 10 additions & 0 deletions tests/conftest.py
@@ -0,0 +1,10 @@
from snakescale import WRAPPER_ROOT_PATH, DEFAULT_SCALE_FILENAME

collect_ignore = ['setup.py']

print(WRAPPER_ROOT_PATH)

for path in WRAPPER_ROOT_PATH.rglob(DEFAULT_SCALE_FILENAME):
collect_ignore.append(str(path))

print(collect_ignore)
4 changes: 0 additions & 4 deletions wrappers/latest/bedtools/subtract/environment.yaml

This file was deleted.

0 comments on commit 032a3ec

Please sign in to comment.