-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
77 lines (69 loc) · 2.2 KB
/
Copy pathpyproject.toml
File metadata and controls
77 lines (69 loc) · 2.2 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
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[project]
name = "gitlytics"
version = "0.6.3"
description = "Monitor and automate your GitHub repository traffic analytics."
readme = "README.md"
requires-python = ">=3.9"
license = { text = "Apache-2.0" }
authors = [
{ name = "Ameya Chopade", email = "ameyaccod171@gmail.com" }
]
# Fix #20: Add version lower-bounds to prevent silent breakage on old environments.
# These match the constraints already documented in requirements.txt.
# python-dotenv was removed from runtime deps — the library never reads .env;
# only tests use it, so it lives in the [dev] extra below.
dependencies = [
"requests>=2.32.0",
"pandas>=2.2.0",
"numpy>=1.26.0",
"croniter>=2.0.0"
]
keywords = [
"github",
"traffic",
"analytics",
"automation",
"cli"
]
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
]
[project.urls]
Homepage = "https://gitlytics.dev"
Documentation = "https://docs.gitlytics.dev"
Repository = "https://github.com/ameyachopade/gitlytics"
"Bug Tracker" = "https://github.com/ameyachopade/gitlytics/issues"
[project.optional-dependencies]
# Fix #20: dashboard extras are optional — base package works without them.
# requirements.txt was including them as mandatory; that was wrong.
dashboard = [
"fastapi>=0.111.0",
"uvicorn>=0.30.0",
"python-multipart>=0.0.9"
]
dev = [
"pytest>=8.0.0",
"pytest-cov>=5.0.0",
"httpx>=0.27.0", # required by FastAPI TestClient (used in test_api.py)
"anyio[trio]>=4.0.0", # async test support
"python-dotenv>=1.0.1" # only tests load .env — runtime package doesn't
]
[project.scripts]
gitlytics = "gitlytics.cli:main"
[tool.setuptools.packages.find]
where = ["src"]
include = ["gitlytics*"]
[tool.setuptools.package-data]
"gitlytics" = ["static/**/*", "static/*"]
[tool.pytest.ini_options]
# Only collect files that match the offline test naming convention.
# live_*.py scripts are excluded — they need a real GitHub token.
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]