Code indexing in gitaly is broken and leads to code not being visible to the user. We work on the issue with highest priority.

Skip to content
Snippets Groups Projects
Commit d0943837 authored by augustin_s's avatar augustin_s :snake:
Browse files

added files for packaging: setuptools, travis, conda

parent 48feb556
No related branches found
No related tags found
No related merge requests found
"%PYTHON%" setup.py install
if errorlevel 1 exit 1
$PYTHON setup.py install
{% set data = load_setup_py_data() %}
package:
name: sanipy
version: {{ data["version"] }}
about:
home: {{ data["url"] }}
summary: {{ data["description"] }}
source:
path: ..
build:
noarch: python
entry_points:
- sanipy = sani:main
requirements:
build:
- python >=3.6
- setuptools
run:
- python >=3.6
- pyepics
- colorama
- numpy
- pandas
language: python
python:
- 3.6
# Build only tagged commits
if: tag IS present
before_install:
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
- rm miniconda.sh # clean up here, so no warning is triggered during the final clean-up
- export PATH=$HOME/miniconda/bin:$PATH # if `source $HOME/miniconda/etc/profile.d/conda.sh` instead, anaconda is not found in deploy
- conda config --set always_yes yes
- conda config --set changeps1 no
- conda config --set anaconda_upload no
- conda config --append channels conda-forge
- conda config --append channels paulscherrerinstitute
install:
- conda update -q conda
- conda install -q python=$TRAVIS_PYTHON_VERSION conda-build conda-verify anaconda-client
- conda info -a
script:
- conda build .conda-recipe
deploy:
provider: script
script: anaconda -t $ANACONDA_TOKEN upload $HOME/miniconda/conda-bld/**/sanipy-*.tar.bz2
on:
branch: master
tags: true
notifications:
email: false
setup.py 0 → 100644
from setuptools import setup, find_packages
setup(
name="sanipy",
version="0.0.1",
url="https://github.com/augustin_s/sanipy",
description="A command-line tool for epics connection testing",
author="Paul Scherrer Institute",
packages=find_packages(),
py_modules=["sani", "commands"]
)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment