-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding pypi and conda package build recipes
- Loading branch information
Showing
3 changed files
with
83 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 . |