Skip to content

Commit

Permalink
Merge pull request #12 from ThunderKey/feature-make-project-public
Browse files Browse the repository at this point in the history
Feature make project public
  • Loading branch information
ThunderKey authored Sep 26, 2023
2 parents 6f21145 + d443b69 commit 85357bc
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 16 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@

This tool requires at least Python 3.9 and [poetry](https://python-poetry.org/).

`pip install git+ssh://git@github.com/ThunderKey/python-tool-competition-2024.git`
(until made public)
`pip install python-tool-competition-2024`

### Creating a New Test Generator Project

Expand Down Expand Up @@ -71,5 +70,5 @@ directory.
## Improving the Competition Runner

- Installation: `poetry install`
- Testing: `tox` (`tox -p auto` for parallel execution)
- Testing: `tox`
- Use [pre-commit](https://pre-commit.com/) if possible.
9 changes: 6 additions & 3 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "python-tool-competition-2024"
version = "0.1.0"
version = "0.1.1"
description = "Pipeline to create test generators"
authors = ["Nicolas Erni <gann@zhaw.ch>"]
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion python_tool_competition_2024/cli/init_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def _create_pyproject_toml(config: _InitConfig, console: Console) -> None:
"--description=Python Tool Competition 2024 "
f"implementation using {config.readable_name}",
f"--author={config.author}",
"--dependency=git+ssh://git@github.com:ThunderKey/python-tool-competition-2024.git",
"--dependency=python-tool-competition-2024",
)

pyproject_path = config.project_dir / "pyproject.toml"
Expand Down
12 changes: 5 additions & 7 deletions tests/cli/test_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@
[tool.poetry.dependencies]
python = "^3.11"
python-tool-competition-2024 = {git = \
"git@github.com:ThunderKey/python-tool-competition-2024.git"}
python-tool-competition-2024 = "*"
[build-system]
Expand Down Expand Up @@ -148,8 +147,7 @@ def test_init_with_confirm(tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> N
"--name=python-tool-competition-2024-some-generator "
"--description=Python Tool Competition 2024 implementation using Some "
"Generator --author=Some Name <some@test.com> ",
"│ "
"--dependency=git+ssh://git@github.com:ThunderKey/python-tool-competition-2024.git",
"│ --dependency=python-tool-competition-2024",
f"└── Working Dir: {project_dir}",
"Installing Dependencies...",
"Running Command:",
Expand All @@ -170,7 +168,7 @@ def test_init_with_confirm(tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> N
"--description=Python Tool Competition 2024 implementation "
"using Some Generator",
"--author=Some Name <some@test.com>",
"--dependency=git+ssh://git@github.com:ThunderKey/python-tool-competition-2024.git",
"--dependency=python-tool-competition-2024",
),
),
run_kwargs,
Expand Down Expand Up @@ -298,7 +296,7 @@ def test_init_with_tmp_file(tmp_path: Path) -> None:
"--description=Python Tool Competition 2024 implementation "
"using TestGen",
"--author=Other Name <other@test.com>",
"--dependency=git+ssh://git@github.com:ThunderKey/python-tool-competition-2024.git",
"--dependency=python-tool-competition-2024",
),
),
run_kwargs,
Expand Down Expand Up @@ -564,7 +562,7 @@ def test_init_with_failing_init(tmp_path: Path) -> None:
"--description=Python Tool Competition 2024 implementation "
"using Some Generator",
"--author=Some Name <some@test.com>",
"--dependency=git+ssh://git@github.com:ThunderKey/python-tool-competition-2024.git",
"--dependency=python-tool-competition-2024",
),
),
run_kwargs,
Expand Down
2 changes: 1 addition & 1 deletion tests/cli/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def test_main_with_help(help_arg: str) -> None:

def test_main_with_version() -> None:
assert run_successful_cli(("--version",), generators_called=False) == (
"main-cli, version 0.1.0",
"main-cli, version 0.1.1",
)


Expand Down

0 comments on commit 85357bc

Please sign in to comment.