-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.cfg
98 lines (87 loc) · 2.6 KB
/
setup.cfg
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
[metadata]
name = mongo_migration
description = API for diffcalc-core python 3 package developed by Irakli Sikharulidze
url = https://github.com/dls-controls/mongo_migration
author = Rose Yemelyanova
author_email = [email protected]
license = Apache License 2.0
long_description = file: README.rst
long_description_content_type = text/x-rst
classifiers =
Development Status :: 4 - Beta
License :: OSI Approved :: Apache Software License
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
[options]
python_requires = >=3.7
packages = find:
# =src is interpreted as {"": "src"}
# as per recommendation here https://hynek.me/articles/testing-packaging/
package_dir =
=src
# Specify any package dependencies below.
install_requires =
pymongo
motor
click
anyio
asyncclick
[options.extras_require]
# For development tests/docs
dev =
black==22.3.0
isort>5.0
pytest-cov
mypy
# remove this dependency once flake8 has dropped "importlib-metadata <=4.3"
# https://github.com/PyCQA/flake8/pull/1438
flake8 <= 3.9.2
flake8-isort
sphinx-rtd-theme-github-versions
pre-commit
pipenv
typed-ast
pep8-naming
mock
[options.packages.find]
where = src
#TODO: test this entry point works.
[options.entry_points]
console_scripts=
mongo_migration = mongo_migration.cli:main
# Specify any package data to be included in the wheel below.
# [options.package_data]
# mongo_migration =
# subpackage/*.yaml
[mypy]
# Ignore missing stubs for modules we use
ignore_missing_imports = True
[isort]
profile=black
float_to_top=true
[flake8]
# Make flake8 respect black's line length (default 88),
max-line-length = 88
extend-ignore =
E203, # See https://github.com/PyCQA/pycodestyle/issues/373
F811, # support typing.overload decorator
[tool:pytest]
# Run pytest with all our checkers, and don't spam us with massive tracebacks on error
addopts =
--tb=native -vv --doctest-modules --doctest-glob="*.rst"
--cov=mongo_migration --cov-report term --cov-report xml:cov.xml
# https://iscinumpy.gitlab.io/post/bound-version-constraints/#watch-for-warnings
# filterwarnings = error #Uncomment later.
# Doctest python code in docs, python code in src docstrings, test functions in tests
testpaths =
src tests
[coverage:run]
# This is covered in the versiongit test suite so exclude it here
omit = */_version_git.py
data_file = /tmp/mongo_migration.coverage
[coverage:paths]
# Tests are run from installed location, map back to the src directory
source =
src
**/site-packages/