From 76e1602d60391cca1bb3b21a9ef6ed07a1bca17d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Miro=20Hron=C4=8Dok?= Date: Tue, 27 Apr 2021 17:58:39 +0200 Subject: [PATCH] Install primer.json (used by black-primer by default) with black (#2154) Fixes https://github.com/psf/black/issues/2153 --- CHANGES.md | 6 ++++++ setup.py | 6 +++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index d114c51..37b5da6 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,11 @@ ## Change Log +### Unreleased + +#### _Packaging_ + +- Install `primer.json` (used by `black-primer` by default) with black. (#2154) + ### 21.4b1 #### _Black_ diff --git a/setup.py b/setup.py index 0928c63..f1792a4 100644 --- a/setup.py +++ b/setup.py @@ -64,7 +64,11 @@ setup( ext_modules=ext_modules, packages=["blackd", "black", "blib2to3", "blib2to3.pgen2", "black_primer"], package_dir={"": "src"}, - package_data={"blib2to3": ["*.txt"], "black": ["py.typed"]}, + package_data={ + "blib2to3": ["*.txt"], + "black": ["py.typed"], + "black_primer": ["primer.json"], + }, python_requires=">=3.6.2", zip_safe=False, install_requires=[ -- 2.39.5