From 9b7a77e7bd18a321c8fe614ab516c691c7537740 Mon Sep 17 00:00:00 2001 From: Aman Soni Date: Tue, 13 Apr 2021 20:29:38 +0530 Subject: [PATCH 1/3] Updated setup.py Added requirements.txt to be read as a file in the setup.py and passed it as a list of strings to install_requires. --- setup.py | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/setup.py b/setup.py index f741d40..18748e5 100644 --- a/setup.py +++ b/setup.py @@ -20,7 +20,11 @@ this_dir = path.abspath(path.dirname(__file__)) with open(path.join(this_dir, "README.md"), encoding="utf-8") as file: long_description = file.read() - + +# Read the contents of the requirements.txt file +with open('requirements.txt') as f: + required = f.read().splitlines() + setup( name="mkdocs-techdocs-core", version="0.0.15", @@ -34,16 +38,7 @@ author_email="pulp-fiction@spotify.com", license="Apache-2.0", python_requires=">=3.7", - install_requires=[ - "mkdocs>=1.1.2", - "mkdocs-material==5.3.2", - "mkdocs-monorepo-plugin~=0.4.13", - "plantuml-markdown==3.4.2", - "markdown_inline_graphviz_extension==1.1", - "pygments==2.7.4", - "pymdown-extensions==7.1", - "Markdown==3.2.2", - ], + install_requires=required, classifiers=[ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", From 2dd9911a1a327094cda127efc772c82b008bc399 Mon Sep 17 00:00:00 2001 From: Aman Soni Date: Wed, 14 Apr 2021 20:40:57 +0530 Subject: [PATCH 2/3] Updated setup.py Addressed the issue of linter; and made a version bump. --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 18748e5..7c0ec8a 100644 --- a/setup.py +++ b/setup.py @@ -22,12 +22,12 @@ long_description = file.read() # Read the contents of the requirements.txt file -with open('requirements.txt') as f: +with open("requirements.txt") as f: required = f.read().splitlines() setup( name="mkdocs-techdocs-core", - version="0.0.15", + version="0.0.16", description="The core MkDocs plugin used by Backstage's TechDocs as a wrapper around " "multiple MkDocs plugins and Python Markdown extensions", long_description=long_description, From c74fb322f2ea1ae1431627319ca2b593dd0edc0d Mon Sep 17 00:00:00 2001 From: Emma Indal Date: Thu, 15 Apr 2021 09:43:45 +0200 Subject: [PATCH 3/3] formatting Signed-off-by: Emma Indal --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 7c0ec8a..fa4c49f 100644 --- a/setup.py +++ b/setup.py @@ -20,11 +20,11 @@ this_dir = path.abspath(path.dirname(__file__)) with open(path.join(this_dir, "README.md"), encoding="utf-8") as file: long_description = file.read() - + # Read the contents of the requirements.txt file with open("requirements.txt") as f: required = f.read().splitlines() - + setup( name="mkdocs-techdocs-core", version="0.0.16",