diff options
| author | Eugene Triguba <eugenetriguba@gmail.com> | 2020-07-20 22:06:28 -0500 |
|---|---|---|
| committer | Eugene Triguba <eugenetriguba@gmail.com> | 2020-07-20 22:06:28 -0500 |
| commit | 18e714b63f5dbb3394a21baf51544f39b6ccf7ef (patch) | |
| tree | fdbe00462c3a9a6390c8adfc14d4488964c9aec9 | |
| parent | Add FLOAT_REGEX constant (diff) | |
| download | config-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.
| -rw-r--r-- | poetry.lock | 24 | ||||
| -rw-r--r-- | pyproject.toml | 9 |
2 files changed, 25 insertions, 8 deletions
diff --git a/poetry.lock b/poetry.lock index ea4dca0..35b1683 100644 --- a/poetry.lock +++ b/poetry.lock @@ -218,7 +218,7 @@ description = "File identification library for Python" name = "identify" optional = false python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,>=2.7" -version = "1.4.23" +version = "1.4.24" [package.extras] license = ["editdistance"] @@ -714,7 +714,7 @@ python-versions = "*" version = "1.1.0" [[package]] -category = "main" +category = "dev" description = "Python Library for Tom's Obvious, Minimal Language" name = "toml" optional = false @@ -722,6 +722,14 @@ python-versions = "*" version = "0.10.1" [[package]] +category = "main" +description = "Style preserving TOML library" +name = "tomlkit" +optional = true +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" +version = "0.6.0" + +[[package]] category = "dev" description = "a fork of Python 2 and 3 ast modules with type comment support" name = "typed-ast" @@ -790,11 +798,11 @@ docs = ["sphinx", "jaraco.packaging (>=3.2)", "rst.linker (>=1.9)"] testing = ["jaraco.itertools", "func-timeout"] [extras] -toml = ["toml"] +toml = ["tomlkit"] yaml = ["pyyaml"] [metadata] -content-hash = "c3cc44b7d09a63e8aba8852464f06543d403a4091727bad9f58ee881c60f18dd" +content-hash = "c3a4ce6bced99835c134bb9950d5c54b7b4bcd76e40fe95f279f918e879d0772" python-versions = "^3.6" [metadata.files] @@ -914,8 +922,8 @@ flake8 = [ {file = "flake8-3.8.3.tar.gz", hash = "sha256:f04b9fcbac03b0a3e58c0ab3a0ecc462e023a9faf046d57794184028123aa208"}, ] identify = [ - {file = "identify-1.4.23-py2.py3-none-any.whl", hash = "sha256:882c4b08b4569517b5f2257ecca180e01f38400a17f429f5d0edff55530c41c7"}, - {file = "identify-1.4.23.tar.gz", hash = "sha256:f89add935982d5bc62913ceee16c9297d8ff14b226e9d3072383a4e38136b656"}, + {file = "identify-1.4.24-py2.py3-none-any.whl", hash = "sha256:5519601b70c831011fb425ffd214101df7639ba3980f24dc283f7675b19127b3"}, + {file = "identify-1.4.24.tar.gz", hash = "sha256:06b4373546ae55eaaefdac54f006951dbd968fe2912846c00e565b09cfaed101"}, ] idna = [ {file = "idna-2.10-py2.py3-none-any.whl", hash = "sha256:b97d804b1e9b523befed77c48dacec60e6dcb0b5391d57af6a65a312a90648c0"}, @@ -1141,6 +1149,10 @@ toml = [ {file = "toml-0.10.1-py2.py3-none-any.whl", hash = "sha256:bda89d5935c2eac546d648028b9901107a595863cb36bae0c73ac804a9b4ce88"}, {file = "toml-0.10.1.tar.gz", hash = "sha256:926b612be1e5ce0634a2ca03470f95169cf16f939018233a670519cb4ac58b0f"}, ] +tomlkit = [ + {file = "tomlkit-0.6.0-py2.py3-none-any.whl", hash = "sha256:e5d5f20809c2b09276a6c5d98fb0202325aee441a651db84ac12e0812ab7e569"}, + {file = "tomlkit-0.6.0.tar.gz", hash = "sha256:74f976908030ff164c0aa1edabe3bf83ea004b3daa5b0940b9c86a060c004e9a"}, +] typed-ast = [ {file = "typed_ast-1.4.1-cp35-cp35m-manylinux1_i686.whl", hash = "sha256:73d785a950fc82dd2a25897d525d003f6378d1cb23ab305578394694202a58c3"}, {file = "typed_ast-1.4.1-cp35-cp35m-manylinux1_x86_64.whl", hash = "sha256:aaee9905aee35ba5905cfb3c62f3e83b3bec7b39413f0a7f19be4e547ea01ebb"}, 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] |