Skip to content

Commit 32265af

Browse files
authored
fix GBprocesS easyconfig by switching to source tarball created using git_config (#15048)
* fix GBprocesS easyconfig by switching to source tarball created using git_config * clarify why git_config is needed for GBprocesS
1 parent 90fe500 commit 32265af

1 file changed

Lines changed: 14 additions & 13 deletions

File tree

easybuild/easyconfigs/g/GBprocesS/GBprocesS-2.3-intel-2020a-Python-3.8.2.eb

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
easyblock = 'PythonPackage'
22

33
name = 'GBprocesS'
4+
local_commit = '82e21929'
45
version = '2.3'
56
versionsuffix = '-Python-%(pyver)s'
67

@@ -14,9 +15,18 @@ used."""
1415

1516
toolchain = {'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

2131
dependencies = [
2232
('Python', '3.8.2'),
@@ -29,17 +39,8 @@ use_pip = True
2939
sanity_pip_check = True
3040
download_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-
4242
sanity_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

Comments
 (0)