-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add default long description when building emmet-core in container co…
…ntext
- Loading branch information
Showing
1 changed file
with
11 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.*"]), | ||
|