Skip to content

Commit

Permalink
adding pypi and conda package build recipes
Browse files Browse the repository at this point in the history
  • Loading branch information
maxibor committed Apr 27, 2020
1 parent 95c53ff commit 9128c64
Show file tree
Hide file tree
Showing 3 changed files with 83 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/publish_conda.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: publish_conda

on:
release:
types: [published, edited]

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: publish-to-conda
uses: maxibor/conda-package-publish-action@master
with:
subDir: 'conda'
AnacondaToken: ${{ secrets.ANACONDA_TOKEN }}
25 changes: 25 additions & 0 deletions .github/workflows/publish_pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: publish_pypi

on:
release:
types: [published, edited]

jobs:
build-and-publish:
name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
- name: Setup Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Build sourcepredict
run: |
pip install wheel
python setup.py sdist bdist_wheel
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_TOKEN }}

42 changes: 42 additions & 0 deletions conda/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{% set version = "0.1" %}

package:
name: pydamage
version: {{ version }}

source:
git_rev: {{ version }}
git_url: https://github.com/maxibor/pydamage.git

build:
number: 0
skip: true # [win and py27 or win32]
script: {{ PYTHON }} -m pip install . --no-deps -vv

requirements:
build:
- python
- setuptools
- pip
run:
- python>=3.7.6
- click>=7.0
- numpy>=1.17.5
- pandas>=1.0.0
- pip>=20.0.2
- pysam>=0.15.4
- scipy>=1.4.1
- statsmodels>=0.11.0
- matplotlib>=3.1.1
- tqdm>=4.45.0

test:
commands:
- pydamage --help

about:
home: https://github.com/maxibor/pydamage
license: GPL-3.0
summary: 'Damage parameter estimation for ancient DNA'

# Build using: conda build .

0 comments on commit 9128c64

Please sign in to comment.