also rename python modules to nix-fast-build

This commit is contained in:
Jörg Thalheim 2023-09-19 15:07:57 +02:00
parent bbd3a6a024
commit c7eb98770a
4 changed files with 10 additions and 6 deletions

View File

@ -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()

View File

@ -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})

View File

@ -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

View File

@ -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 = {}