Skip to content

Commit 6a9b60c

Browse files
committed
Prepare release
1 parent a7ce930 commit 6a9b60c

5 files changed

Lines changed: 27 additions & 23 deletions

File tree

CHANGES.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
3.1.24
2+
Update documentation
3+
Fix tests
4+
Remove dependency on python3-future
15
3.1.23:
26
Use pytest instead of nose
37
3.1.21:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ From source:
110110

111111
After dependencies installation, go in BioMAJ source directory:
112112

113-
python setup.py install
113+
pip install .
114114

115115
From packages:
116116

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def run(self):
3636
'url': 'http://biomaj.genouest.org',
3737
'download_url': 'http://biomaj.genouest.org',
3838
'author_email': 'olivier.sallou@irisa.fr',
39-
'version': '3.1.23',
39+
'version': '3.1.24',
4040
'classifiers': [
4141
# How mature is this project? Common values are
4242
# 3 - Alpha

tests/biomaj_tests.py

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def clean(self):
7777
def __copy_test_bank_properties(self):
7878
if self.bank_properties is not None:
7979
return
80-
self.bank_properties = ['alu', 'local', 'testhttp','directhttp',
80+
self.bank_properties = ['pdbaa', 'local', 'testhttp','directhttp',
8181
'alu_list_error']
8282
curdir = os.path.dirname(os.path.realpath(__file__))
8383
for b in self.bank_properties:
@@ -146,10 +146,10 @@ def setup_method(self, m):
146146
BiomajConfig.load_config(self.utils.global_properties, allow_user_config=False)
147147

148148
# Delete all banks
149-
b = Bank('alu')
149+
b = Bank('pdbaa')
150150
b.banks.remove({})
151151

152-
self.config = BiomajConfig('alu')
152+
self.config = BiomajConfig('pdbaa')
153153
data_dir = self.config.get('data.dir')
154154
lock_file = os.path.join(data_dir,'alu.lock')
155155
if os.path.exists(lock_file):
@@ -166,13 +166,13 @@ def test_new_bank(self):
166166
"""
167167
Checks bank init
168168
"""
169-
b = Bank('alu')
169+
b = Bank('pdbaa')
170170

171171
def test_new_session(self):
172172
"""
173173
Checks an empty session is created
174174
"""
175-
b = Bank('alu')
175+
b = Bank('pdbaa')
176176
b.load_session(UpdateWorkflow.FLOW)
177177
for key in b.session._session['status'].keys():
178178
assert not(b.session.get_status(key))
@@ -181,14 +181,14 @@ def test_session_reload_notover(self):
181181
"""
182182
Checks a session is used if present
183183
"""
184-
b = Bank('alu')
184+
b = Bank('pdbaa')
185185
for i in range(1, 5):
186-
s = Session('alu', self.config, UpdateWorkflow.FLOW)
186+
s = Session('pdbaa', self.config, UpdateWorkflow.FLOW)
187187
s._session['status'][Workflow.FLOW_INIT] = True
188188
b.session = s
189189
b.save_session()
190190

191-
b = Bank('alu')
191+
b = Bank('pdbaa')
192192
b.load_session(UpdateWorkflow.FLOW)
193193
assert (b.session.get_status(Workflow.FLOW_INIT))
194194

@@ -198,7 +198,7 @@ def test_clean_old_sessions(self):
198198
"""
199199
b = Bank('local')
200200
for i in range(1,5):
201-
s = Session('alu', self.config, UpdateWorkflow.FLOW)
201+
s = Session('pdbaa', self.config, UpdateWorkflow.FLOW)
202202
s._session['status'][Workflow.FLOW_INIT] = True
203203
b.session = s
204204
b.save_session()
@@ -211,20 +211,20 @@ def test_session_reload_over(self):
211211
"""
212212
Checks a session if is not over
213213
"""
214-
b = Bank('alu')
214+
b = Bank('pdbaa')
215215
for i in range(1,5):
216-
s = Session('alu', self.config, UpdateWorkflow.FLOW)
216+
s = Session('pdbaa', self.config, UpdateWorkflow.FLOW)
217217
s._session['status'][Workflow.FLOW_INIT] = True
218218
s._session['status'][Workflow.FLOW_OVER] = True
219219
b.session = s
220220
b.save_session()
221221

222-
b = Bank('alu')
222+
b = Bank('pdbaa')
223223
b.load_session(UpdateWorkflow.FLOW)
224224
assert not (b.session.get_status(Workflow.FLOW_INIT))
225225

226226
def test_bank_list(self):
227-
b1 = Bank('alu')
227+
b1 = Bank('pdbaa')
228228
b2 = Bank('local')
229229
banks = Bank.list()
230230
assert (len(banks) == 2)
@@ -237,7 +237,7 @@ def test_get_release(self):
237237
"""
238238
Get release
239239
"""
240-
b = Bank('alu')
240+
b = Bank('pdbaa')
241241
b.load_session(UpdateWorkflow.FLOW)
242242
res = b.update()
243243
assert (b.session.get('update'))
@@ -249,9 +249,9 @@ def test_get_release(self):
249249
reason='network tests disabled'
250250
)
251251
def test_remove_session(self):
252-
b = Bank('alu')
252+
b = Bank('pdbaa')
253253
for i in range(1,5):
254-
s = Session('alu', self.config, UpdateWorkflow.FLOW)
254+
s = Session('pdbaa', self.config, UpdateWorkflow.FLOW)
255255
s._session['status'][Workflow.FLOW_INIT] = True
256256
b.session = s
257257
b.save_session()
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
### Initialization ###
44

55
db.fullname="alu.n : alu repeat element. alu.a : translation of alu.n repeats"
6-
db.name=alu
6+
db.name=pdbaa
77
db.type=nucleic_protein
88

9-
offline.dir.name=offline/ncbi/blast/alu_tmp
10-
dir.version=ncbi/blast/alu
9+
offline.dir.name=offline/ncbi/blast/pdbaa_tmp
10+
dir.version=ncbi/blast/pdbaa
1111

1212
frequency.update=0
1313

@@ -24,12 +24,12 @@ release.file=
2424
release.regexp=
2525
release.file.compressed=
2626

27-
remote.files=^alu.*\.gz$
27+
remote.files=^pdbaa.*\.gz$
2828

2929
#Uncomment if you don't want to extract the data files.
3030
#no.extract=true
3131

32-
local.files=^alu\.(a|n).*
32+
local.files=^pdbaa\.*$
3333

3434
## Post Process ## The files should be located in the projectfiles/process directory
3535

0 commit comments

Comments
 (0)