-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #51 from oarepo/gitlab-pypi
Removed proxy, added gitlab urls
- Loading branch information
Showing
27 changed files
with
408 additions
and
307 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[project] | ||
name = "nrp-devtools" | ||
version = "1.0.18" | ||
version = "1.0.19" | ||
description = "NRP repository development tools" | ||
readme = "README.md" | ||
authors = [{ name = "Miroslav Simek", email = "[email protected]" }] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
from typing import Any | ||
|
||
from ..commands.alembic import build_alembic | ||
from ..commands.types import StepFunctions | ||
from ..config import OARepoConfig | ||
from .base import command_sequence, nrp_command | ||
|
||
|
||
@nrp_command.command(name="alembic") | ||
@command_sequence() | ||
def alembic_command(*, config: OARepoConfig, **kwargs): | ||
def alembic_command(*, config: OARepoConfig, **kwargs: Any) -> StepFunctions: | ||
"""Builds the repository""" | ||
return (build_alembic,) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,44 @@ | ||
from typing import Any | ||
|
||
import click | ||
|
||
from ..commands.forks import apply_forks | ||
from ..commands.resolver import get_resolver | ||
from ..config import OARepoConfig | ||
from .base import command_sequence, nrp_command | ||
from ..commands.resolver import get_resolver | ||
|
||
|
||
@nrp_command.group(name="forks") | ||
def forks_group(**kwargs): | ||
def forks_group(**kwargs: Any): | ||
pass | ||
|
||
|
||
@forks_group.command(name="add", help="Add a fork") | ||
@click.argument("python_package") | ||
@click.argument("git_fork_url") | ||
@command_sequence(save=True) | ||
def add_fork_command(*, config: OARepoConfig, python_package, git_fork_url, **kwargs): | ||
def add_fork_command( | ||
*, config: OARepoConfig, python_package: str, git_fork_url: str, **kwargs: Any | ||
): | ||
config.add_fork(python_package, git_fork_url) | ||
|
||
|
||
@forks_group.command(name="remove", help="Remove a fork") | ||
@click.argument("python_package") | ||
@command_sequence(save=True) | ||
def remove_fork_command(*, config: OARepoConfig, python_package, **kwargs): | ||
def remove_fork_command(*, config: OARepoConfig, python_package: str, **kwargs: Any): | ||
config.remove_fork(python_package) | ||
|
||
|
||
@forks_group.command(name="list", help="List all forks") | ||
@command_sequence() | ||
def list_forks_command(*, config: OARepoConfig, **kwargs): | ||
def list_forks_command(*, config: OARepoConfig, **kwargs: Any): | ||
for package, url in config.forks.items(): | ||
click.echo(f"{package}: {url}") | ||
|
||
|
||
@forks_group.command(name="apply", help="Apply all forks") | ||
@command_sequence() | ||
def apply_forks_command(*, config: OARepoConfig, **kwargs): | ||
def apply_forks_command(*, config: OARepoConfig, **kwargs: Any): | ||
resolver = get_resolver(config) | ||
apply_forks(config, resolver) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.