add copyright header

This commit is contained in:
Jimmy Lai 2020-02-21 09:18:51 -08:00
parent 472e13dd26
commit 2ed89af002
2 changed files with 8 additions and 1 deletions

View file

@ -1 +1,6 @@
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
LIBCST_VERSION: str = "0.3.2"

View file

@ -16,7 +16,9 @@ with open(path.join(this_directory, "README.rst"), encoding="utf-8") as f:
long_description = f.read()
# Grab the version constant so that libcst.tool stays in sync with this package.
spec = importlib.util.spec_from_file_location("version", path.join(this_directory, "libcst/_version.py"))
spec = importlib.util.spec_from_file_location(
"version", path.join(this_directory, "libcst/_version.py")
)
version = importlib.util.module_from_spec(spec)
# pyre-ignore Pyre doesn't know about importlib entirely.
spec.loader.exec_module(version)