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

FEAT: Upgrade to poetry packaging and examples 🎶 #59

Merged
merged 1 commit into from
Mar 3, 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
4 changes: 2 additions & 2 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[bumpversion]
current_version = 0.0.55
current_version = 0.0.56
commit = True
tag = True

[bumpversion:file:setup.py]
[bumpversion:file:pyproject.toml]
search = "{current_version}"
replace = "{new_version}"

Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ instance/

# Sphinx documentation
docs/_build/
_docs/

# PyBuilder
target/
Expand Down Expand Up @@ -198,3 +199,4 @@ RUN_*
*.raw

*.sif
.idea/
2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,7 @@ include README.rst
recursive-include tests *
recursive-exclude * __pycache__
recursive-exclude * *.py[co]
recursive-exclude * environment
recursive-exclude * openlane_run

recursive-include docs *.rst conf.py Makefile make.bat *.jpg *.png *.gif
89 changes: 0 additions & 89 deletions Makefile

This file was deleted.

2 changes: 1 addition & 1 deletion docs/autoapi/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ This page contains auto-generated API reference documentation [#f1]_.

/autoapi/piel/index

.. [#f1] Created with `sphinx-autoapi <https://github.com/readthedocs/sphinx-autoapi>`_
.. [#f1] Created with `sphinx-autoapi <https://github.com/readthedocs/sphinx-autoapi>`_
24 changes: 24 additions & 0 deletions docs/autoapi/piel/cli/core/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
:py:mod:`piel.cli.core`
=======================

.. py:module:: piel.cli.core


Module Contents
---------------


Functions
~~~~~~~~~

.. autoapisummary::

piel.cli.core.get_piel_install_directory



.. py:function:: get_piel_install_directory()

Gets the piel installation directory.


46 changes: 46 additions & 0 deletions docs/autoapi/piel/cli/develop/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
:py:mod:`piel.cli.develop`
==========================

.. py:module:: piel.cli.develop


Module Contents
---------------


Functions
~~~~~~~~~

.. autoapisummary::

piel.cli.develop.develop
piel.cli.develop.build_documentation
piel.cli.develop.generate_poetry2nix_flake
piel.cli.develop.build_piel_cachix_command



.. py:function:: develop()

Development related commands.


.. py:function:: build_documentation(args=None)

Verifies and builds the documentation.


.. py:function:: generate_poetry2nix_flake(args=None)

Generates the poetry2nix flakes file. Requires nix to be installed.

Returns:



.. py:function:: build_piel_cachix_command(args=None)

Enters the custom piel nix environment with all the supported tools installed and configured packages.
Runs the nix-shell command on the piel/environment/nix/ directory.


24 changes: 24 additions & 0 deletions docs/autoapi/piel/cli/environment/environment/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
:py:mod:`piel.cli.environment.environment`
==========================================

.. py:module:: piel.cli.environment.environment


Module Contents
---------------


Functions
~~~~~~~~~

.. autoapisummary::

piel.cli.environment.environment.environment



.. py:function:: environment()

Environment related commands.


63 changes: 63 additions & 0 deletions docs/autoapi/piel/cli/environment/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
:py:mod:`piel.cli.environment`
==============================

.. py:module:: piel.cli.environment


Submodules
----------
.. toctree::
:titlesonly:
:maxdepth: 1

environment/index.rst
nix/index.rst
venv/index.rst


Package Contents
----------------


Functions
~~~~~~~~~

.. autoapisummary::

piel.cli.environment.install_nix
piel.cli.environment.install_openlane
piel.cli.environment.activate_openlane_nix
piel.cli.environment.activate_piel_nix
piel.cli.environment.create_and_activate_venv



.. py:function:: install_nix()

Installs the nix package manager.


.. py:function:: install_openlane(openlane2_directory: pathlib.Path = default_openlane2_directory)

CLI that installs both the openlane2 python interface and the OpenROAD binaries.


.. py:function:: activate_openlane_nix(openlane2_directory: pathlib.Path = default_openlane2_directory)

CLI that installs both the openlane2 python interface and the OpenROAD binaries.


.. py:function:: activate_piel_nix(openlane2_directory: pathlib.Path = default_openlane2_directory)

Enters the custom piel nix environment with all the supported tools installed and configured packages.
Runs the nix-shell command on the piel/environment/nix/ directory.


.. py:function:: create_and_activate_venv() -> None

Creates and activates the piel virtual environment.

:returns: None.
:rtype: None


43 changes: 43 additions & 0 deletions docs/autoapi/piel/cli/environment/nix/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
:py:mod:`piel.cli.environment.nix`
==================================

.. py:module:: piel.cli.environment.nix


Module Contents
---------------


Functions
~~~~~~~~~

.. autoapisummary::

piel.cli.environment.nix.activate_openlane_nix
piel.cli.environment.nix.activate_piel_nix
piel.cli.environment.nix.install_nix
piel.cli.environment.nix.install_openlane



.. py:function:: activate_openlane_nix(openlane2_directory: pathlib.Path = default_openlane2_directory)

CLI that installs both the openlane2 python interface and the OpenROAD binaries.


.. py:function:: activate_piel_nix(openlane2_directory: pathlib.Path = default_openlane2_directory)

Enters the custom piel nix environment with all the supported tools installed and configured packages.
Runs the nix-shell command on the piel/environment/nix/ directory.


.. py:function:: install_nix()

Installs the nix package manager.


.. py:function:: install_openlane(openlane2_directory: pathlib.Path = default_openlane2_directory)

CLI that installs both the openlane2 python interface and the OpenROAD binaries.


Loading