-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
139 lines (125 loc) · 4.78 KB
/
pyproject.toml
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
[tool.poetry]
name = "dcicutils"
version = "8.16.2"
description = "Utility package for interacting with the 4DN Data Portal and other 4DN resources"
authors = ["4DN-DCIC Team <support@4dnucleome.org>"]
license = "MIT"
readme = "README.rst"
homepage = "https://github.com/4dn-dcic/utils"
repository = "https://github.com/4dn-dcic/utils"
packages = [
{ include="dcicutils", from="." }
]
classifiers = [
# How mature is this project? Common values are
# 3 - Alpha
# 4 - Beta
# 5 - Production/Stable
'Development Status :: 4 - Beta',
# Indicate who your project is intended for
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
# Pick your license as you wish (should match "license" above)
'License :: OSI Approved :: MIT License',
# Relevant topics
'Topic :: Database :: Database Engines/Servers',
# Specify the Python versions you support here.
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12'
]
[tool.poetry.dependencies]
python = ">=3.8.1,<3.13"
boto3 = "^1.34.147"
botocore = "^1.34.147"
# The DCIC portals (cgap-portal and fourfront) are very particular about which ElasticSearch version.
# This value is intentionally pinned and must not be changed casually.
elasticsearch = "7.13.4"
appdirs = "^1.4.4"
aws-requests-auth = ">=0.4.2,<1"
chardet = "^5.2.0"
cryptography = "^43.0.1"
docker = "^7.1.0"
gitpython = "^3.1.2"
jsonc-parser = "^1.1.5"
jsonschema = "^4.22.0"
openpyxl = "^3.1.2"
opensearch-py = "^2.0.1"
pyopenssl = "^24.2.1"
PyJWT = "^2.6.0"
#pyramid = "^2.0.2"
pyramid = "1.10.8"
pytz = ">=2020.4"
redis = "^4.5.1"
pyperclip = "^1.8.2"
PyYAML = "^6.0.1"
requests = "^2.27.1"
rfc3986 = "^1.4.0"
shortuuid = "^1.0.13"
structlog = "^19.2.0"
toml = ">=0.10.1,<1"
tqdm = "^4.66.2"
typing-extensions = ">=3.8" # Fourfront uses 3.8
urllib3 = "^1.26.19"
webtest = "^2.0.34"
[tool.poetry.dev-dependencies]
boto3-stubs = "^1.34.147"
botocore-stubs = "^1.34.147"
coverage = "^7.5.4"
# Loaded manually in GA workflow for coverage because a dependency on 2to3
# in its docopts dependency makes a problem for laoding it here in poetry. -kmp 7-Apr-2023
# coveralls = ">=3.3.1"
flake8 = "^7.1.0"
flaky = ">=3.7.0"
pip-licenses = "^4.3.3"
pytest = "^7.4.2"
pytest-cov = ">=2.7.1"
pytest-mock = ">=1.11.0"
pytest-redis = "^3.0.2"
pytest-runner = ">=5.1"
[tool.poetry.scripts]
publish-to-pypi = "dcicutils.scripts.publish_to_pypi:main"
show-contributors = "dcicutils.contribution_scripts:show_contributors_main"
run-license-checker = "dcicutils.scripts.run_license_checker:main"
view-portal-object = "dcicutils.scripts.view_portal_object:main"
update-portal-object = "dcicutils.scripts.update_portal_object:main"
[tool.pytest.ini_options]
addopts = "--basetemp=/tmp/pytest"
redis_exec = "/usr/local/bin/redis-server"
filterwarnings = [
# TODO: These next two are about use of the Version class:
"ignore:distutils Version classes are deprecated. Use packaging.version instead.:DeprecationWarning",
"ignore:Setuptools is replacing distutils.:UserWarning",
# This is a pip-licenses problem (still present in 3.5.5):
"ignore:pkg_resources is deprecated as an API:DeprecationWarning",
"ignore:Boto3 will no longer support Python 3.7 starting December 13, 2023.*:",
]
markers = [
"working: test should work",
"integrated: an integration test",
"integratedx: an excludable integration test, redundantly testing functionality also covered by a unit test",
"unit: a proper unit test",
"file_operation: a test that utilizes files",
"beanstalk_failure: an obsolete beanstalk-related test that needs fixing",
"direct_es_query: a test of direct ES _search that is disabled for now and needs to move inside the firewall",
"static: mark as a test that is testing the static form of code, not its runtime functionality",
"stg_or_prd_testing_needs_repair: some or all of a test that was failing on stg/prd has been temporarily disabled",
"recordable: uses recording technology so that if RECORDING_ENABLED=TRUE, a new test recording is made",
"recorded: a test in which previously recorded values will be used in place of certain external callouts",
]
norecursedirs = ["*env", "site-packages", ".cache", ".git", ".idea", "*.egg-info"]
# We don't use pytest-pep8, but if we ever did, its pep8xxx options could be specified here, as in:
# pep8maxlinelength = 120
testpaths = ["test"]
[tool.coverage.report]
# https://coverage.readthedocs.io/en/latest/config.html
exclude_lines = [
"if __name__ == .__main__.:",
"pragma: no cover"
]
[build-system]
requires = ["poetry_core>=1.0.0"]
build-backend = "poetry.core.masonry.api"