From: Michael McClimon Date: Thu, 24 Oct 2019 04:15:12 +0000 (-0400) Subject: setup.py: rename _version.py to _black_version.py (#1089) X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/8ea13474a6d8dd6065d19a044477c02785424f18?hp=a701659da2e2b8cc5abca2c6c7c97832551627c0 setup.py: rename _version.py to _black_version.py (#1089) In #1082, _version.py was renamed to _black_version.py, but the py_modules line in setup.py wasn't changed, which meant that when installed from source, running it failed with something like: ``` Traceback (most recent call last): File "~/.pyenv/versions/3.6.5/bin/black", line 5, in from black import patched_main File "~/.pyenv/versions/3.6.5/lib/python3.6/site-packages/black.py", line 55, in from _black_version import version as __version__ ModuleNotFoundError: No module named '_black_version' ``` --- diff --git a/setup.py b/setup.py index cc49292..074605a 100644 --- a/setup.py +++ b/setup.py @@ -28,7 +28,7 @@ setup( author_email="lukasz@langa.pl", url="https://github.com/psf/black", license="MIT", - py_modules=["black", "blackd", "_version"], + py_modules=["black", "blackd", "_black_version"], packages=["blib2to3", "blib2to3.pgen2"], package_data={"blib2to3": ["*.txt"]}, python_requires=">=3.6",