From f5bac5e226d4f953d8480cc587df683ed1e9f9cd Mon Sep 17 00:00:00 2001 From: Jace Browning Date: Thu, 1 Jul 2021 21:19:48 -0400 Subject: [PATCH] Fix default format when no extension --- CHANGELOG.md | 4 ++++ datafiles/formats.py | 2 +- datafiles/tests/test_formats.py | 5 ++++ notebooks/file_inference.ipynb | 22 ++++++++--------- notebooks/format_options.ipynb | 24 +++++++++---------- notebooks/generic_types.ipynb | 14 +++++------ notebooks/manager_api.ipynb | 26 ++++++++++---------- notebooks/mapper_api.ipynb | 38 +++++++++++++++--------------- notebooks/nested_dataclass.ipynb | 22 ++++++++--------- notebooks/patched_containers.ipynb | 34 +++++++++++++------------- notebooks/readme.ipynb | 26 ++++++++++---------- notebooks/roundtrip_comments.ipynb | 26 ++++++++++---------- poetry.lock | 24 +++++++++++++++---- pyproject.toml | 4 ++-- 14 files changed, 148 insertions(+), 123 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 98ca51e5..23fe8841 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +# 0.15.1 (2021-07-01) + +- Fixed handling of no file extension to use YAML by default. + # 0.15 (2021-05-26) - Removed `auto_load`/`auto_save` model options. diff --git a/datafiles/formats.py b/datafiles/formats.py index 6d063359..2a1e356e 100644 --- a/datafiles/formats.py +++ b/datafiles/formats.py @@ -80,7 +80,7 @@ class YAML(Formatter): @classmethod def extensions(cls): - return {'.yml', '.yaml'} + return {'', '.yml', '.yaml'} @classmethod def deserialize(cls, file_object): diff --git a/datafiles/tests/test_formats.py b/datafiles/tests/test_formats.py index d98710f4..8c7fb8ff 100644 --- a/datafiles/tests/test_formats.py +++ b/datafiles/tests/test_formats.py @@ -12,6 +12,11 @@ def describe_serialize(): def data(): return {'key': "value", 'items': [1, 'a', None]} + def describe_default(): + def it_uses_yaml_when_no_extension(expect, data): + text = formats.serialize(data, '') + expect(text).contains("key: value") + def describe_yaml(): def it_indents_blocks_by_default(expect, data): text = formats.serialize(data, '.yaml') diff --git a/notebooks/file_inference.ipynb b/notebooks/file_inference.ipynb index df5ae9ac..32be1798 100644 --- a/notebooks/file_inference.ipynb +++ b/notebooks/file_inference.ipynb @@ -2,7 +2,7 @@ "cells": [ { "cell_type": "markdown", - "id": "0d70930e", + "id": "ca89e9e9", "metadata": { "tags": [] }, @@ -13,7 +13,7 @@ { "cell_type": "code", "execution_count": null, - "id": "2b7fef04", + "id": "8f98d0f7", "metadata": { "tags": [] }, @@ -22,7 +22,7 @@ "name": "stdout", "output_type": "stream", "text": [ - "Writing files/sample.yml\n" + "Overwriting files/sample.yml\n" ] } ], @@ -40,7 +40,7 @@ { "cell_type": "code", "execution_count": null, - "id": "332c0881", + "id": "40f9ddf4", "metadata": { "tags": [] }, @@ -67,7 +67,7 @@ { "cell_type": "code", "execution_count": null, - "id": "ba89cb72", + "id": "87188346", "metadata": { "tags": [] }, @@ -79,7 +79,7 @@ { "cell_type": "code", "execution_count": null, - "id": "ced33fbc", + "id": "c4a08c5b", "metadata": { "tags": [] }, @@ -106,7 +106,7 @@ }, { "cell_type": "markdown", - "id": "95b19dee", + "id": "6d775612", "metadata": { "tags": [] }, @@ -117,7 +117,7 @@ { "cell_type": "code", "execution_count": null, - "id": "a46341e8", + "id": "2cb4efe6", "metadata": { "tags": [] }, @@ -175,7 +175,7 @@ { "cell_type": "code", "execution_count": null, - "id": "47641380", + "id": "24038452", "metadata": { "tags": [] }, @@ -189,7 +189,7 @@ { "cell_type": "code", "execution_count": null, - "id": "84874d7e", + "id": "83cb5ee3", "metadata": { "tags": [] }, @@ -201,7 +201,7 @@ { "cell_type": "code", "execution_count": null, - "id": "47520aec", + "id": "be55c2aa", "metadata": { "tags": [] }, diff --git a/notebooks/format_options.ipynb b/notebooks/format_options.ipynb index d0e0baae..49a31089 100644 --- a/notebooks/format_options.ipynb +++ b/notebooks/format_options.ipynb @@ -3,7 +3,7 @@ { "cell_type": "code", "execution_count": null, - "id": "f1d2edfd", + "id": "214cd15c", "metadata": { "tags": [] }, @@ -17,7 +17,7 @@ { "cell_type": "code", "execution_count": null, - "id": "deea7e95", + "id": "c266bfbc", "metadata": { "tags": [] }, @@ -42,7 +42,7 @@ }, { "cell_type": "markdown", - "id": "b0ef234f", + "id": "087383ee", "metadata": { "tags": [] }, @@ -53,7 +53,7 @@ { "cell_type": "code", "execution_count": null, - "id": "d5b7cc47", + "id": "1145ddf5", "metadata": { "tags": [] }, @@ -71,7 +71,7 @@ { "cell_type": "code", "execution_count": null, - "id": "d147486e", + "id": "ea87464a", "metadata": { "tags": [] }, @@ -108,7 +108,7 @@ }, { "cell_type": "markdown", - "id": "1c9483c2", + "id": "d0f4ad4b", "metadata": { "tags": [] }, @@ -119,7 +119,7 @@ { "cell_type": "code", "execution_count": null, - "id": "ba8ca2f4", + "id": "7667a0a4", "metadata": { "tags": [] }, @@ -137,7 +137,7 @@ { "cell_type": "code", "execution_count": null, - "id": "e7a69a4b", + "id": "f6a88b70", "metadata": { "tags": [] }, @@ -169,7 +169,7 @@ }, { "cell_type": "markdown", - "id": "fc1629c3", + "id": "26b77b70", "metadata": { "tags": [] }, @@ -180,7 +180,7 @@ { "cell_type": "code", "execution_count": null, - "id": "002dac5d", + "id": "9d44e25e", "metadata": { "tags": [] }, @@ -198,7 +198,7 @@ { "cell_type": "code", "execution_count": null, - "id": "d82b5438", + "id": "f9217eec", "metadata": { "tags": [] }, @@ -228,7 +228,7 @@ { "cell_type": "code", "execution_count": null, - "id": "17a2dc10", + "id": "8038f68b", "metadata": { "tags": [] }, diff --git a/notebooks/generic_types.ipynb b/notebooks/generic_types.ipynb index 7afcd4f1..0eee5271 100644 --- a/notebooks/generic_types.ipynb +++ b/notebooks/generic_types.ipynb @@ -2,7 +2,7 @@ "cells": [ { "cell_type": "markdown", - "id": "493ec4e5", + "id": "a426c08f", "metadata": { "tags": [] }, @@ -13,7 +13,7 @@ { "cell_type": "code", "execution_count": null, - "id": "979e4589", + "id": "0d5fd492", "metadata": { "tags": [] }, @@ -27,7 +27,7 @@ { "cell_type": "code", "execution_count": null, - "id": "f60245e0", + "id": "36e8e600", "metadata": { "tags": [] }, @@ -73,7 +73,7 @@ }, { "cell_type": "markdown", - "id": "8149f440", + "id": "ef61ad77", "metadata": { "tags": [] }, @@ -84,7 +84,7 @@ { "cell_type": "code", "execution_count": null, - "id": "35fef0b1", + "id": "552421bf", "metadata": { "tags": [] }, @@ -92,7 +92,7 @@ { "data": { "text/plain": [ - "Dictish(contents=[<__main__.Pair object at 0x10d6e7790>, <__main__.Pair object at 0x10d6e7610>])" + "Dictish(contents=[<__main__.Pair object at 0x118807490>, <__main__.Pair object at 0x1188079d0>])" ] }, "execution_count": null, @@ -107,7 +107,7 @@ { "cell_type": "code", "execution_count": null, - "id": "796ad97b", + "id": "5245f90d", "metadata": { "tags": [] }, diff --git a/notebooks/manager_api.ipynb b/notebooks/manager_api.ipynb index 88b35473..7700a00d 100644 --- a/notebooks/manager_api.ipynb +++ b/notebooks/manager_api.ipynb @@ -3,7 +3,7 @@ { "cell_type": "code", "execution_count": null, - "id": "32fc93de", + "id": "5a5bc4a2", "metadata": { "tags": [] }, @@ -17,7 +17,7 @@ { "cell_type": "code", "execution_count": null, - "id": "c80cd282", + "id": "4c8e1428", "metadata": { "tags": [] }, @@ -35,7 +35,7 @@ { "cell_type": "code", "execution_count": null, - "id": "8b2facaa", + "id": "bae56019", "metadata": { "tags": [] }, @@ -57,7 +57,7 @@ }, { "cell_type": "markdown", - "id": "89fe4d5b", + "id": "480a9b25", "metadata": { "tags": [] }, @@ -68,7 +68,7 @@ { "cell_type": "code", "execution_count": null, - "id": "243793bd", + "id": "09cd1ca6", "metadata": { "tags": [] }, @@ -91,7 +91,7 @@ { "cell_type": "code", "execution_count": null, - "id": "7d7a244a", + "id": "e31449c2", "metadata": { "tags": [] }, @@ -104,7 +104,7 @@ }, { "cell_type": "markdown", - "id": "aaff8d18", + "id": "dacaa675", "metadata": { "tags": [] }, @@ -115,7 +115,7 @@ { "cell_type": "code", "execution_count": null, - "id": "fb7bea46", + "id": "96213468", "metadata": { "tags": [] }, @@ -138,7 +138,7 @@ { "cell_type": "code", "execution_count": null, - "id": "7b420199", + "id": "b94a897f", "metadata": { "tags": [] }, @@ -160,7 +160,7 @@ }, { "cell_type": "markdown", - "id": "7908118a", + "id": "eeafa5c0", "metadata": { "tags": [] }, @@ -171,7 +171,7 @@ { "cell_type": "code", "execution_count": null, - "id": "f1936dc1", + "id": "fb627db3", "metadata": { "tags": [] }, @@ -195,7 +195,7 @@ }, { "cell_type": "markdown", - "id": "afa4eba2", + "id": "619e5aba", "metadata": { "tags": [] }, @@ -206,7 +206,7 @@ { "cell_type": "code", "execution_count": null, - "id": "73831803", + "id": "04c7e152", "metadata": { "tags": [] }, diff --git a/notebooks/mapper_api.ipynb b/notebooks/mapper_api.ipynb index ba3a161a..07b7e5f6 100644 --- a/notebooks/mapper_api.ipynb +++ b/notebooks/mapper_api.ipynb @@ -3,7 +3,7 @@ { "cell_type": "code", "execution_count": null, - "id": "7e422ca4", + "id": "ac450c75", "metadata": { "tags": [] }, @@ -17,7 +17,7 @@ { "cell_type": "code", "execution_count": null, - "id": "43c6c3c9", + "id": "35386abe", "metadata": { "tags": [] }, @@ -35,7 +35,7 @@ { "cell_type": "code", "execution_count": null, - "id": "18ee2705", + "id": "e6a76ab8", "metadata": { "tags": [] }, @@ -47,7 +47,7 @@ { "cell_type": "code", "execution_count": null, - "id": "dc1f6a87", + "id": "29aa0277", "metadata": { "tags": [] }, @@ -69,7 +69,7 @@ }, { "cell_type": "markdown", - "id": "4637b4a9", + "id": "5a2e4b1b", "metadata": { "tags": [] }, @@ -80,7 +80,7 @@ { "cell_type": "code", "execution_count": null, - "id": "805c1fb8", + "id": "6257c54a", "metadata": { "tags": [] }, @@ -102,7 +102,7 @@ }, { "cell_type": "markdown", - "id": "399de3c8", + "id": "fd176fad", "metadata": { "tags": [] }, @@ -113,7 +113,7 @@ { "cell_type": "code", "execution_count": null, - "id": "9137925c", + "id": "a4b7764c", "metadata": { "tags": [] }, @@ -135,7 +135,7 @@ }, { "cell_type": "markdown", - "id": "78637695", + "id": "b1efc212", "metadata": { "tags": [] }, @@ -146,7 +146,7 @@ { "cell_type": "code", "execution_count": null, - "id": "05c0ebcb", + "id": "50b3b6ea", "metadata": { "tags": [] }, @@ -158,7 +158,7 @@ { "cell_type": "code", "execution_count": null, - "id": "f2a3fd35", + "id": "a4b81826", "metadata": { "tags": [] }, @@ -180,7 +180,7 @@ }, { "cell_type": "markdown", - "id": "a4f2d6fb", + "id": "fb7b9f1a", "metadata": { "tags": [] }, @@ -191,7 +191,7 @@ { "cell_type": "code", "execution_count": null, - "id": "fadc6171", + "id": "3e0a4ae5", "metadata": { "tags": [] }, @@ -214,7 +214,7 @@ { "cell_type": "code", "execution_count": null, - "id": "b851423b", + "id": "ce289c2a", "metadata": { "tags": [] }, @@ -236,7 +236,7 @@ { "cell_type": "code", "execution_count": null, - "id": "65263f11", + "id": "73935c0a", "metadata": { "tags": [] }, @@ -258,7 +258,7 @@ }, { "cell_type": "markdown", - "id": "b84dd7b3", + "id": "28ed5535", "metadata": { "tags": [] }, @@ -269,7 +269,7 @@ { "cell_type": "code", "execution_count": null, - "id": "a64ca174", + "id": "bcf90435", "metadata": { "tags": [] }, @@ -280,7 +280,7 @@ }, { "cell_type": "markdown", - "id": "2b830cef", + "id": "804b4a9f", "metadata": { "tags": [] }, @@ -291,7 +291,7 @@ { "cell_type": "code", "execution_count": null, - "id": "04d72f6c", + "id": "bb004050", "metadata": { "tags": [] }, diff --git a/notebooks/nested_dataclass.ipynb b/notebooks/nested_dataclass.ipynb index 63597436..af2d786b 100644 --- a/notebooks/nested_dataclass.ipynb +++ b/notebooks/nested_dataclass.ipynb @@ -2,7 +2,7 @@ "cells": [ { "cell_type": "markdown", - "id": "c4428168", + "id": "e0fb5313", "metadata": { "tags": [] }, @@ -13,7 +13,7 @@ { "cell_type": "code", "execution_count": null, - "id": "e222995b", + "id": "d7371244", "metadata": { "tags": [] }, @@ -27,7 +27,7 @@ { "cell_type": "code", "execution_count": null, - "id": "fdb81162", + "id": "c0ce127f", "metadata": { "tags": [] }, @@ -50,7 +50,7 @@ }, { "cell_type": "markdown", - "id": "c2a7b4dd", + "id": "2c653663", "metadata": { "tags": [] }, @@ -61,7 +61,7 @@ { "cell_type": "code", "execution_count": null, - "id": "2a3b4804", + "id": "0fe38c55", "metadata": { "tags": [] }, @@ -73,7 +73,7 @@ { "cell_type": "code", "execution_count": null, - "id": "ac7dd2f0", + "id": "9e28793b", "metadata": { "tags": [] }, @@ -97,7 +97,7 @@ }, { "cell_type": "markdown", - "id": "d12cf5c9", + "id": "da9a4c9a", "metadata": { "tags": [] }, @@ -108,7 +108,7 @@ { "cell_type": "code", "execution_count": null, - "id": "380687b8", + "id": "9c6c5d8a", "metadata": { "tags": [] }, @@ -119,7 +119,7 @@ }, { "cell_type": "markdown", - "id": "2b1007fc", + "id": "cc11516b", "metadata": { "tags": [] }, @@ -130,7 +130,7 @@ { "cell_type": "code", "execution_count": null, - "id": "996eb9e6", + "id": "20f56d4d", "metadata": { "tags": [] }, @@ -155,7 +155,7 @@ { "cell_type": "code", "execution_count": null, - "id": "0da37534", + "id": "23bb59ce", "metadata": { "tags": [] }, diff --git a/notebooks/patched_containers.ipynb b/notebooks/patched_containers.ipynb index 321d7740..9b811800 100644 --- a/notebooks/patched_containers.ipynb +++ b/notebooks/patched_containers.ipynb @@ -3,7 +3,7 @@ { "cell_type": "code", "execution_count": null, - "id": "ef9783e6", + "id": "1c65c1e9", "metadata": { "tags": [] }, @@ -17,7 +17,7 @@ { "cell_type": "code", "execution_count": null, - "id": "a36fc4d8", + "id": "113f1f04", "metadata": { "tags": [] }, @@ -45,7 +45,7 @@ }, { "cell_type": "markdown", - "id": "c48671c1", + "id": "87d6e33c", "metadata": { "tags": [] }, @@ -56,7 +56,7 @@ { "cell_type": "code", "execution_count": null, - "id": "2b4e9ee9", + "id": "8f5813eb", "metadata": { "tags": [] }, @@ -69,7 +69,7 @@ { "cell_type": "code", "execution_count": null, - "id": "4b6650f3", + "id": "41c5f406", "metadata": { "tags": [] }, @@ -93,7 +93,7 @@ { "cell_type": "code", "execution_count": null, - "id": "47bfe3a4", + "id": "1bb6b38e", "metadata": { "tags": [] }, @@ -105,7 +105,7 @@ { "cell_type": "code", "execution_count": null, - "id": "9feef98c", + "id": "8869e173", "metadata": { "tags": [] }, @@ -130,7 +130,7 @@ { "cell_type": "code", "execution_count": null, - "id": "bbefc21a", + "id": "a84191c6", "metadata": { "tags": [] }, @@ -142,7 +142,7 @@ { "cell_type": "code", "execution_count": null, - "id": "b8b9821a", + "id": "deacd204", "metadata": { "tags": [] }, @@ -165,7 +165,7 @@ }, { "cell_type": "markdown", - "id": "cc0ec500", + "id": "a04bf451", "metadata": { "tags": [] }, @@ -176,7 +176,7 @@ { "cell_type": "code", "execution_count": null, - "id": "9db16e10", + "id": "47d18384", "metadata": { "tags": [] }, @@ -188,7 +188,7 @@ { "cell_type": "code", "execution_count": null, - "id": "3a291308", + "id": "2b4e23b0", "metadata": { "tags": [] }, @@ -215,7 +215,7 @@ { "cell_type": "code", "execution_count": null, - "id": "f0f4556c", + "id": "36f79f03", "metadata": { "tags": [] }, @@ -227,7 +227,7 @@ { "cell_type": "code", "execution_count": null, - "id": "19c30b49", + "id": "3a844da7", "metadata": { "tags": [] }, @@ -255,7 +255,7 @@ { "cell_type": "code", "execution_count": null, - "id": "fa6c4dc9", + "id": "5c5b4b57", "metadata": { "tags": [] }, @@ -278,7 +278,7 @@ { "cell_type": "code", "execution_count": null, - "id": "d3f58321", + "id": "a18e4382", "metadata": { "tags": [] }, @@ -305,7 +305,7 @@ { "cell_type": "code", "execution_count": null, - "id": "c2868173", + "id": "ac67d47b", "metadata": { "tags": [] }, diff --git a/notebooks/readme.ipynb b/notebooks/readme.ipynb index fd2491a2..216c8d10 100644 --- a/notebooks/readme.ipynb +++ b/notebooks/readme.ipynb @@ -3,7 +3,7 @@ { "cell_type": "code", "execution_count": null, - "id": "955e8caa", + "id": "eb4275ed", "metadata": { "tags": [] }, @@ -16,7 +16,7 @@ }, { "cell_type": "markdown", - "id": "66d25607", + "id": "4057eb74", "metadata": { "tags": [] }, @@ -27,7 +27,7 @@ { "cell_type": "code", "execution_count": null, - "id": "6f607088", + "id": "5d145dfa", "metadata": { "tags": [] }, @@ -50,7 +50,7 @@ { "cell_type": "code", "execution_count": null, - "id": "f1c858c4", + "id": "ba7374d7", "metadata": { "tags": [] }, @@ -62,7 +62,7 @@ { "cell_type": "code", "execution_count": null, - "id": "5910c245", + "id": "eb951381", "metadata": { "tags": [] }, @@ -83,7 +83,7 @@ }, { "cell_type": "markdown", - "id": "308e19a9", + "id": "bc3b2654", "metadata": { "tags": [] }, @@ -94,7 +94,7 @@ { "cell_type": "code", "execution_count": null, - "id": "c349a49e", + "id": "e59a3c9e", "metadata": { "tags": [] }, @@ -106,7 +106,7 @@ { "cell_type": "code", "execution_count": null, - "id": "1c6dacc4", + "id": "7e4d36dd", "metadata": { "tags": [] }, @@ -128,7 +128,7 @@ }, { "cell_type": "markdown", - "id": "7991ceca", + "id": "c88697cc", "metadata": { "tags": [] }, @@ -139,7 +139,7 @@ { "cell_type": "code", "execution_count": null, - "id": "c7ef1dc7", + "id": "92460d9a", "metadata": { "tags": [] }, @@ -162,7 +162,7 @@ { "cell_type": "code", "execution_count": null, - "id": "462a3a44", + "id": "d0d13d5a", "metadata": { "tags": [] }, @@ -184,7 +184,7 @@ }, { "cell_type": "markdown", - "id": "61b4e687", + "id": "a98f0796", "metadata": { "tags": [] }, @@ -195,7 +195,7 @@ { "cell_type": "code", "execution_count": null, - "id": "216e68ca", + "id": "35ec2534", "metadata": { "tags": [] }, diff --git a/notebooks/roundtrip_comments.ipynb b/notebooks/roundtrip_comments.ipynb index b40676d2..b617064d 100644 --- a/notebooks/roundtrip_comments.ipynb +++ b/notebooks/roundtrip_comments.ipynb @@ -2,7 +2,7 @@ "cells": [ { "cell_type": "markdown", - "id": "9061c565", + "id": "aa59b4b6", "metadata": { "tags": [] }, @@ -13,7 +13,7 @@ { "cell_type": "code", "execution_count": null, - "id": "c9f4efa2", + "id": "89810357", "metadata": { "tags": [] }, @@ -27,7 +27,7 @@ { "cell_type": "code", "execution_count": null, - "id": "9107810c", + "id": "16d81521", "metadata": { "tags": [] }, @@ -43,7 +43,7 @@ }, { "cell_type": "markdown", - "id": "731062af", + "id": "52c19bbd", "metadata": { "tags": [] }, @@ -54,7 +54,7 @@ { "cell_type": "code", "execution_count": null, - "id": "446f50da", + "id": "c82109ae", "metadata": { "tags": [] }, @@ -66,7 +66,7 @@ { "cell_type": "code", "execution_count": null, - "id": "4dd21ed0", + "id": "bac4279e", "metadata": { "tags": [] }, @@ -88,7 +88,7 @@ }, { "cell_type": "markdown", - "id": "e9bed6d3", + "id": "78a825a5", "metadata": { "tags": [] }, @@ -99,7 +99,7 @@ { "cell_type": "code", "execution_count": null, - "id": "ba3028df", + "id": "c51390d7", "metadata": { "tags": [] }, @@ -124,7 +124,7 @@ { "cell_type": "code", "execution_count": null, - "id": "c53292ec", + "id": "9eb60727", "metadata": { "tags": [] }, @@ -149,7 +149,7 @@ }, { "cell_type": "markdown", - "id": "0ec035cd", + "id": "2b2d2c7a", "metadata": { "tags": [] }, @@ -160,7 +160,7 @@ { "cell_type": "code", "execution_count": null, - "id": "f9bb65b6", + "id": "74a85ab6", "metadata": { "tags": [] }, @@ -172,7 +172,7 @@ }, { "cell_type": "markdown", - "id": "c60677a3", + "id": "24ac86eb", "metadata": { "tags": [] }, @@ -183,7 +183,7 @@ { "cell_type": "code", "execution_count": null, - "id": "9e98ff31", + "id": "b8163704", "metadata": { "tags": [] }, diff --git a/poetry.lock b/poetry.lock index fafa2239..ecc75994 100644 --- a/poetry.lock +++ b/poetry.lock @@ -896,7 +896,7 @@ snowballstemmer = "*" [[package]] name = "pygments" -version = "2.8.1" +version = "2.9.0" description = "Pygments is a syntax highlighting package written in Python." category = "dev" optional = false @@ -1398,7 +1398,7 @@ testing = ["pytest (>=4.6)", "pytest-checkdocs (>=1.2.3)", "pytest-flake8", "pyt [metadata] lock-version = "1.1" python-versions = "^3.7" -content-hash = "c3bb105fd91a673c31f8a543f9c2460deacda186a50311d20af0487ecc82764d" +content-hash = "bb383e92649dbd942598089d666c15d7cd42f3b67ebc36b727f440da2806dff0" [metadata.files] ansiwrap = [ @@ -1432,6 +1432,10 @@ argon2-cffi = [ {file = "argon2_cffi-20.1.0-cp38-cp38-win_amd64.whl", hash = "sha256:9dfd5197852530294ecb5795c97a823839258dfd5eb9420233c7cfedec2058f2"}, {file = "argon2_cffi-20.1.0-cp39-cp39-win32.whl", hash = "sha256:e2db6e85c057c16d0bd3b4d2b04f270a7467c147381e8fd73cbbe5bc719832be"}, {file = "argon2_cffi-20.1.0-cp39-cp39-win_amd64.whl", hash = "sha256:8a84934bd818e14a17943de8099d41160da4a336bcc699bb4c394bbb9b94bd32"}, + {file = "argon2_cffi-20.1.0-pp36-pypy36_pp73-macosx_10_7_x86_64.whl", hash = "sha256:b94042e5dcaa5d08cf104a54bfae614be502c6f44c9c89ad1535b2ebdaacbd4c"}, + {file = "argon2_cffi-20.1.0-pp36-pypy36_pp73-win32.whl", hash = "sha256:8282b84ceb46b5b75c3a882b28856b8cd7e647ac71995e71b6705ec06fc232c3"}, + {file = "argon2_cffi-20.1.0-pp37-pypy37_pp73-macosx_10_7_x86_64.whl", hash = "sha256:3aa804c0e52f208973845e8b10c70d8957c9e5a666f702793256242e9167c4e0"}, + {file = "argon2_cffi-20.1.0-pp37-pypy37_pp73-win_amd64.whl", hash = "sha256:36320372133a003374ef4275fbfce78b7ab581440dfca9f9471be3dd9a522428"}, ] astroid = [ {file = "astroid-2.5.3-py3-none-any.whl", hash = "sha256:bea3f32799fbb8581f58431c12591bc20ce11cbc90ad82e2ea5717d94f2080d5"}, @@ -1485,24 +1489,36 @@ cffi = [ {file = "cffi-1.14.5-cp36-cp36m-manylinux1_i686.whl", hash = "sha256:48e1c69bbacfc3d932221851b39d49e81567a4d4aac3b21258d9c24578280058"}, {file = "cffi-1.14.5-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:69e395c24fc60aad6bb4fa7e583698ea6cc684648e1ffb7fe85e3c1ca131a7d5"}, {file = "cffi-1.14.5-cp36-cp36m-manylinux2014_aarch64.whl", hash = "sha256:9e93e79c2551ff263400e1e4be085a1210e12073a31c2011dbbda14bda0c6132"}, + {file = "cffi-1.14.5-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:24ec4ff2c5c0c8f9c6b87d5bb53555bf267e1e6f70e52e5a9740d32861d36b6f"}, + {file = "cffi-1.14.5-cp36-cp36m-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:3c3f39fa737542161d8b0d680df2ec249334cd70a8f420f71c9304bd83c3cbed"}, + {file = "cffi-1.14.5-cp36-cp36m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:681d07b0d1e3c462dd15585ef5e33cb021321588bebd910124ef4f4fb71aef55"}, {file = "cffi-1.14.5-cp36-cp36m-win32.whl", hash = "sha256:58e3f59d583d413809d60779492342801d6e82fefb89c86a38e040c16883be53"}, {file = "cffi-1.14.5-cp36-cp36m-win_amd64.whl", hash = "sha256:005a36f41773e148deac64b08f233873a4d0c18b053d37da83f6af4d9087b813"}, {file = "cffi-1.14.5-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:2894f2df484ff56d717bead0a5c2abb6b9d2bf26d6960c4604d5c48bbc30ee73"}, {file = "cffi-1.14.5-cp37-cp37m-manylinux1_i686.whl", hash = "sha256:0857f0ae312d855239a55c81ef453ee8fd24136eaba8e87a2eceba644c0d4c06"}, {file = "cffi-1.14.5-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:cd2868886d547469123fadc46eac7ea5253ea7fcb139f12e1dfc2bbd406427d1"}, {file = "cffi-1.14.5-cp37-cp37m-manylinux2014_aarch64.whl", hash = "sha256:35f27e6eb43380fa080dccf676dece30bef72e4a67617ffda586641cd4508d49"}, + {file = "cffi-1.14.5-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:06d7cd1abac2ffd92e65c0609661866709b4b2d82dd15f611e602b9b188b0b69"}, + {file = "cffi-1.14.5-cp37-cp37m-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:0f861a89e0043afec2a51fd177a567005847973be86f709bbb044d7f42fc4e05"}, + {file = "cffi-1.14.5-cp37-cp37m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:cc5a8e069b9ebfa22e26d0e6b97d6f9781302fe7f4f2b8776c3e1daea35f1adc"}, {file = "cffi-1.14.5-cp37-cp37m-win32.whl", hash = "sha256:9ff227395193126d82e60319a673a037d5de84633f11279e336f9c0f189ecc62"}, {file = "cffi-1.14.5-cp37-cp37m-win_amd64.whl", hash = "sha256:9cf8022fb8d07a97c178b02327b284521c7708d7c71a9c9c355c178ac4bbd3d4"}, {file = "cffi-1.14.5-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:8b198cec6c72df5289c05b05b8b0969819783f9418e0409865dac47288d2a053"}, {file = "cffi-1.14.5-cp38-cp38-manylinux1_i686.whl", hash = "sha256:ad17025d226ee5beec591b52800c11680fca3df50b8b29fe51d882576e039ee0"}, {file = "cffi-1.14.5-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:6c97d7350133666fbb5cf4abdc1178c812cb205dc6f41d174a7b0f18fb93337e"}, {file = "cffi-1.14.5-cp38-cp38-manylinux2014_aarch64.whl", hash = "sha256:8ae6299f6c68de06f136f1f9e69458eae58f1dacf10af5c17353eae03aa0d827"}, + {file = "cffi-1.14.5-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:04c468b622ed31d408fea2346bec5bbffba2cc44226302a0de1ade9f5ea3d373"}, + {file = "cffi-1.14.5-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:06db6321b7a68b2bd6df96d08a5adadc1fa0e8f419226e25b2a5fbf6ccc7350f"}, + {file = "cffi-1.14.5-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:293e7ea41280cb28c6fcaaa0b1aa1f533b8ce060b9e701d78511e1e6c4a1de76"}, {file = "cffi-1.14.5-cp38-cp38-win32.whl", hash = "sha256:b85eb46a81787c50650f2392b9b4ef23e1f126313b9e0e9013b35c15e4288e2e"}, {file = "cffi-1.14.5-cp38-cp38-win_amd64.whl", hash = "sha256:1f436816fc868b098b0d63b8920de7d208c90a67212546d02f84fe78a9c26396"}, {file = "cffi-1.14.5-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:1071534bbbf8cbb31b498d5d9db0f274f2f7a865adca4ae429e147ba40f73dea"}, {file = "cffi-1.14.5-cp39-cp39-manylinux1_i686.whl", hash = "sha256:9de2e279153a443c656f2defd67769e6d1e4163952b3c622dcea5b08a6405322"}, {file = "cffi-1.14.5-cp39-cp39-manylinux1_x86_64.whl", hash = "sha256:6e4714cc64f474e4d6e37cfff31a814b509a35cb17de4fb1999907575684479c"}, {file = "cffi-1.14.5-cp39-cp39-manylinux2014_aarch64.whl", hash = "sha256:158d0d15119b4b7ff6b926536763dc0714313aa59e320ddf787502c70c4d4bee"}, + {file = "cffi-1.14.5-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1bf1ac1984eaa7675ca8d5745a8cb87ef7abecb5592178406e55858d411eadc0"}, + {file = "cffi-1.14.5-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:df5052c5d867c1ea0b311fb7c3cd28b19df469c056f7fdcfe88c7473aa63e333"}, + {file = "cffi-1.14.5-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:24a570cd11895b60829e941f2613a4f79df1a27344cbbb82164ef2e0116f09c7"}, {file = "cffi-1.14.5-cp39-cp39-win32.whl", hash = "sha256:afb29c1ba2e5a3736f1c301d9d0abe3ec8b86957d04ddfa9d7a6a42b9367e396"}, {file = "cffi-1.14.5-cp39-cp39-win_amd64.whl", hash = "sha256:f2d45f97ab6bb54753eab54fffe75aaf3de4ff2341c9daee1987ee1837636f1d"}, {file = "cffi-1.14.5.tar.gz", hash = "sha256:fd78e5fee591709f32ef6edb9a015b4aa1a5022598e36227500c8f4e02328d9c"}, @@ -1871,8 +1887,8 @@ pydocstyle = [ {file = "pydocstyle-6.0.0.tar.gz", hash = "sha256:164befb520d851dbcf0e029681b91f4f599c62c5cd8933fd54b1bfbd50e89e1f"}, ] pygments = [ - {file = "Pygments-2.8.1-py3-none-any.whl", hash = "sha256:534ef71d539ae97d4c3a4cf7d6f110f214b0e687e92f9cb9d2a3b0d3101289c8"}, - {file = "Pygments-2.8.1.tar.gz", hash = "sha256:2656e1a6edcdabf4275f9a3640db59fd5de107d88e8663c5d4e9a0fa62f77f94"}, + {file = "Pygments-2.9.0-py3-none-any.whl", hash = "sha256:d66e804411278594d764fc69ec36ec13d9ae9147193a1740cd34d272ca383b8e"}, + {file = "Pygments-2.9.0.tar.gz", hash = "sha256:a18f47b506a429f6f4b9df81bb02beab9ca21d0a5fee38ed15aef65f0545519f"}, ] pylint = [ {file = "pylint-2.7.4-py3-none-any.whl", hash = "sha256:209d712ec870a0182df034ae19f347e725c1e615b2269519ab58a35b3fcbbe7a"}, diff --git a/pyproject.toml b/pyproject.toml index c0fb639f..aff70a44 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [tool.poetry] name = "datafiles" -version = "0.15" +version = "0.15.1" description = "File-based ORM for dataclasses." license = "MIT" @@ -86,7 +86,7 @@ coveragespace = "^4.0" # Documentation mkdocs = "~1.0" -pygments = "^2.7.4" +pygments = "^2.9" # Notebooks ipython = "^7.4"