-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d1305c8
commit 3dc92bc
Showing
6 changed files
with
239 additions
and
16 deletions.
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
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
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
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/bin/bash | ||
|
||
# Copyright (C) 2024 qBraid | ||
# | ||
# This file is part of the pyqasm | ||
# | ||
# Pyqasm is free software released under the GNU General Public License v3 | ||
# or later. You can redistribute and/or modify it under the terms of the GPL v3. | ||
# See the LICENSE file in the project root or <https://www.gnu.org/licenses/gpl-3.0.html>. | ||
# | ||
# THERE IS NO WARRANTY for the pyqasm, as per Section 15 of the GPL v3. | ||
|
||
set -e | ||
set -x | ||
|
||
# Move up 1 level to create the virtual | ||
# environment outside of the source folder | ||
cd .. | ||
|
||
python -m venv build_env | ||
source build_env/bin/activate | ||
|
||
python -m pip install numpy cython | ||
python -m pip install twine build | ||
|
||
cd pyqasm | ||
python -m build --sdist --outdir dist | ||
|
||
# Check whether the source distribution will render correctly | ||
twine check dist/*.tar.gz | ||
|
||
# Deactivate the virtual environment and remove it | ||
deactivate | ||
rm -rf build_env |
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!/bin/bash | ||
|
||
# Copyright (C) 2024 qBraid | ||
# | ||
# This file is part of the pyqasm | ||
# | ||
# Pyqasm is free software released under the GNU General Public License v3 | ||
# or later. You can redistribute and/or modify it under the terms of the GPL v3. | ||
# See the LICENSE file in the project root or <https://www.gnu.org/licenses/gpl-3.0.html>. | ||
# | ||
# THERE IS NO WARRANTY for the pyqasm, as per Section 15 of the GPL v3. | ||
|
||
set -e | ||
set -x | ||
|
||
# Move up 1 level to create the virtual | ||
# environment outside of the source folder | ||
cd .. | ||
|
||
python -m venv test_env | ||
source test_env/bin/activate | ||
|
||
# Install the source distribution | ||
python -m pip install pyqasm/dist/*.tar.gz | ||
|
||
# Install test and CLI extra | ||
pip install pytest | ||
pip install "typer>=0.12.1" typing-extensions "rich>=10.11.0" | ||
|
||
# Run the tests on the installed source distribution | ||
pytest pyqasm/tests | ||
|
||
# Deactivate the virtual environment and remove it | ||
deactivate | ||
rm -rf build_env |
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