]> git.madduck.net Git - etc/vim.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Install primer.json (used by black-primer by default) with black (#2154)
authorMiro Hrončok <miro@hroncok.cz>
Tue, 27 Apr 2021 15:58:39 +0000 (17:58 +0200)
committerGitHub <noreply@github.com>
Tue, 27 Apr 2021 15:58:39 +0000 (08:58 -0700)
Fixes https://github.com/psf/black/issues/2153

CHANGES.md
setup.py

index d114c5136ffd144cb9a0404abfa4a24ab93067d0..37b5da6a40dfb29e0235956b65bd37bd597ac4c3 100644 (file)
@@ -1,5 +1,11 @@
 ## Change Log
 
 ## Change Log
 
+### Unreleased
+
+#### _Packaging_
+
+- Install `primer.json` (used by `black-primer` by default) with black. (#2154)
+
 ### 21.4b1
 
 #### _Black_
 ### 21.4b1
 
 #### _Black_
index 0928c63afc22da7236f40d3b1bfc054d51bc2628..f1792a46fe85e4ebd8a67b571a7b34fcade8678f 100644 (file)
--- 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"},
     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=[
     python_requires=">=3.6.2",
     zip_safe=False,
     install_requires=[