From 2ed89af00212963cc5df0a283065625ab9ada894 Mon Sep 17 00:00:00 2001 From: Jimmy Lai Date: Fri, 21 Feb 2020 09:18:51 -0800 Subject: [PATCH] add copyright header --- libcst/_version.py | 5 +++++ setup.py | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/libcst/_version.py b/libcst/_version.py index 24869074..8c3ce772 100644 --- a/libcst/_version.py +++ b/libcst/_version.py @@ -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" diff --git a/setup.py b/setup.py index 9d953887..d9d0f6f3 100644 --- a/setup.py +++ b/setup.py @@ -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)