Skip to content
This repository was archived by the owner on Mar 23, 2026. It is now read-only.

Commit 8ea5dfe

Browse files
authored
Merge pull request #56 from uc-cdis/feat/pypi
feat(pypi): change to pipfile and add auto-release logic to travis
2 parents c32b5d1 + 9c3feaa commit 8ea5dfe

File tree

5 files changed

+700
-17
lines changed

5 files changed

+700
-17
lines changed

.travis.yml

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,30 @@ language: python
22
python:
33
- '3.6'
44
sudo: false
5+
env:
6+
global:
7+
- PIPENV_IGNORE_VIRTUALENVS=1
8+
- secure: mLm9xvmW1+w0StFnkgCxE/OE9Ov6MCzb0eU8dZyANZCNKAMBCNIq2hKnySoaH9TN9vU8CGVxdCBSSC8B6BQ/kgTnpU/ZPevMKs1lPuvKSp1XJFW5dfx5YlKuBTNz/JegWhD9kOX3fbMm87e0wfMTCMpzjOZRPZSx15zIfMir1g9xTGB+dKazkGoQmiDrSpu4W0/UOGp0Ni3ISwAGt8lQ2wtZCQ6+vsPvdBnnSXWIS60MHzYIxxWbIPCDw21EcLJJH6IZyMpdWVfcYz3/Tsd4vtJGS9d3WXRpJqCrMUzdh1py/rzhiyh6LoqYsYIfge9sI/MYZ5TcCwS+jE42iL4k2WIVwWOANnc/kDo8RntEfx8+IxxbUHikogab0iaqj64xGhXbi5OzWnVTZZP2G17jcBL/Dxfa/OPltyLMuJRzrL/woaMJAQPv7sDqsuuaPJA1J8Ez+ZVqCVHVECrNyH+vgR2hi7w7Hp68Z9bDRTYvcBZ87WC/AaDIaHlAhUQt5CffBeIhAhHuh9WlHUcnrg7PbCruJ9yRJfy/glDJagEsvTHw7lVhlKNJPbioyH6iV5EYhAynNI/42ihh54PhOZ7jQLidfmBdiGIc6K5wgd8j/anReUqzy1HBNvK9J5itVnhbopY0ukjNkXKJ/aH7SDZAJnUpyPxsw8AIueIzzvpzMI0=
59
install:
6-
- pip install . --force --upgrade
7-
- pip install -r test-requirements.txt
8-
script: python -m pytest -vvvs tests
10+
- pip install pipenv
11+
- pipenv install --dev --deploy --python `which python`
12+
- pipenv graph
13+
script: pipenv run py.test -vv
14+
before_deploy:
15+
- sed -i.bak "s/=get_version()/='$TRAVIS_TAG'/g" setup.py
16+
- cat setup.py
17+
- if [ $(python setup.py --version) == '0.0.0' ]; then travis_terminate 1; fi
18+
deploy:
19+
provider: pypi
20+
user: uc-ctds
21+
skip_existing: true
22+
skip_cleanup: true
23+
on:
24+
python: 3.6
25+
repo: uc-cdis/indexclient
26+
tags: true
27+
password:
28+
secure: RS3H3mkw2FNMhhFd+j+jTzWchVgyVJO3zQZQRTe1k5jz8TLe03wus/U5i4yOyWhZkLkri7WCr0xhdDoAWoJiYCg6LMGTJWtfL4lSv7MNiynvJT3G1yWwD984Zv4idrqjdFEqEsszQY1woHSre8mj4XRbZLy8mI1NGl/pGej9SNkltt22y2NJr9R0lLh+01m9Ed5muuMClebd150Tx5oWuGbEYDkVwJVO/MjyUrhDMYzB1O51u+jQni+PQg9NCZ4HV+GDe4d8Er8MLfAxMYsPLMTcTxeqIODjLIu8grplTde/0zpJw+ZEHuiwC6E6QIJxHFW04ts69bcQ4k2E1u6SAYORkEZcC3VvEUP8vR1k3obhMfF+OYF55io4pzZSLXwedt5LKOAKQaj3qSEB/PPWcYSwyxCEy2tk4zTT7YU05epKGqioOCd4m21nWaHOLQ0j4nVK6Ko2uR4lGnpQPpErvzgJJfLCFiJ3c8YPX7lWBucePraO00S4wRpCRMgAJ9R5xrHT9g0epAF2tEPrLuGZkTRDOXC/XS0Fztrt2bcoc6XB+uFznemqSBVAuM5xQonxMHUPDVUU8q8B6L3pvkAYMzlBYFY8e49UtauqJxkmHTv8TzLqoGrYh1vQJMA/vUxsOpdQh+EWT5s61x26QfFEXeKxP7LtJ2xgNgrfxJQJjE4=
29+
after_deploy:
30+
- pipenv run pip install gen3git
31+
- pipenv run gen3git release

Pipfile

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
[[source]]
2+
name = "pypi"
3+
url = "https://pypi.org/simple"
4+
verify_ssl = true
5+
6+
[dev-packages]
7+
pytest = "*"
8+
mock = "*"
9+
cdisutilstest = {editable = true,git = "https://github.com/uc-cdis/cdisutils-test.git",ref = "1.0.0"}
10+
indexd = {editable = true,git = "https://github.com/uc-cdis/indexd.git",ref = "2.4.0"}
11+
doiclient = {editable = true,git = "https://github.com/uc-cdis/doiclient.git",ref = "1.0.0"}
12+
dosclient = {editable = true,git = "https://github.com/uc-cdis/dosclient.git",ref = "1.0.0"}
13+
hsclient = {editable = true,git = "https://github.com/uc-cdis/hsclient.git",ref = "1.0.0"}
14+
cdislogging = {editable = true,git = "https://github.com/uc-cdis/cdislogging.git",ref = "1.0.0"}
15+
16+
[packages]
17+
requests = "*"
18+
indexclient = {editable = true,path = "."}
19+
20+
[requires]
21+
python_version = "3.6"

0 commit comments

Comments
 (0)