From 8c724ce18731e90cb068bfe6180d219bebd41f24 Mon Sep 17 00:00:00 2001 From: mhucka Date: Tue, 23 Jun 2026 17:13:58 +0000 Subject: [PATCH 1/4] Fix up a few minor things in setup.py This PR: * removes an unnecessary header line prepended to the description * adds a missing `long_description_content_type` value * improves the short description --- setup.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/setup.py b/setup.py index 27ff1aeac..4216b6299 100755 --- a/setup.py +++ b/setup.py @@ -19,12 +19,16 @@ __version__ = runpy.run_path('src/openfermion/_version.py')['__version__'] assert __version__, 'Version string cannot be empty' -# The readme file is used as the long_description: -long_description = '===========\n' + 'OpenFermion\n' + '===========\n\n' +description = ( + 'A Python package for compiling and analyzing quantum algorithms to ' + 'simulate electronic structures.' +) + +# The readme file is used as the long_description. with open('README.md', 'r', encoding='utf-8') as readme: long_description += readme.read() -# Read in package requirements.txt. +# Read in OpenFermion runtime requirements. with open('dev_tools/requirements/deps/runtime.txt') as r: requirements = r.readlines() requirements = [r.strip() for r in requirements] @@ -45,8 +49,9 @@ author_email='openfermion-dev@googlegroups.com', maintainer='Google Quantum AI open-source maintainers', maintainer_email='quantum-oss-maintainers@google.com', - description=('The electronic structure package for quantum computers.'), + description=description, long_description=long_description, + long_description_content_type='text/markdown', python_requires='>=3.10.0', install_requires=requirements, extras_require={'resources': resource_requirements}, From 6f74baacf7426f020a03d06c2c0ade2f75fd6d97 Mon Sep 17 00:00:00 2001 From: mhucka Date: Tue, 23 Jun 2026 17:27:03 +0000 Subject: [PATCH 2/4] Improve the short description --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 4216b6299..5eafff98a 100755 --- a/setup.py +++ b/setup.py @@ -20,8 +20,8 @@ assert __version__, 'Version string cannot be empty' description = ( - 'A Python package for compiling and analyzing quantum algorithms to ' - 'simulate electronic structures.' + 'Package to compile and analyze quantum algorithms for ' + 'simulating fermionic systems.' ) # The readme file is used as the long_description. From e9238db7b1b0072d1e6a96dd85eefe51d1329283 Mon Sep 17 00:00:00 2001 From: Michael Hucka Date: Tue, 23 Jun 2026 10:27:30 -0700 Subject: [PATCH 3/4] Apply suggestion from @gemini-code-assist[bot] Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 5eafff98a..8456bc14a 100755 --- a/setup.py +++ b/setup.py @@ -26,7 +26,7 @@ # The readme file is used as the long_description. with open('README.md', 'r', encoding='utf-8') as readme: - long_description += readme.read() + long_description = readme.read() # Read in OpenFermion runtime requirements. with open('dev_tools/requirements/deps/runtime.txt') as r: From 36581aa101d91401bbf590a3762964ba8e68479e Mon Sep 17 00:00:00 2001 From: mhucka Date: Fri, 26 Jun 2026 17:30:33 +0000 Subject: [PATCH 4/4] Run format-incremental --- setup.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 8456bc14a..b239308f6 100755 --- a/setup.py +++ b/setup.py @@ -20,8 +20,7 @@ assert __version__, 'Version string cannot be empty' description = ( - 'Package to compile and analyze quantum algorithms for ' - 'simulating fermionic systems.' + 'Package to compile and analyze quantum algorithms for ' 'simulating fermionic systems.' ) # The readme file is used as the long_description.