-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
152 lines (136 loc) · 3.48 KB
/
pyproject.toml
File metadata and controls
152 lines (136 loc) · 3.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
[build-system]
requires = ["setuptools>=45", "wheel", "setuptools_scm[toml]>=6.2"]
build-backend = "setuptools.build_meta"
[project]
name = "carbon-ops"
version = "0.1.3"
description = "Application performance monitor (APM) for energy logging and carbon estimation in Python applications with uncertainty-aware marginal emissions"
readme = "README.md"
requires-python = ">=3.10"
license = {text = "MIT"}
authors = [
{name = "scrrlt"}
]
keywords = [
"application-performance-monitoring",
"energy-logging",
"carbon-accounting",
"carbon-estimation",
"marginal-carbon",
"telemetry",
"gpu-monitoring",
"cpu-monitoring",
"memory-profiling",
"uncertainty-propagation",
"sustainability",
"esg",
"audit-ledger",
"cryptographic-signing",
"green-computing",
"observability",
"python-library",
"scope-3",
"scope 3",
"csrd",
"esrs",
"esrs-e1",
"energy-efficiency",
"compliance",
]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"httpx>=0.25.0",
"pydantic-settings==2.12.0",
"psutil==5.9.8",
"cryptography==42.0.7",
"pydantic==2.12.5",
"portalocker==2.8.2",
]
[project.optional-dependencies]
gpu = [
"pynvml==11.5.0",
]
config = [
"pyyaml==6.0.1",
]
locking = [
"portalocker==2.8.2",
]
fastapi = [
"fastapi==0.116.1",
"starlette==0.47.2",
]
django = [
"django==5.2.7",
]
all = [
"pynvml==11.5.0",
"pyyaml==6.0.1",
"portalocker==2.8.2",
"fastapi==0.116.1",
"starlette==0.47.2",
"django==5.2.7",
]
dev = [
"pytest==9.0.2",
"pytest-cov>=5.0.0",
"black>=24.3.0",
"ruff==0.3.0",
"mypy>=1.9.0",
"bandit>=1.7.5",
"types-psutil==5.9.5.17",
"hypothesis==6.98.9",
"types-PyYAML==6.0.12.20241230",
]
[project.scripts]
carbon-governor = "carbon_ops.governor.daemon:main"
carbon-ops = "carbon_ops.cli:main"
[project.urls]
Homepage = "https://github.com/scrrlt/carbon-ops"
Documentation = "https://github.com/scrrlt/carbon-ops#readme"
Repository = "https://github.com/scrrlt/carbon-ops"
PyPI = "https://pypi.org/project/co2e/"
"Bug Tracker" = "https://github.com/scrrlt/carbon-ops/issues"
[tool.setuptools]
packages = { find = { where = ["src"] } }
[tool.setuptools.package-data]
"carbon_ops.data" = ["*.json"]
[tool.setuptools.package-dir]
"" = "src"
[tool.ruff]
line-length = 88
target-version = "py310"
[tool.ruff.lint]
select = ["E", "F"]
ignore = ["E501", "E402"]
[tool.bandit]
exclude_dirs = ["tests"]
skips = ["B101"] # Skip assert used
[tool.mypy]
python_version = "3.12"
strict = true
warn_unused_configs = true
explicit_package_bases = true
mypy_path = "./src"
[[tool.mypy.overrides]]
module = ["psutil", "yaml", "google.cloud.*"]
ignore_missing_imports = true
[tool.coverage.run]
source = ["carbon_ops"]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py", "*_test.py"]
pythonpath = ["src"]
addopts = "-v --cov=carbon_ops.telemetry --cov=carbon_ops.energy_logger --cov-report=term-missing --cov-report=xml --cov-branch --cov-fail-under=90"