From 22517b7921f9742fbd9aaf23a695846aded68a5e Mon Sep 17 00:00:00 2001 From: Eren Dogan Date: Wed, 8 Mar 2023 14:35:03 -0800 Subject: [PATCH 1/2] Add badge for PyPI --- README.md | 3 +-- images/download-stable-blue.svg | 1 - images/download-unstable-blue.svg | 1 - images/download.svg | 2 -- 4 files changed, 1 insertion(+), 6 deletions(-) delete mode 100644 images/download-stable-blue.svg delete mode 100644 images/download-unstable-blue.svg delete mode 100644 images/download.svg diff --git a/README.md b/README.md index 9f47a75e..78eae437 100644 --- a/README.md +++ b/README.md @@ -3,8 +3,7 @@ [![Python 3.5](https://img.shields.io/badge/Python-3.5-green.svg)](https://www.python.org/) [![License: BSD 3-clause](https://raw.githubusercontent.com/VLSIDA/OpenRAM/stable/images/license_badge.svg)](./LICENSE) -[![Download](https://raw.githubusercontent.com/VLSIDA/OpenRAM/stable/images/download-stable-blue.svg)](https://github.com/VLSIDA/OpenRAM/archive/stable.zip) -[![Download](https://raw.githubusercontent.com/VLSIDA/OpenRAM/stable/images/download-unstable-blue.svg)](https://github.com/VLSIDA/OpenRAM/archive/dev.zip) +[![PyPI - Downloads](https://img.shields.io/pypi/dm/openram?color=brightgreen&label=PyPI)](https://pypi.org/project/openram/) An open-source static random access memory (SRAM) compiler. diff --git a/images/download-stable-blue.svg b/images/download-stable-blue.svg deleted file mode 100644 index 2fbc3649..00000000 --- a/images/download-stable-blue.svg +++ /dev/null @@ -1 +0,0 @@ - downloaddownloadstablestable \ No newline at end of file diff --git a/images/download-unstable-blue.svg b/images/download-unstable-blue.svg deleted file mode 100644 index a233df6b..00000000 --- a/images/download-unstable-blue.svg +++ /dev/null @@ -1 +0,0 @@ - downloaddownloadunstableunstable \ No newline at end of file diff --git a/images/download.svg b/images/download.svg deleted file mode 100644 index 95d978ed..00000000 --- a/images/download.svg +++ /dev/null @@ -1,2 +0,0 @@ - -download download latestlatest From 650b6e513c39593ac8dec9c9c3388414c9ebe29f Mon Sep 17 00:00:00 2001 From: Eren Dogan Date: Fri, 10 Mar 2023 16:35:22 -0800 Subject: [PATCH 2/2] Remove the hack used for unit tests running on docker --- compiler/tests/testutils.py | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/compiler/tests/testutils.py b/compiler/tests/testutils.py index fcb9a776..a41620c3 100644 --- a/compiler/tests/testutils.py +++ b/compiler/tests/testutils.py @@ -10,21 +10,6 @@ import sys, os, glob import pdb import traceback import time -# FIXME: This is a hack for unit tests running on docker. -try: - import openram -except: - # If openram library isn't found as a python package, - # import it from the $OPENRAM_HOME path. - import importlib.util - OPENRAM_HOME = os.getenv("OPENRAM_HOME") - # Import using spec since the directory can be named something - # other than "openram". - spec = importlib.util.spec_from_file_location("openram", "{}/../__init__.py".format(OPENRAM_HOME)) - module = importlib.util.module_from_spec(spec) - sys.modules["openram"] = module - spec.loader.exec_module(module) - import openram from openram import debug from openram import OPTS