-
Notifications
You must be signed in to change notification settings - Fork 230
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
infra: move requirements to a pyproject file and set up hatch env #440
Changes from all commits
2809c66
06ba2fb
edc721c
129b5d0
e1775ce
7b67ddd
bc2d8f5
e5a8c2f
4e2357e
376004e
a70dfb4
20dc029
2771e8d
151ca6a
eee0725
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
[build-system] | ||
requires = ["hatchling", "hatch-requirements-txt"] | ||
build-backend = "hatchling.build" | ||
|
||
[project] | ||
name = "amazon-braket-examples" | ||
version = "0.0.1" | ||
description = 'Example notebooks that show how to apply quantum computing with Amazon Braket.' | ||
readme = "README.md" | ||
requires-python = ">=3.9" | ||
license = "apache-2.0" | ||
keywords = [] | ||
authors = [{name = "Amazon Web Services"},] | ||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
"Intended Audience :: Developers", | ||
"Intended Audience :: Education", | ||
"Intended Audience :: Science/Research", | ||
"Natural Language :: English", | ||
"License :: OSI Approved :: Apache Software License", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
] | ||
dynamic = ["dependencies"] | ||
|
||
[tool.hatch.metadata.hooks.requirements_txt] | ||
files = ["requirements.txt"] | ||
|
||
[project.urls] | ||
Documentation = "https://github.com/amazon-braket/amazon-braket-examples#readme" | ||
Issues = "https://github.com/amazon-braket/amazon-braket-examples/issues" | ||
Source = "https://github.com/amazon-braket/amazon-braket-examples" | ||
|
||
[tool.hatch.envs.default] | ||
dependencies = [ | ||
"jupyter", | ||
"nbconvert", | ||
"pytest", | ||
"pytest-rerunfailures", | ||
"pytest-xdist", | ||
"testbook", | ||
] | ||
[tool.hatch.envs.default.scripts] | ||
test = "pytest -n auto -ra -v --durations=0 test/integ_tests/" | ||
|
||
|
||
[[tool.hatch.envs.all.matrix]] | ||
python = ["3.9", "3.10", "3.11"] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +0,0 @@ | ||
amazon-braket-sdk | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why do we no longer need this file? Are we just merging this with the requirements file for NBIs? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, this was to address the discussed proposal around not installing unpinned dependencies and instead using just the requirements dependencies. |
||
amazon-braket-pennylane-plugin | ||
cvxpy | ||
ipython<8.17 | ||
matplotlib | ||
ml-dtypes==0.2.0 | ||
nbconvert | ||
pandas | ||
pennylane | ||
PennyLane_Lightning<=0.32 | ||
pytest | ||
pytest-rerunfailures | ||
pytest-xdist | ||
qiskit_braket_provider | ||
testbook | ||
jupyter | ||
jax | ||
jaxlib | ||
optax | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these files? Will they be included in this pr?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are the build systems dependencies
https://pip.pypa.io/en/stable/reference/build-system/pyproject-toml/#build-time-dependencies