-
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.
- Loading branch information
Showing
7 changed files
with
51 additions
and
30 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
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import argparse | ||
from bincrafters_conan_remote.generate import run_generate | ||
from bincrafters_conan_remote.remote import run_remote | ||
|
||
|
||
def run(): | ||
parser = argparse.ArgumentParser(description="Experimental. Don't use.") | ||
subparsers = parser.add_subparsers(dest="command") | ||
generate_parser = subparsers.add_parser("run", help="Run a local Conan remote that fetches external files.") | ||
|
||
|
||
generate_parser = subparsers.add_parser("generate", help="Generate a static Conan remote from an existing Conan remote.") | ||
generate_parser.add_argument("--port", type=int, default=8043, help="Port to run the FastAPI server.") | ||
generate_parser.add_argument("--remote-url", type=str, default="https://bincrafters.jfrog.io/artifactory/api/conan/conan-legacy-inexorgame/", help="Remote URL to generate the static remote from. It can not contain spaces or plus signs (+) and has to end on a slash.") | ||
generate_parser.add_argument("--remote-name", type=str, default="inexorgame", help="Remote URL to generate the static remote from.") | ||
|
||
args = parser.parse_args() | ||
|
||
if args.command == "run": | ||
run_remote(args) | ||
elif args.command == "generate": | ||
run_generate(args) |
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 +1,2 @@ | ||
fastapi>=0.111.0,<1 | ||
conan==1.* |
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