Skip to content

Commit ed1bf6b

Browse files
Merge pull request #109 from intermine/1.14-update
Bump version to v1.14.0
2 parents ba72a0c + 289b23b commit ed1bf6b

4 files changed

Lines changed: 34 additions & 21 deletions

File tree

‎.github/workflows/im-build.yml‎

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ name: InterMine WS Python CI
22

33
on:
44
push:
5-
pull_request:
65

6+
env:
7+
SOLR_VERSION: 8.6.2
78
jobs:
89
build:
910

@@ -34,6 +35,11 @@ jobs:
3435
uses: actions/setup-python@v5
3536
with:
3637
python-version: '3.10'
38+
- name: Setup Apache Solr
39+
uses: DhavalGojiya/setup-solr-action@v1.2.0
40+
with:
41+
solr-version: ${{ env.SOLR_VERSION }}
42+
solr-core-name: 'intermine-search'
3743
- name: Change apt mirror
3844
run: |
3945
set -euo pipefail
@@ -44,7 +50,7 @@ jobs:
4450
- name: Install dependencies
4551
run: |
4652
set -euo pipefail
47-
sudo apt-get install libxml2-dev libxslt-dev python3-dev
53+
sudo apt-get install -y libxml2-dev libxslt-dev python3-dev wait-for-it
4854
python -m pip install --upgrade pip
4955
pip install -U setuptools
5056
pip install -r requirements.txt
@@ -54,10 +60,16 @@ jobs:
5460
sudo apt-get update -y
5561
sudo apt-get install -y libpq-dev postgresql-client
5662
sudo service postgresql start
63+
- name: Create additional Solr core
64+
run: |
65+
set -euo pipefail
66+
wait-for-it localhost:8983
67+
docker ps
68+
SOLR_CONTAINER=$(docker ps -f ancestor=solr:"$SOLR_VERSION" --format '{{.ID}}' | head -n1)
69+
docker exec "$SOLR_CONTAINER" /opt/solr/bin/solr create -c intermine-autocomplete
5770
- name: Run unit tests
5871
run: |
5972
set -euo pipefail
60-
./config/ci/init-solr.sh ${GITHUB_WORKSPACE}
61-
./config/ci/init.sh ${GITHUB_WORKSPACE} http://localhost:8080/intermine-demo
73+
./config/ci/init.sh ${GITHUB_WORKSPACE} $(which python3) http://localhost:8080/intermine-demo
6274
python setup.py test
6375
python setup.py livetest

‎README.md‎

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,25 @@ The InterMine Python Webservice Client
22
=====================================
33

44

5-
[![Build Status][badge]][ci]
5+
[![Build Status][badge]][ci]
66
![Version](http://img.shields.io/badge/version-1.12.0-blue.svg?style=flat)
7-
[![License](http://img.shields.io/badge/license-LGPL_2.1-blue.svg?style=flat)](https://github.com/intermine/intermine/blob/master/LICENSE)
7+
[![License](http://img.shields.io/badge/license-LGPL_2.1-blue.svg?style=flat)](https://github.com/intermine/intermine/blob/master/LICENSE)
88
[![Research software impact](http://depsy.org/api/package/pypi/intermine/badge.svg)](http://depsy.org/package/python/intermine)
99

1010
[![Conda](https://anaconda.org/intermine/intermine/badges/installer/conda.svg)](https://anaconda.org/bioconda/intermine)
1111
[![Anaconda-Server Badge](https://anaconda.org/bioconda/intermine/badges/version.svg)](https://anaconda.org/bioconda/intermine)
1212
[![Downloads](https://anaconda.org/bioconda/intermine/badges/downloads.svg)](https://anaconda.org/bioconda/intermine)
1313

1414

15-
An implementation of a webservice client
15+
An implementation of a webservice client
1616
for InterMine webservices, written in Python
1717

1818
Who should use this software?
1919
-----------------------------
2020

21-
This software is intended for people who make
21+
This software is intended for people who make
2222
use of InterMine datawarehouses (ie. Biologists)
23-
and who want a quicker, more automated way
23+
and who want a quicker, more automated way
2424
to perform queries. Some examples of sites that
2525
are powered by InterMine software, and thus offer
2626
a compatible webservice API, are:
@@ -36,9 +36,9 @@ a compatible webservice API, are:
3636

3737
See the [InterMine registry](http://registry.intermine.org/) for the full list of available InterMines.
3838

39-
Queries here refer to database queries over the
40-
integrated datawarehouse. Instead of using
41-
SQL, InterMine services use a flexible and
39+
Queries here refer to database queries over the
40+
integrated datawarehouse. Instead of using
41+
SQL, InterMine services use a flexible and
4242
powerful sub-set of database query language
4343
to enable wide-ranging and arbitrary queries.
4444

@@ -67,7 +67,7 @@ the following command: (from the source directory)
6767
python setup.py test
6868
```
6969

70-
If you want to run the suite against a live server (e.g. as deployed by the testmodel/setup.sh in
70+
If you want to run the suite against a live server (e.g. as deployed by the testmodel/setup.sh in
7171
the InterMine distribution, then you can run:
7272

7373
```
@@ -122,6 +122,7 @@ For example:
122122
Changes:
123123
--------
124124

125+
1.14.00 Add Python 3.10 support
125126
1.13.00 Added get_template_by_user method
126127
Added property view_types to the template
127128
1.12.00 Added organism to list upload
@@ -152,7 +153,7 @@ Changes:
152153
Ensure lists and queries share the same overloading
153154
0.99.02 Allow sort-orders which are not in the view but are on selected classes
154155
0.99.01 Better representation of multiple sort-orders.
155-
0.99.00 Fixed bug with subclasses not being included in clones
156+
0.99.00 Fixed bug with subclasses not being included in clones
156157
Added support for new json format for ws versions >= 8.
157158
0.98.16 Fixed bug with XML parsing and subclasses where the subclass is mentioned in the first view.
158159
better result format documentation and tests
@@ -184,7 +185,5 @@ Please cite
184185

185186
[Nucleic Acids Res. 2014 Jul;42(Web Server issue):W468-72](https://academic.oup.com/nar/article/42/W1/W468/2435235)
186187

187-
[![doi](http://img.shields.io/badge/doi-10.1093/nar/gku301-blue.svg?style=flat)](https://doi.org/10.1093/nar/gku301)
188+
[![doi](http://img.shields.io/badge/doi-10.1093/nar/gku301-blue.svg?style=flat)](https://doi.org/10.1093/nar/gku301)
188189
[![pubmed](http://img.shields.io/badge/pubmed-24753429-blue.svg?style=flat)](http://www.ncbi.nlm.nih.gov/pubmed/24753429)
189-
190-

‎config/ci/init.sh‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@
22

33
set -euo pipefail
44

5-
if [ "$#" != "2" ]; then
6-
echo "Usage: $0 <workspace_dir> <testmodel_url>"
5+
if [ "$#" != "3" ]; then
6+
echo "Usage: $0 <workspace_dir> <python executable> <testmodel_url>"
77
exit 2
88
fi
99

1010
WORKSPACE_DIR=$1
11-
TESTMODEL_URL=$2
11+
PYTHON=$2
12+
TESTMODEL_URL=$3
1213

1314
INTERMINE_DIR=${WORKSPACE_DIR}/server
1415
TESTMINE_DIR=${INTERMINE_DIR}/testmine
@@ -48,6 +49,7 @@ sed -i -e "s/PSQL_HOST/${PSQL_HOST}/" "$TESTMODEL_PROPS"
4849
sed -i -e "s/PSQL_USER/${PSQL_USER}/" "$TESTMODEL_PROPS"
4950
sed -i -e "s/PSQL_PWD/${PSQL_PWD}/" "$TESTMODEL_PROPS"
5051

52+
${PYTHON} "${INTERMINE_DIR}"/config/lib/install_intermine.py
5153

5254
# We will need a fully operational web-application
5355
echo '#---> Building and releasing web application to test against'

‎intermine/__init__.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
VERSION = "1.13.0"
1+
VERSION = "1.14.0"

0 commit comments

Comments
 (0)