11easyblock = 'PythonPackage'
22
33name = 'GBprocesS'
4+ local_commit = '82e21929'
45version = '2.3'
56versionsuffix = '-Python-%(pyver)s'
67
@@ -14,9 +15,18 @@ used."""
1415
1516toolchain = {'name' : 'intel' , 'version' : '2020a' }
1617
17- source_urls = ['https://gitlab.com/dschaumont/GBprocesS/-/archive/%(version)s/' ]
18- sources = ['GBprocesS-%(version)s.tar.gz' ]
19- checksums = ['374fa7bc096e0cbc83746f505bea134117debed99b7510cb4123878aeaea9456' ]
18+ # need to use git_config rather than just downloading source tarball,
19+ # because .git subdirectory is required by setuptools-scm to determine version
20+ sources = [{
21+ 'filename' : 'GBprocesS-%%(version)s-%s.tar.gz' % local_commit ,
22+ 'git_config' : {
23+ 'url' : 'https://gitlab.com/dschaumont' ,
24+ 'repo_name' : name ,
25+ 'commit' : local_commit ,
26+ 'keep_git_dir' : True ,
27+ },
28+ }]
29+ checksums = [None ]
2030
2131dependencies = [
2232 ('Python' , '3.8.2' ),
@@ -29,17 +39,8 @@ use_pip = True
2939sanity_pip_check = True
3040download_dep_fail = True
3141
32- # The package uses setuptools-scm, so we avoid using the "version" part of it.
33- pretestopts = (
34- "sed -i 's/"
35- "__version__ = get_distribution(__name__).version/"
36- "__version__ = \" %(version)s\" /g' gbprocess/__init__.py && "
37- "sed -i \" s|use_scm_version={'write_to': 'gbprocess/version.py'}|version='%(version)s'|g\" setup.py && "
38- )
39-
40- runtest = 'python -m unittest discover -v -s ./test -p test_*.py'
41-
4242sanity_check_commands = [
43+ "cd %(builddir)s/GBprocesS && python -m unittest discover -v -s ./test -p test_*.py" ,
4344 "touch %(builddir)s/17146FL-13-01-01_S97_L002_R1_001.fastq" ,
4445 "touch %(builddir)s/17146FL-13-01-01_S97_L002_R2_001.fastq" ,
4546 # Trivial configuration file to use when running gbprocess sanity check
0 commit comments