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] Incorporate pulser-pasqal package in the pasqal-cloud repo #147

Open
wants to merge 10 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 9 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
2 changes: 1 addition & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

#### Versioning (PASQAL developers only)

- [ ] Update the version of pasqal-cloud in `_version.py` following the changes in your PR and by using [semantic versioning](https://semver.org/).
- [ ] Update the version of pasqal-cloud in `VERSION.txt` following the changes in your PR and by using [semantic versioning](https://semver.org/).

#### Documentation

Expand Down
22 changes: 22 additions & 0 deletions .github/scripts/package.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/usr/bin/env bash

# Exit if something fails
set -e

# Find and change to the repository directory
repo_dir=$(git rev-parse --show-toplevel)
cd "${repo_dir}"

# Removing existing files in /dist
rm -rf dist

# Build the packages
for pkg in pasqal-cloud pulser-pasqal
do
echo "Packaging $pkg"
python -m build $pkg --sdist --wheel --outdir dist/
rm -r $pkg/build
done

echo "Built distributions:"
ls dist
18 changes: 8 additions & 10 deletions .github/workflows/publish-to-testpypi-and-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ jobs:
build-n-publish:
name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
runs-on: ubuntu-latest
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
steps:
- uses: actions/checkout@master

Expand All @@ -24,24 +27,19 @@ jobs:
build
--user

- name: Build a binary wheel and a source tarball
run: >-
python -m
build
--sdist
--wheel
--outdir dist/
- name: Build the binary wheels and source tarballs
shell: bash
run: ./.github/scripts/package.sh

- name: Publish distribution 📦 to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PASQAL_CLOUD_TEST_PYPI_TOKEN }}
repository_url: https://test.pypi.org/legacy/
skip-existing: true # Allows repeating the action
attestations: false # Otherwise an attestation is added to dist/

- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PASQAL_CLOUD_PYPI_TOKEN }}

create-github-release:
name: Create GitHub Release
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/run-tests-and-mypy-and-pre-commit-hooks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Install main dependencies
run: |
python -m pip install --upgrade pip
pip install .[dev]
pip install ./pasqal-cloud[dev] ./pulser-pasqal

- name: Install and run pre-commit hooks
run: |
Expand All @@ -39,4 +39,4 @@ jobs:
- name: Mypy checks only for Python 3.8
if: ${{ matrix.python-version == 3.8 }}
run: |
mypy pasqal_cloud
mypy
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
*.egg-info
.eggs
.pytest_cache
.ruff_cache
__pycache__/
*.pyc
.coverage
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

All notable changes to this project will be documented in this file.

## [0.20.2]

_release `2024-11-25`_

- Synchronizes the version with `pulser-pasqal`. From now, both pacakges are released in tandem.
HGSilveri marked this conversation as resolved.
Show resolved Hide resolved

## [0.12.5]

_release `2024-11-12`_
Expand Down
Loading
Loading