Skip to content

Commit a3718b4

Browse files
Merge pull request #151 from c-martinez/master
Automatically deploy tagged releases
2 parents f4e5e7d + 76c82ad commit a3718b4

File tree

7 files changed

+89
-40
lines changed

7 files changed

+89
-40
lines changed

.travis.yml

Lines changed: 38 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,46 @@
1-
cache:
2-
directories:
3-
- "$HOME/.cache/pip"
4-
- "$HOME/.pyenv"
1+
sudo: false
2+
language: python
3+
cache: pip
4+
python: 3.5
55

6-
matrix:
7-
include:
8-
- os: linux
9-
python: '2.7'
10-
- os: linux
11-
python: '3.6'
12-
- os: osx
13-
language: objective-c
14-
env: PYENV_VERSION=2.7.12
15-
- os: osx
16-
language: objective-c
17-
env: PYENV_VERSION=3.5.2
18-
# command to install dependencies
196
before_install:
207
- source .travis/before_install.sh
218
install:
229
- source .travis/install.sh
2310
# command to run tests
2411
script:
2512
- source .travis/run.sh
13+
14+
jobs:
15+
include:
16+
- stage: Tests
17+
os: linux
18+
python: '2.7'
19+
- stage: Tests
20+
os: linux
21+
python: '3.6'
22+
- stage: Tests
23+
os: osx
24+
language: objective-c
25+
env: PYENV_VERSION=2.7.12
26+
- stage: Tests
27+
os: osx
28+
language: objective-c
29+
env: PYENV_VERSION=3.5.2
30+
# command to install dependencies
31+
- stage: deploy
32+
# deploy automatically to pypi
33+
before_deploy:
34+
- source .travis/before_deploy.sh
35+
script: skip
36+
# deploy automatically to pypi
37+
deploy:
38+
provider: pypi
39+
server: https://pypi.org/legacy/
40+
user: nlesc
41+
distributions: sdist bdist_wheel
42+
password:
43+
secure: IDakMHNli6Ir+GFzCOxcxBc4c/UdP6il9ICzuiAvzxRa5+k2uxUtPwdXVXTq7dOrLSi4lNO3m16ipnJiDxVpM6BbnsLzbQgeGoHFdOUsNMSldt1A9syag+rplNtfyHoqwBb+ogwGDyZ1bjZMllnJfNoUFPJe2TwIQlQ+aHNiVwUEIHWZQBH+AfRNu+eeTArOu3Ln/E8IY8NJazt8UUF+Rwhl45GWGIRWCL6cV0YVdYpikUdAs+Ier+UO6wvRQ+G9/qik26+w2cXeej6HwSk4vl0DKhsxj6POYMwHeGc2wGMlJPn9hCgcBMU3Hgh4+CGXVQ36SiY3XCClUws9MAyrrbIXVGwt1QuuStjqQH77+kABGlGpnz0hfN+J8hLvzdF95316+eRezQ/5kilNqRAPb8+hbANqrev17N8bAQ+gQDBGjqZ2B6cr15YogvJHtunWkiuP44FJeQweTAiOjl/LHmWxc2b6o0Fs3ZYltWUHI4QTK01YIM73zp4dkr6gzfrGBH22Ut0zDpMTqGN+M8gxs/q8pRwvvd7XkuLSaWxrnS07W0rLsRaJHjbaclh1NifuNS3dNEgVxI8vNNKJUYNUELsk9RxCkn+CyBk5AzJa52PrPeCHcHD8YJAV2aT0etndyZvnnSRB7SqulItoZR1sE9JFe1srQ6etl4y+c6IBsbw=
44+
on:
45+
tags: true
46+
branch: master

.travis/before_deploy.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
3+
# Deactivate testing virtualenv and reactivate original one
4+
deactivate
5+
echo "Reactivating virtualenv:"
6+
echo $ORIG_ENV
7+
source $ORIG_ENV

.travis/before_install.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
#!/bin/bash
22

3+
# Store location of original virtualenv so we can reactivate it later
4+
ORIG_ENV="$(dirname $(which python))/activate"
5+
echo "Original virtualenv"
6+
echo $ORIG_ENV
7+
38
if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
49
brew install pyenv
510
pyenv install -s $PYENV_VERSION

CITATION.cff

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,4 @@ license: MIT
2424
message: "If you use this software, please cite it as below."
2525
repository-code: "https://github.com/CLARIAH/grlc"
2626
title: grlc
27-
version: "1.1"
28-
27+
version: "1.2.0"

MANIFEST.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
include requirements.txt
1+
include requirements.txt
2+
include requirements-test.txt

requirements.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ gunicorn==19.6.0
66
html5lib==0.9999999
77
isodate==0.5.4
88
itsdangerous==0.24
9-
Jinja2==2.8
109
keepalive==0.5
1110
MarkupSafe==0.23
1211
pyaml==15.8.2
@@ -18,5 +17,4 @@ requests==2.11.1
1817
six==1.10.0
1918
SPARQLWrapper==1.8.2
2019
Werkzeug==0.14.1
21-
wheel==0.24.0
2220
PyGithub==1.35

setup.py

Lines changed: 36 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,44 @@
11
#!/usr/bin/env python
22
# -*- coding: iso-8859-15 -*-
33

4-
from distutils.core import setup
4+
import codecs
55
import os
6-
7-
with open('requirements.txt') as f:
8-
required = f.read().splitlines()
6+
from setuptools import setup
97

108
grlc_base = 'src/'
119
grlc_data = [ root.replace(grlc_base, '') + '/*' for root,dirs,files in os.walk(grlc_base) if root !=grlc_base ]
12-
grlc_version = '1.0'
10+
grlc_version = '1.2.0'
11+
12+
with codecs.open('requirements.txt', mode='r') as f:
13+
install_requires = f.read().splitlines()
14+
15+
with codecs.open('requirements-test.txt', mode='r') as f:
16+
tests_require = f.read().splitlines()
17+
18+
with codecs.open('README.md', mode='r') as f:
19+
long_description = f.read()
1320

14-
setup(name='grlc',
15-
version=grlc_version,
16-
description='grlc, the git repository linked data API constructor',
17-
author='Albert Meroño',
18-
author_email='albert.merono@vu.nl',
19-
url='https://github.com/CLARIAH/grlc',
20-
download_url='https://github.com/CLARIAH/grlc/tarball/' + grlc_version,
21-
packages=['grlc'],
22-
package_dir = {'grlc': 'src'},
23-
package_data = {'grlc': grlc_data},
24-
scripts=['bin/grlc-server'],
25-
install_requires=required
26-
)
21+
setup(
22+
name="grlc",
23+
description='grlc, the git repository linked data API constructor',
24+
long_description=long_description,
25+
license="Copyright 2017 Albert Meroño",
26+
author='Albert Meroño',
27+
author_email='albert.merono@vu.nl',
28+
url='https://github.com/CLARIAH/grlc',
29+
version=grlc_version,
30+
py_modules=['grlc'],
31+
packages=['grlc'],
32+
package_dir = {'grlc': grlc_base},
33+
scripts=['bin/grlc-server'],
34+
install_requires=install_requires,
35+
setup_requires=[
36+
# dependency for `python setup.py test`
37+
'pytest-runner',
38+
# dependencies for `python setup.py build_sphinx`
39+
'sphinx',
40+
'recommonmark'
41+
],
42+
tests_require=tests_require,
43+
package_data = {'grlc': grlc_data},
44+
)

0 commit comments

Comments
 (0)