Commit 8ea13474 authored by Michael McClimon's avatar Michael McClimon Committed by Jelle Zijlstra
Browse files

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 <module>
    from black import patched_main
  File "~/.pyenv/versions/3.6.5/lib/python3.6/site-packages/black.py", line 55, in <module>
    from _black_version import version as __version__
ModuleNotFoundError: No module named '_black_version'
```
parent a701659d
Loading
Loading
Loading
Loading
+1 −1
Changes for setup.py: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -28,7 +28,7 @@ def get_long_description() -> str:
    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",