Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
andrea-manzi committed Oct 16, 2018
2 parents 6b295fa + 289d7ca commit 753ff6a
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 9 deletions.
10 changes: 5 additions & 5 deletions packaging/rpm/fts-rest.spec
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@
%{!?nosetest_path: %global nosetest_path "/tmp"}

Name: fts-rest
Version: 3.8.0
Version: 3.8.1
Release: 1%{?dist}
BuildArch: noarch
Summary: FTS3 Rest Interface
Group: Applications/Internet
License: ASL 2.0
URL: http://fts3-service.web.cern.ch/
# git clone https://gitlab.cern.ch/fts/fts-rest.git --depth 1 -b master fts-rest-3.8.0
# cd fts-rest-3.8.0
# git checkout v3.8.0
# git clone https://gitlab.cern.ch/fts/fts-rest.git --depth 1 -b master fts-rest-3.8.1
# cd fts-rest-3.8.1
# git checkout v3.8.1
# git submodule init && git submodule update
# cd ..
# tar vczf fts-rest-3.8.0.tar.gz --exclude-vcs fts-rest-3.8.0
# tar vczf fts-rest-3.8.1.tar.gz --exclude-vcs fts-rest-3.8.1
Source0: %{name}-%{version}.tar.gz

BuildRequires: gfal2-python
Expand Down
16 changes: 13 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,22 @@ def apply_pycurl_workaround():
os.system('pip install --build %s %s/pycurl' % (tmp_dir, tmp_dir))


# On EL7, you will probably have trouble installing pycurl due to this:
# https://github.com/pycurl/pycurl/issues/526 which has not yet released
# so we need to install a previos version of pycurl with
# pip install pycurl==7.43.0.1 --global-option="--with-nss
#def apply_pycurl_workaround_on_el7():
# print "Applying workaround for pycurl in EL7"
# is_pycurl_installed = (os.system('pip list | grep pycurl &> /dev/null') == 0)
# if not is_pycurl_installed:
# os.system('pip install pycurl%s --global-option="--with-nss"' % pycurl_ver)


# Ugly hack to pick a version that compiles in SLC6
pycurl_ver = '>=7.19'
pycurl_ver = '==7.19.0'
dist = platform.dist()
if dist[0] in ('redhat', 'centos'):
apply_m2crypto_workaround()

os_major = dist[1].split('.')[0]
if os_major == '6':
pycurl_ver = '==7.19.0'
Expand All @@ -57,7 +67,7 @@ def apply_pycurl_workaround():

setup(
name='fts3-rest',
version='3.8.0',
version='3.8.1',
description='FTS3 Python Libraries',
long_description='FTS3 Python Libraries',
author='FTS3 Developers',
Expand Down
2 changes: 1 addition & 1 deletion src/fts3rest/fts3rest/controllers/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
from fts3rest.lib.helpers import jsonify
from fts3rest.lib import api

API_VERSION = dict(major=3, minor=8, patch=0)
API_VERSION = dict(major=3, minor=8, patch=1)


def _get_fts_core_version():
Expand Down

0 comments on commit 753ff6a

Please sign in to comment.