From 18e714b63f5dbb3394a21baf51544f39b6ccf7ef Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Mon, 20 Jul 2020 22:06:28 -0500 Subject: 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. --- pyproject.toml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'pyproject.toml') 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] -- cgit v1.2.3