Skip to content

Commit

Permalink
feat(py)!: Rename package to hugr (#913)
Browse files Browse the repository at this point in the history
  • Loading branch information
aborgna-q committed Apr 3, 2024
1 parent ff9d786 commit 9fe65db
Show file tree
Hide file tree
Showing 18 changed files with 58 additions and 58 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-py.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
with:
filters: |
python:
- 'quantinuum-hugr-py/**'
- 'hugr-py/**'
- 'pyproject.toml'
- 'specification/schema/**'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/python-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
strategy:
matrix:
package:
- 'quantinuum-hugr-py'
- 'hugr-py'

steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ coverage:

# Ignore tests and binaries
ignore:
- "quantinuum-hugr-py/tests"
- "hugr-py/tests"
- "scripts"

# Coverage groups config
Expand Down
File renamed without changes.
8 changes: 4 additions & 4 deletions quantinuum-hugr-py/README.md → hugr-py/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
quantinuum_hugr
hugr
===============

[![build_status][]](https://github.com/CQCL/hugr/actions)
Expand All @@ -22,9 +22,9 @@ The HUGR specification is [here](https://github.com/CQCL/hugr/blob/main/specific

## Installation

The package name is `quantinuum_hugr`. It can be installed from PyPI:
The package name is `hugr`. It can be installed from PyPI:
```bash
pip install quantinuum_hugr
pip install hugr
```

The current releases are in alpha stage, and the API is subject to change.
Expand All @@ -48,4 +48,4 @@ This project is licensed under Apache License, Version 2.0 ([LICENSE][] or http:
[build_status]: https://github.com/CQCL/hugr/actions/workflows/ci-py.yml/badge.svg?branch=main
[codecov]: https://img.shields.io/codecov/c/gh/CQCL/hugr?logo=codecov
[LICENSE]: https://github.com/CQCL/hugr/blob/main/LICENCE
[CHANGELOG]: https://github.com/CQCL/hugr/blob/main/quantinuum-hugr-py/CHANGELOG.md
[CHANGELOG]: https://github.com/CQCL/hugr/blob/main/hugr-py/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ classifiers = [
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering",
]
name = "quantinuum_hugr"
name = "hugr"
version = "0.1.0a1"
description = "Quantinuum's common representation for quantum programs"
#keywords = []
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""`quantinuum-hugr` is a Python package for the Quantinuum HUGR common
"""`hugr` is a Python package for the Quantinuum HUGR common
representation.
"""

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
86 changes: 43 additions & 43 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name = "hugr-project"
version = "0.0.0"
authors = ["TKET development team <tket-support@cambridgequantum.com>"]
readme = "README.md"
packages = [{ include = "quantinuum_hugr", from = "quantinuum-hugr-py" }]
packages = [{ include = "hugr", from = "hugr-py" }]
package-mode = false

[tool.poetry.group.main.dependencies]
Expand All @@ -17,8 +17,8 @@ pytest-cov = "^4.1.0"
mypy = "^1.9.0"
ruff = "^0.3.3"

[tool.poetry.group.quantinuum-hugr.dependencies]
quantinuum-hugr = { path = "quantinuum-hugr-py", develop = true }
[tool.poetry.group.hugr.dependencies]
hugr = { path = "hugr-py", develop = true }

[build-system]
requires = ["poetry-core"]
Expand Down
4 changes: 2 additions & 2 deletions scripts/generate_schema.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env python
"""Dumps the json schema for `quantinuum_hugr.serialization.SerialHugr` to a file.
"""Dumps the json schema for `hugr.serialization.SerialHugr` to a file.
The schema is written to a file named `hugr_schema_v#.json` in the specified output directory.
If no output directory is specified, the schema is written to the current working directory.
Expand All @@ -13,7 +13,7 @@

from pydantic import TypeAdapter

from quantinuum_hugr.serialization import SerialHugr
from hugr.serialization import SerialHugr

if __name__ == "__main__":
if len(sys.argv) == 1:
Expand Down
2 changes: 1 addition & 1 deletion specification/schema/serialization.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This folder contains the schema for the serialization of the HUGR objects
compliant with the [JSON Schema](https://json-schema.org/draft/2020-12/release-notes)
specification.

The model is generated from the pydantic model in the `quantinuum_hugr` python
The model is generated from the pydantic model in the `hugr` python
package, and is used to validate the serialization format of the Rust
implementation.

Expand Down

0 comments on commit 9fe65db

Please sign in to comment.