Skip to content

Commit

Permalink
Migrate to poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
mweinelt committed May 9, 2022
1 parent dbb181f commit 268f0dc
Show file tree
Hide file tree
Showing 7 changed files with 355 additions and 14 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
*.prom
__pycache__
9 changes: 1 addition & 8 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,6 @@ stdenv.mkDerivation {
name = "impurePythonEnv";

buildInputs = with python3Packages; [
python3Full
black
click
colorama
prometheus_client
requests
structlog
voluptuous
poetry
];
}
Empty file.
File renamed without changes.
327 changes: 327 additions & 0 deletions poetry.lock

Large diffs are not rendered by default.

26 changes: 26 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[tool.poetry]
name = "gluon-census-exporter"
version = "2022.05.10"
description = "Prometheus exporter for census data of Gluon communities"
authors = ["Martin Weinelt <[email protected]>"]
license = "MIT"

[tool.poetry.dependencies]
python = "^3.8"
click = "^8.1.3"
requests = "^2.27.1"
structlog = "^21.5.0"
prometheus-client = "^0.14.1"
voluptuous = "^0.13.1"

[tool.poetry.dev-dependencies]
black = "^22.3.0"
mypy = "^0.950"
isort = "^5.10.1"

[tool.poetry.scripts]
gluon-census-exporter = "gluon_census_exporter.__main__:main"

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
6 changes: 0 additions & 6 deletions requirements.txt

This file was deleted.

0 comments on commit 268f0dc

Please sign in to comment.