From 0bd586eb67323b501752023050cbc69854de9805 Mon Sep 17 00:00:00 2001 From: pvbouwel Date: Sun, 26 Apr 2020 16:19:24 +0100 Subject: [PATCH] Place reserved_keywords.txt not in root. Do not use data_files in setup.py but MANIFEST.in Otherwise some enviroments throw errors when trying to create the data file. This was raised in: https://github.com/spulec/moto/pull/2885#discussion_r415150276 --- MANIFEST.in | 1 + setup.py | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/MANIFEST.in b/MANIFEST.in index bd7eb968a..51d1b223c 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -3,5 +3,6 @@ include requirements.txt requirements-dev.txt tox.ini include moto/ec2/resources/instance_types.json include moto/ec2/resources/amis.json include moto/cognitoidp/resources/*.json +include moto/dynamodb2/parsing/reserved_keywords.txt recursive-include moto/templates * recursive-include tests * diff --git a/setup.py b/setup.py index adc5e4bb9..684c0dcea 100755 --- a/setup.py +++ b/setup.py @@ -101,5 +101,4 @@ setup( project_urls={ "Documentation": "http://docs.getmoto.org/en/latest/", }, - data_files=[('', ['moto/dynamodb2/parsing/reserved_keywords.txt'])], )