aboutsummaryrefslogtreecommitdiffstats
path: root/pyproject.toml
diff options
context:
space:
mode:
authorEugene Triguba <eugenetriguba@gmail.com>2020-07-20 22:06:28 -0500
committerEugene Triguba <eugenetriguba@gmail.com>2020-07-20 22:06:28 -0500
commit18e714b63f5dbb3394a21baf51544f39b6ccf7ef (patch)
treefdbe00462c3a9a6390c8adfc14d4488964c9aec9 /pyproject.toml
parentAdd FLOAT_REGEX constant (diff)
downloadconfig-file-18e714b63f5dbb3394a21baf51544f39b6ccf7ef.zip
Use tomlkit instead of toml & specify packages to include
This constrains the public api to only what is in the __init__.py in config_file/, rather than all the other python packages in it.
Diffstat (limited to 'pyproject.toml')
-rw-r--r--pyproject.toml9
1 files changed, 7 insertions, 2 deletions
diff --git a/pyproject.toml b/pyproject.toml
index 846059c..0e883c7 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -19,6 +19,11 @@ classifiers = [
"Topic :: Software Development :: Libraries :: Python Modules",
]
+packages = [
+ { include = "config_file" },
+ { include = "tests", format = "sdist" }
+]
+
[tool.taskipy.tasks]
test = "task test_cov -- -v --cov-report term-missing"
test_cov = "task pytest -- --cov=config_file/"
@@ -28,11 +33,11 @@ pytest = "poetry run pytest tests/"
[tool.poetry.dependencies]
python = "^3.6"
-toml = { version = "^0.10.0", optional = true }
+tomlkit = { version = "^0.6.0", optional = true }
pyyaml = { version = "^5.3.1", optional = true }
[tool.poetry.extras]
-toml = ["toml"]
+toml = ["tomlkit"]
yaml = ["pyyaml"]
[tool.poetry.dev-dependencies]