/
pyproject.toml
69 lines (57 loc) · 1.6 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
[tool.poetry]
name = "refex"
version = "0.1"
description = "A syntactically-aware search and replace tool."
authors = ["Devin Jeanpierre <jeanpierreda@gmail.com>"]
license = "Apache-2.0"
readme = "README.md"
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: Developers",
"Operating System :: POSIX",
"Topic :: Software Development",
"Topic :: Software Development :: Libraries :: Python Modules",
]
[tool.poetry.scripts]
refex = "refex.cli:main"
[tool.poetry.dependencies]
python = "^3.6"
absl-py = "^0.9"
asttokens = "^2"
attrs = "^19.2"
cached-property = "^1"
colorama = "^0.4"
six="*"
# docs
m2r = { version = "^0.2", optional = true }
sphinx = { version = "^2.4", optional = true }
[tool.poetry.dev-dependencies]
# TODO: make absl a test-only dep
pytest = "^6"
[tool.poetry.extras]
docs = ["m2r", "sphinx"]
[tool.isort]
profile = "google"
# Upstream version within Google actually uses contextlib2 and mock for Python 2
# compatibility, and this is transformed away by copybara.
# Adding contextlib2 to the stdlib makes the sorting correct in the canonical
# github version even when run on the upstream version pre-copybara. Adding
# mock... doesn't help as much (sorts as "mock", not "unittest").
# These can both go away starting in 2021.
extra_standard_library = ["contextlib2", "mock"]
# https://tox.readthedocs.io/
[tool.tox]
legacy_tox_ini = """
[tox]
envlist = py38, py37, py36, pypy36
isolated_build = True
[testenv]
deps =
pytest
commands =
pytest
"""
[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"