-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add python 3.12 support, later poetry support
* update support range to 3.9 - 3.12 * update github tests accordingly * (potentially) update poetry support range
- Loading branch information
Showing
12 changed files
with
1,074 additions
and
1,061 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,27 @@ | ||
{ | ||
lib, | ||
python3, | ||
}: | ||
python3.pkgs.buildPythonPackage { | ||
pname = "poetry-plugin-pypi-proxy"; | ||
version = "0.1.3"; | ||
|
||
src = lib.cleanSource ./.; | ||
format = "pyproject"; | ||
|
||
nativeBuildInputs = with python3.pkgs; [ | ||
poetry-core | ||
]; | ||
|
||
propagatedBuildInputs = with python3.pkgs; [ | ||
]; | ||
|
||
checkInputs = with python3.pkgs; [ | ||
pytest | ||
pytest-mock | ||
wheel | ||
pytest-httpserver | ||
mypy | ||
types-setuptools | ||
]; | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,32 @@ | ||
{ | ||
inputs = { | ||
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; | ||
flake-parts.url = "github:hercules-ci/flake-parts"; | ||
systems.url = "github:nix-systems/default"; | ||
}; | ||
|
||
outputs = inputs: inputs.flake-parts.lib.mkFlake { inherit inputs; } { | ||
systems = import inputs.systems; | ||
perSystem = { pkgs, lib, ... }: let | ||
pyVers = map (v: "python${v}") [ "39" "310" "311" "312" "313" ]; | ||
in rec { | ||
packages = lib.listToAttrs (map | ||
(python: { | ||
name = "poetry-plugin-pypi-proxy-${python}"; | ||
value = pkgs.callPackage ./. { python3 = pkgs.${python}; }; | ||
}) | ||
pyVers | ||
) // { | ||
default = packages.poetry-plugin-pypi-proxy-python312; | ||
}; | ||
|
||
devShells.default = let | ||
in pkgs.mkShell { | ||
packages = [ pkgs.python312 ] ++ (with pkgs; [ | ||
poetry | ||
pre-commit | ||
]); | ||
}; | ||
}; | ||
}; | ||
} |
Oops, something went wrong.