Skip to content
GitLab
Explore
Sign in
Hide whitespace changes
Inline
Side-by-side
rpcc/transformers/factory.py
View file @
057a89dc
# Copyright 2021-2022, Barcelona Supercomputing Center (BSC), Spain
#
# This software was partially supported by the EuroHPC-funded project ADMIRE
# (Project ID: 956748, https://www.admire-eurohpc.eu).
#
# This file is part of rpcc.
#
# rpcc is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
#
# rpcc is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty
# of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License along with rpcc. If not, see
# <https://www.gnu.org/licenses/>.
#
# SPDX-License-Identifier: GPL-3.0-or-later
from
rpcc.exceptions
import
assert_config
from
.base
import
FileTransformer
from
.cxx17
import
Cxx17FileTransformer
...
...
@@ -10,6 +28,6 @@ class FileTransformerFactory:
}
@staticmethod
def
create_transformer
(
name
:
str
)
->
FileTransformer
:
def
create_transformer
(
name
:
str
,
*
args
,
**
kwargs
)
->
FileTransformer
:
assert_config
(
name
,
FileTransformerFactory
.
FILE_TRANSFORMERS_BY_NAME
)
return
FileTransformerFactory
.
FILE_TRANSFORMERS_BY_NAME
[
name
]()
return
FileTransformerFactory
.
FILE_TRANSFORMERS_BY_NAME
[
name
](
*
args
,
**
kwargs
)
rpcc/version.py
View file @
057a89dc
# Copyright 2021-2022, Barcelona Supercomputing Center (BSC), Spain
#
# This software was partially supported by the EuroHPC-funded project ADMIRE
# (Project ID: 956748, https://www.admire-eurohpc.eu).
#
# This file is part of rpcc.
#
# rpcc is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
#
# rpcc is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty
# of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License along with rpcc. If not, see
# <https://www.gnu.org/licenses/>.
#
# SPDX-License-Identifier: GPL-3.0-or-later
__version__
=
"
0.1.0
"
setup.py
View file @
057a89dc
from
setuptools
import
setup
# import __version__ from version.py into this namespace
with
open
(
"
rpcc/version.py
"
)
as
f
:
exec
(
f
.
read
())
from
rpcc.version
import
__version__
setup
(
name
=
"
rpcc
"
,
...
...
Prev
1
2
Next