Skip to content

Commit

Permalink
add default long description when building emmet-core in container co…
Browse files Browse the repository at this point in the history
…ntext
  • Loading branch information
tsmathis committed May 13, 2024
1 parent 2b52bc9 commit 2301701
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion emmet-core/setup.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,23 @@
import os

from setuptools import find_namespace_packages, setup

readme_path = os.path.join(os.path.dirname(__file__), "..", "README.md")
if os.path.exists(readme_path):
with open(readme_path) as f:
long_description = f.read()
else:
long_description = "Core Emmet Library"


setup(
name="emmet-core",
use_scm_version={"root": "..", "relative_to": __file__},
setup_requires=["setuptools_scm"],
description="Core Emmet Library",
author="The Materials Project",
author_email="[email protected]",
long_description=open("../README.md").read(), # noqa: SIM115
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/materialsproject/emmet",
packages=find_namespace_packages(include=["emmet.*"]),
Expand Down

0 comments on commit 2301701

Please sign in to comment.