Skip to content

Commit

Permalink
manage Python package dependencies with pipenv (bugged)
Browse files Browse the repository at this point in the history
  • Loading branch information
steinerkelvin committed Jun 12, 2024
1 parent b8905ff commit 9718147
Show file tree
Hide file tree
Showing 5 changed files with 244 additions and 7 deletions.
1 change: 1 addition & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
use flake
layout pipenv
5 changes: 0 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@ rust-check-fmt:
rust-fmt:
cargo fmt --all

create-venv:
python3 -m venv venv
@echo "Enter venv with:"
@echo "source venv/bin/activate"

build:
cd crates/benda; \
maturin develop
12 changes: 12 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

[dev-packages]
# linter
ruff = ">=0.4.8,<0.5.0"
# static analysis
pylyzer = ">=0.0.54,<0.1.0"
# interactive shell
ipython = ">=8.25.0,<9.0.0"
229 changes: 229 additions & 0 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
inherit system overlays;
};

python3 = pkgs.python312;
python3 = pkgs.python3;
rust_toolchain = pkgs.rust-bin.fromRustupToolchainFile ./rust-toolchain.toml;

nativeBuildInputs = [
Expand All @@ -36,7 +36,7 @@
# Build tools
pkgs.maturin
# Python
pkgs.pyenv
(pkgs.pipenv.override { inherit python3; })
];

naersk' = pkgs.callPackage naersk {
Expand Down

0 comments on commit 9718147

Please sign in to comment.