Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div align="center">

<img width="450px" alt="TensorFlow Quantum logo"
src="docs/images/logo/tf_quantum1.svg">
src="https://raw.githubusercontent.com/tensorflow/quantum/master/docs/images/logo/tf_quantum1.svg">
Comment thread
kenya-sk marked this conversation as resolved.
Outdated

High-performance Python framework for hybrid quantum-classical machine learning

Expand Down Expand Up @@ -138,6 +138,6 @@ Copyright 2020 Google LLC.
<div align="center">
<a href="https://quantumai.google">
<img width="15%" alt="Google Quantum AI"
src="docs/images/quantum-ai-vertical.svg">
src="https://raw.githubusercontent.com/tensorflow/quantum/master/docs/images/quantum-ai-vertical.svg">
</a>
</div>
21 changes: 19 additions & 2 deletions release/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,24 @@ def read_version():

CUR_VERSION = read_version()

DOCLINES = __doc__.split("\n")

def read_readme():
"""Return the project README contents for PyPI."""

# Need to account for 2 situations: when setup.py is copied to a build
# directory, and when setup.py is in a 'release/' subdirectory.
here = Path(__file__).resolve().parent
possible_paths = [
here / "README.md",
here.parent / "README.md",
]

for readme_path in possible_paths:
Comment thread
mhucka marked this conversation as resolved.
Outdated
if readme_path.is_file():
return readme_path.read_text(encoding="utf-8")

raise RuntimeError("Could not find README.md. Checked:\n" +
"\n".join(f" - {p}" for p in possible_paths))
Comment thread
kenya-sk marked this conversation as resolved.
Outdated


class InstallPlatlib(install):
Expand Down Expand Up @@ -121,7 +138,7 @@ def has_ext_modules(self):
name=PROJECT_NAME,
version=BUILD_VERSION,
description="Library for hybrid quantum-classical machine learning.",
long_description="\n".join(DOCLINES[2:]),
long_description=read_readme(),
long_description_content_type="text/markdown",
author="The TensorFlow Quantum Authors",
author_email="tensorflow-quantum-team@google.com",
Expand Down
Loading