Skip to content

Commit

Permalink
Exclude setup.py from flynt.
Browse files Browse the repository at this point in the history
  • Loading branch information
95-martin-orion committed May 24, 2021
1 parent d9bea85 commit b17f793
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion check/format-incremental
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ if (( only_print == 1 )); then
flynt_args+=("--dry-run")
fi

flynt ${format_files} "${flynt_args[@]}"
# Exclude setup.py due to issues in release pipeline (#351).
flynt ${format_files} "${flynt_args[@]}" -e setup\.py
FLYNTSTATUS=$?

echo "Running the black formatter..."
Expand Down
8 changes: 5 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ def build_extension(self, ext):
build_args = ["--config", cfg]

if platform.system() == "Windows":
cmake_args += [f"-DCMAKE_LIBRARY_OUTPUT_DIRECTORY_{cfg.upper()}={extdir}"]
cmake_args += [
"-DCMAKE_LIBRARY_OUTPUT_DIRECTORY_{}={}".format(cfg.upper(), extdir)
]
if sys.maxsize > 2 ** 32:
cmake_args += ["-A", "x64"]
build_args += ["--", "/m"]
Expand Down Expand Up @@ -75,14 +77,14 @@ def build_extension(self, ext):
# README file as long_description.
long_description = open("README.md", encoding="utf-8").read()

__version__ = "0.9.4"
__version__ = "0.9.5"

setup(
name="qsimcirq",
version=__version__,
author="Vamsi Krishna Devabathini",
author_email="[email protected]",
python_requires=">=3.6.0",
python_requires=">=3.3.0",
install_requires=requirements,
license="Apache 2",
description=description,
Expand Down

0 comments on commit b17f793

Please sign in to comment.