generated from CQCL/pytemplate
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #35 from CQCL/release-prep
- Loading branch information
Showing
39 changed files
with
485 additions
and
105 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,21 @@ | ||
name: Pre-commit auto-update | ||
|
||
on: | ||
# every day at midnight | ||
schedule: | ||
- cron: "0 0 * * *" | ||
# on demand | ||
workflow_dispatch: | ||
|
||
jobs: | ||
upgrade: | ||
uses: browniebroke/github-actions/.github/workflows/pre-commit-autoupdate.yml@v1 | ||
secrets: | ||
gh_pat: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
# Inputs listed with their default (all optional) | ||
config_path: ".pre-commit-config.yaml" # path is relative to repository root | ||
python_version: "3.11" | ||
branch_name: "update/pre-commit-hooks" | ||
pull_request_title: "chore(deps): upgrade pre-commit dependencies" | ||
commit_message: "chore(deps): upgrade pre-commit dependencies" |
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,35 @@ | ||
# This workflow will upload a Python Package using Twine when a release is created | ||
# For more information see: | ||
# https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries | ||
|
||
name: Upload Python Package | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
deploy: | ||
|
||
runs-on: ubuntu-latest | ||
permissions: | ||
# IMPORTANT: this permission is mandatory for trusted publishing | ||
id-token: write | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.x' | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install build | ||
- name: Build package | ||
run: python -m build | ||
- name: Publish package | ||
uses: pypa/gh-action-pypi-publish@release/v1 |
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,17 @@ | ||
# Changelog | ||
|
||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | ||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
|
||
## [Unreleased] | ||
|
||
## [0.1.0] - 2023-11-17 | ||
|
||
First release. | ||
|
||
[0.1.0]: https://github.com/CQCL/pytket-phir/commits/v0.1.0 | ||
[unreleased]: https://github.com/CQCL/pytket-phir/compare/v0.1.0...HEAD | ||
|
||
<!-- markdownlint-configure-file {"MD024": {"siblings_only" : true}, "MD034": false} --> |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,10 +1,11 @@ | ||
include *.toml | ||
include *.md | ||
include *.txt | ||
include Makefile | ||
include mypy.ini | ||
recursive-include docs *.rst | ||
recursive-include docs Makefile | ||
recursive-include tests *.qasm | ||
exclude Dockerfile | ||
exclude .docker* | ||
exclude .pre-commit* | ||
|
||
exclude .pre-commit-config.yaml | ||
exclude mypy.ini | ||
exclude ruff.toml |
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 |
---|---|---|
@@ -1,23 +1,23 @@ | ||
.PHONY: tests lint clean build install dev docs | ||
.PHONY: install dev tests lint docs clean build | ||
|
||
install: | ||
pip install . | ||
|
||
dev: | ||
pip install -e . | ||
|
||
tests: | ||
pytest -s -x -vv tests/test*.py | ||
|
||
lint: | ||
pre-commit run --all-files | ||
|
||
docs: | ||
# sphinx-apidoc --implicit-namespaces -f -o docs/source/ pytket | ||
sphinx-build -M html docs/source/ docs/build/ | ||
|
||
clean: | ||
rm -rf *.egg-info dist build docs/build | ||
|
||
build: clean | ||
python -m build --sdist -n | ||
|
||
install: | ||
pip install . | ||
|
||
dev: | ||
pip install -e . | ||
|
||
docs: | ||
# sphinx-apidoc -f -o docs/source/ pytket | ||
sphinx-build -M html docs/source/ docs/build/ | ||
python -m build --sdist --wheel -n |
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
pytket | ||
====== | ||
pytket.phir | ||
=========== | ||
|
||
.. toctree:: | ||
:maxdepth: 4 | ||
|
||
phir | ||
pytket.phir |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.