mirror of
https://github.com/Mic92/nix-fast-build.git
synced 2024-10-03 20:57:49 +03:00
also rename python modules to nix-fast-build
This commit is contained in:
parent
bbd3a6a024
commit
c7eb98770a
@ -6,7 +6,7 @@ sys.path.insert(
|
||||
0, os.path.join(os.path.dirname(os.path.dirname(os.path.realpath(__file__))))
|
||||
)
|
||||
|
||||
from nix_ci_build import main # NOQA
|
||||
from nix_fast_build import main # NOQA
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
@ -7,7 +7,11 @@ python311.pkgs.buildPythonApplication {
|
||||
version = "0.1.0";
|
||||
format = "pyproject";
|
||||
src = ./.;
|
||||
buildInputs = with python311.pkgs; [ setuptools bashInteractive ];
|
||||
buildInputs = with python311.pkgs; [
|
||||
setuptools
|
||||
bashInteractive
|
||||
python311.pkgs.pytest
|
||||
];
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
preFixup = ''
|
||||
makeWrapperArgs+=(--prefix PATH : ${path})
|
||||
|
@ -697,8 +697,8 @@ async def run(stack: AsyncExitStack, opts: Options) -> int:
|
||||
return 0
|
||||
|
||||
|
||||
async def async_main() -> None:
|
||||
opts = await parse_args(sys.argv[1:])
|
||||
async def async_main(args: list[str]) -> None:
|
||||
opts = await parse_args(args)
|
||||
|
||||
rc = 0
|
||||
async with AsyncExitStack() as stack:
|
||||
@ -712,6 +712,6 @@ async def async_main() -> None:
|
||||
|
||||
def main() -> None:
|
||||
try:
|
||||
asyncio.run(async_main())
|
||||
asyncio.run(async_main(sys.argv[1:]))
|
||||
except KeyboardInterrupt:
|
||||
pass # don't print a stack trace on Ctrl-C
|
@ -19,7 +19,7 @@ classifiers = [
|
||||
Homepage = "https://github.com/Mic92/nix-fast-build"
|
||||
|
||||
[project.scripts]
|
||||
nix-fast-build = "nix_ci_build:main"
|
||||
nix-fast-build = "nix_fast_build:main"
|
||||
|
||||
[tool.setuptools.packages]
|
||||
find = {}
|
||||
|
Loading…
Reference in New Issue
Block a user