-
Notifications
You must be signed in to change notification settings - Fork 355
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
11 changed files
with
142 additions
and
32 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
|
||
# Devenv | ||
.devenv* | ||
devenv.local.nix | ||
|
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,11 @@ | ||
#!/usr/bin/env bash | ||
set -exu | ||
POETRY_VENV="$PWD/directory/.venv" | ||
[ -d "$POETRY_VENV" ] | ||
[ "$(command -v python)" = "$POETRY_VENV/bin/python" ] | ||
python --version | ||
poetry --version | ||
python -c 'import requests' | ||
cd directory | ||
[ "$(poetry env info --path)" = "$POETRY_VENV" ] | ||
poetry run python -c 'import requests' |
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,13 @@ | ||
{ pkgs, config, ... }: | ||
|
||
{ | ||
languages.python = { | ||
enable = true; | ||
directory = "./directory"; | ||
poetry = { | ||
enable = true; | ||
install.enable = true; | ||
activate.enable = true; | ||
}; | ||
}; | ||
} |
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,3 @@ | ||
inputs: | ||
nixpkgs-python: | ||
url: github:cachix/nixpkgs-python |
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,17 @@ | ||
[build-system] | ||
requires = ["poetry-core"] | ||
build-backend = "poetry.core.masonry.api" | ||
|
||
[tool.poetry] | ||
name = "python-directory" | ||
version = "0.1.0" | ||
description = "" | ||
authors = [ | ||
"Bob van der Linden <[email protected]>", | ||
"Matthias Thym <[email protected]>" | ||
] | ||
readme = "README.md" | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.11" | ||
requests = "^2.30" |
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,13 +1,13 @@ | ||
#!/usr/bin/env bash | ||
set -exu | ||
|
||
POETRY_VENV="$PWD/.venv" | ||
[ -d "$POETRY_VENV" ] | ||
[ "$(poetry env info --path)" = "$POETRY_VENV" ] | ||
[ "$(command -v python)" = "$POETRY_VENV/bin/python" ] | ||
python --version | ||
poetry --version | ||
poetry run python -c "import os; print(os.environ['LD_LIBRARY_PATH'])" | ||
ls .devenv/profile/lib | ||
poetry run python -c 'import numpy' | ||
python -c 'import numpy' | ||
python -c 'import pjsua2' |
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,3 @@ | ||
inputs: | ||
nixpkgs-python: | ||
url: github:cachix/nixpkgs-python |
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,15 +1,17 @@ | ||
[build-system] | ||
requires = ["poetry-core"] | ||
build-backend = "poetry.core.masonry.api" | ||
|
||
[tool.poetry] | ||
name = "python-poetry" | ||
version = "0.1.0" | ||
version = "0.2.0" | ||
description = "" | ||
authors = ["Bob van der Linden <[email protected]>"] | ||
authors = [ | ||
"Bob van der Linden <[email protected]>", | ||
"Matthias Thym <[email protected]>" | ||
] | ||
readme = "README.md" | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.10" | ||
numpy = "^1.24.1" | ||
|
||
|
||
[build-system] | ||
requires = ["poetry-core"] | ||
build-backend = "poetry.core.masonry.api" |
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