Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🔧 Fix imports #108

Merged
merged 1 commit into from
Jul 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install pre-commit
pre-commit run # this should be really more agressive
pre-commit run # this should be really more aggressive
build:
name: test ${{ matrix.python-version }} - ${{ matrix.platform }}
runs-on: ${{ matrix.platform }}
Expand Down Expand Up @@ -58,6 +58,7 @@ jobs:
git config --local user.name "github-actions[bot]"
poetry --version
poetry install -E dev

#----------------------------------------------
# add matrix specifics and run test suite
#----------------------------------------------
Expand Down
41 changes: 41 additions & 0 deletions .github/workflows/test_import.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Test Package Import

on: [pull_request]

jobs:
test-import:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ['3.10', '3.11']

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies - basic
run: |
git config --global core.longpaths true
python -m pip install --upgrade pip
pip install .

- name: Test package import - basic
run: |
python -c "import piel"
python -c "import piel.experimental"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .[dev]

- name: Test package import
run: |
python -c "import piel"
python -c "import piel.experimental"
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ quantum, and more.
- Co-simulation and optimisation between integrated photonic and
electronic chip design.
- System interconnection modelling in multiple domains.
- Experimental and simulation data integration and management.
- Chip and interposer design integration.
- Co-design components to circuits flow.
- Maintain a multi-tool dependency design environment.
Expand Down
1 change: 1 addition & 0 deletions piel/integration/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
from .sax_thewalrus import *
from .sax_qutip import *
from .thewalrus_qutip import fock_transition_probability_amplitude

2 changes: 1 addition & 1 deletion piel/tools/openlane/v2.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from openlane.flows import Flow
from piel.types import PathTypes, LogicImplementationType
from piel.file_system import (
return_path,
Expand Down Expand Up @@ -83,6 +82,7 @@ def generate_flow_setup(
design_directory: PathTypes = ".",
logic_implementation_type: LogicImplementationType = "combinatorial",
):
from openlane.flows import Flow
if logic_implementation_type == "combinatorial":
from openlane.flows import SequentialFlow
from openlane.steps import Yosys, OpenROAD, Magic, Netgen
Expand Down
8,725 changes: 4,061 additions & 4,664 deletions poetry.lock

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ classifiers = [
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Physics"
Expand Down Expand Up @@ -69,10 +70,13 @@ myst-parser = {version = "*", optional = true}
nbsphinx = {version = "*", optional = true}
networkx = "^3.1"
numpy = "^1.24.4"
openlane = {version = "^2.0.0"}
openlane = [
{version = "^2.0", platform = "linux"},
{version = "^2.0", platform = "darwin"},
{version = "*", platform = "win32"}
]
pandas = "^1.5.3"
pandoc = {version = "*", optional = true}
poetry = {version = "1.8.2"} # I am not happy with this being here
pre-commit = {version = "*", optional = true}
pydantic = "^2.0"
pydata-sphinx-theme = {version = ">=0.13.3", optional = true}
Expand All @@ -93,8 +97,8 @@ sphinx-copybutton = {version = ">=0.5.2", optional = true}
sphinx-gallery = {version = "*", optional = true}
sphinx-pydantic = {version = "*", optional = true}
sphinx-rtd-theme = {version = "*", optional = true}
sphinx_book_theme = {version = "*", optional = true}
sphinx-version-warning = {version = "*", optional = true}
sphinx_book_theme = {version = "*", optional = true}
sphinxcontrib-pdfembed = {git = "https://github.com/SuperKogito/sphinxcontrib-pdfembed.git", optional = true}
thewalrus = "^0.20.0"
tox = {version = "*", optional = true}
Expand Down Expand Up @@ -126,7 +130,6 @@ dev = [
"myst-parser",
"nbsphinx",
"pandoc",
"poetry",
"pre-commit",
"pytest",
"pydata-sphinx-theme",
Expand All @@ -146,9 +149,6 @@ dev = [
"tox",
"watchdog"
]
nonix = [
"openlane"
]

[tool.poetry.scripts]
piel = "piel.cli:main"
Expand Down
Loading