Skip to content

Commit e13ad43

Browse files
authored
Merge pull request #31 from eoap/develop
feat: removed cli, it will be migrated to transpiler-mate
2 parents a66defa + e7c885e commit e13ad43

6 files changed

Lines changed: 1 addition & 194 deletions

File tree

docs/cli.md

Lines changed: 0 additions & 45 deletions
This file was deleted.

mkdocs.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ nav:
8686
- complex-cwl-types.ipynb
8787
- imported-cwl-types.ipynb
8888
- string-formats.ipynb
89-
- cli.md
9089
- schema.ipynb
9190
- API doc: api/latest/cwl2ogc.md
9291

pyproject.toml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,10 @@ classifiers = [
2727
"Programming Language :: Python :: Implementation :: PyPy",
2828
]
2929
dependencies = [
30-
"click==8.3.2",
3130
"cwl-utils==0.41",
3231
"loguru==0.7.3",
33-
"transpiler-mate==0.43.0"
3432
]
3533

36-
[project.scripts]
37-
cwl2ogc = "cwl2ogc.cli:main"
38-
3934
[project.urls]
4035
Documentation = "https://github.com/eoap/cwl2ogc#readme"
4136
Issues = "https://github.com/eoap/cwl2ogc/issues"

src/cwl2ogc/__about__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
__version__ = "0.17.0"
15+
__version__ = "0.18.0"

src/cwl2ogc/cli.py

Lines changed: 0 additions & 121 deletions
This file was deleted.

tests/test_conversion.py

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,9 @@
1818

1919
import pytest
2020
import yaml
21-
from click.testing import CliRunner
2221
from cwl_utils.parser import load_document_by_yaml
2322

2423
from cwl2ogc import BaseCWLtypes2OGCConverter
25-
from cwl2ogc.cli import main
2624

2725

2826
ARTIFACTS_DIR = Path("tests/artifacts")
@@ -123,22 +121,3 @@ def test_dump_methods_emit_valid_json():
123121
for stream in streams:
124122
data = json.loads(stream.getvalue())
125123
assert isinstance(data, dict)
126-
127-
128-
def test_cli_writes_process_json(tmp_path: Path):
129-
output = tmp_path / "process.json"
130-
source = CWL_TYPES_DIR / "inp.cwl"
131-
132-
runner = CliRunner()
133-
result = runner.invoke(
134-
main,
135-
[str(source), "--workflow-id", "inp", "--output", str(output)],
136-
)
137-
138-
assert result.exit_code == 0
139-
assert output.exists()
140-
141-
process = load_json(output)
142-
assert process["id"] == "inp"
143-
assert "inputs" in process
144-
assert "outputs" in process

0 commit comments

Comments
 (0)