-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathpyproject.toml
More file actions
178 lines (164 loc) · 4.8 KB
/
Copy pathpyproject.toml
File metadata and controls
178 lines (164 loc) · 4.8 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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
[build-system]
requires = ["setuptools>=61", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "collectoss"
requires-python = ">=3.10"
dynamic = ["version"]
description = "Python 3 package for free/libre and open-source software community metrics, models & data collection"
readme = "README.md"
authors = [{ name = "CHAOSS" }]
license = "MIT"
license-files = ["LICENSE"]
classifiers = [
"Intended Audience :: Developers",
"Topic :: Software Development :: Version Control",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
]
dependencies = [
"alembic>=1.17.1",
"alembic-utils==0.8.8",
"Beaker==1.11.0",
"boto3==1.17.57",
"bs4==0.0.1",
"celery~=5.5",
"click~=8.1",
"coloredlogs==15.0",
"emoji==1.2.0",
"flask==2.0.2",
"flask-cors==4.0.1",
"flask-login==0.5.0",
"flask_graphql",
"flower==2.0.1",
"gensim>=4.2.0",
"graphene",
"graphene_sqlalchemy",
"gunicorn==22.0.0",
"h5py==3.10.0",
"httpx==0.23.0",
"Jinja2~=3.0.3",
"joblib==1.2.0",
"keras>=2.15.0",
"keras-preprocessing",
"matplotlib>=3.5.1",
"mdpdf==0.0.18",
"nltk==3.6.6",
"numpy==1.26.0",
"pandas==1.5.3",
"partd>=0.3.10",
"protobuf<3.22",
"psutil==5.8.0",
"psycopg2-binary==2.9.9",
"python-crfsuite>=0.9.8",
"python-dotenv>=1.2.1",
"pyYaml",
"redis==4.3.3",
"scikit-image==0.19.1",
"scikit-learn==1.5.0",
"requests~=2.32",
"scipy>=1.10.0,<1.13.0",
"sklearn==0.0",
"sklearn-crfsuite>=0.3.6",
"slack==0.0.2",
"SQLAlchemy==2.0.22",
"tenacity==8.3.0",
"tensorflow==2.15.0",
"textblob==0.15.3",
"textual>=0.73.0",
"tomli>=2.2.1 ; python_full_version < '3.11'",
"toolz>=0.8.2",
"tornado==6.4.1",
"typing-extensions>=4.7",
"Werkzeug~=2.0.0",
"xgboost==3.0.2",
"xlrd==2.0.1",
"xlsxwriter==1.3.7",
]
[dependency-groups]
dev = [
{ include-group = "lint" },
{ include-group = "test" },
{ include-group = "debug" },
{ include-group = "docs" },
]
lint = [
"pylint",
"mypy>=1.18.2",
"pylint==2.15.5",
"types-requests>=2.31.0.6",
"types-pyyaml>=6.0.12.20250915",
"types-python-dateutil>=2.9.0.20251008",
"types-toml>=0.10.8.20240310",
]
test = ["pytest"]
debug = ["ipdb==0.13.9"]
docs = [
"docutils==0.20.1",
# setuptools is needed for pkg_resources due to sphinxcontrib-redoc
# See: https://github.com/sphinx-contrib/redoc/issues/47
"setuptools",
"sphinx==7.2.6",
"sphinx_rtd_theme==2.0.0",
"sphinxcontrib-openapi==0.8.3",
"sphinxcontrib-redoc==1.6.0",
]
[project.scripts]
collectoss = "collectoss.application.cli._multicommand:run"
[project.urls]
Homepage = "https://github.com/chaoss/collectoss"
Documentation = "https://docs.collectoss.org/en/latest/"
############################################################
## setuptools options
# https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html
[tool.setuptools]
include-package-data = true
[tool.setuptools.dynamic]
version = { attr = "metadata.__version__" }
[tool.setuptools.packages.find]
# Note: While this should just be where = ["collectoss"], that doesn't allow the
# dynamic version lookup to work. `uv lock` will fail with:
# ModuleNotFoundError: metadata
where = ["."]
include = ["collectoss*", "keyman*"]
[tool.uv]
# Constraint dependencies are used to limit the versions of dependencies
# that get installed, without adding them to the main dependencies list. This is
# particularly useful controlling the resolution of indirect dependencies.
constraint-dependencies = [
# graphql-server-core v1.1.1 is incompatible with Python 3.10 due to
# importing MutableMapping from collections instead of collections.abc
# https://docs.python.org/3.10/whatsnew/3.10.html#removed
"graphql-server-core>1.1.1",
]
[tool.pytest.ini_options]
addopts = "-ra -s"
testpaths = [
"tests/test_classes",
"tests/test_application/test_cli/test_csv_utils.py",
"tests/test_tasks/test_task_utilities/test_util/",
"tests/test_application/test_db/test_timestamp_utils.py",
"tests/test_util/test_keys.py",
# "tests/test_routes", # runs, but needs a fixture for connecting to the web interface of Augur
# "tests/test_metrics",
# "tests/test_tasks",
# "tests/test_application",
# "tests/test_workers",
# "tests/test_workers/worker_persistence/",
# "tests/test_routes/runner.py"
]
markers = [
"unit: pure logic tests with no external dependencies",
"integration: tests requiring a database, Redis, or network access",
]
[tool.mypy]
files = [
'collectoss/application/db/*.py',
'collectoss/application/environment.py',
]
ignore_missing_imports = true
follow_imports = "skip"
disallow_untyped_defs = false
exclude_gitignore = true
[tool.bandit]
exclude_dirs = ["tests"]