forked from qiskit-community/quantum-prototype-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replacing requirement files and setup.py with pyproject.toml (qiskit-…
…community#70) * first attempt to add pyproject.toml * tested pyproject.toml * remove unnecessary files * add realease notes * add release notes * additional changes to pyproject.toml * improve style in pyproject.toml * removing release notes * Update pyproject.toml Co-authored-by: Jim Garrison <jim@garrison.cc> * minimal setup.py * adding single trailing new line in setup.py * replace requirement files on tox.ini with extras = dev * removing the dev and min version test workflows * commenting out the paragraphs about dev and min version test workflows from README.md * added pyproject.toml description to file-map-and-description.md * Update tox.ini (#1) * Update tox.ini thank you! I understand. Co-authored-by: Jim Garrison <jim@garrison.cc> * Update README.md (#2) * Update docs/file-map-and-description.md Co-authored-by: Jim Garrison <jim@garrison.cc> * Fixing comment sections (#3) * Update README.md adding comment section that was removed by mistake * Update README.md re-adding comment section * Update file-map-and-description.md removing comments referring to `requirments.txt` * Update docs/file-map-and-description.md Co-authored-by: Jim Garrison <jim@garrison.cc> --------- Co-authored-by: Jim Garrison <jim@garrison.cc>
- Loading branch information
1 parent
fac25b3
commit 48015c1
Showing
9 changed files
with
66 additions
and
147 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 was deleted.
Oops, something went wrong.
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
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,54 @@ | ||
# file pyproject.toml | ||
|
||
[project] | ||
name = "prototype_template" | ||
dynamic = [ | ||
"version", | ||
] | ||
readme = "README.md" | ||
requires-python = ">=3.7" | ||
license = {file = "LICENSE.txt"} | ||
description = "Repository for a quantum prototype" | ||
authors = [ | ||
{ name = "My Name", email = "my.email@email.net"}, | ||
] | ||
|
||
dependencies = [ | ||
"certifi>=2021.5.30", | ||
"importlib_metadata>=4.8.1", | ||
"qiskit-aer>=0.10.3", | ||
"qiskit-terra>=0.19.2", | ||
] | ||
|
||
[project.optional-dependencies] | ||
# Dev dependencies. | ||
dev = [ | ||
"coverage>=5.5", | ||
"pylint>=2.9.5", | ||
"nbqa>=1.1.1", | ||
"treon>=0.1.3", | ||
"pytest>=6.2.5", | ||
"pytest-randomly>=1.2.0", | ||
"mypy>=0.780", | ||
"mypy-extensions>=0.4.3", | ||
"jupyter-sphinx>=0.3.2", | ||
"nbsphinx>=0.8.8", | ||
"sphinx-autodoc-typehints>=1.17.0", | ||
"reno>=3.5.0", | ||
# Black's formatting rules can change between major versions, so we use | ||
# the ~= specifier for it. | ||
"black[jupyter]~=22.1", | ||
] | ||
|
||
[project.urls] | ||
"Homepage" = "https://github.com/qiskit-community/quantum-prototype-template" | ||
"Bug Tracker" = "https://github.com/qiskit-community/quantum-prototype-template/issues" | ||
|
||
[build-system] | ||
requires = [ | ||
"setuptools>=61.0", | ||
"wheel", | ||
"toml", | ||
"setuptools-scm", | ||
] | ||
build-backend = "setuptools.build_meta" |
This file was deleted.
Oops, something went wrong.
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,21 +1,7 @@ | ||
"""Setup file for prototype template.""" | ||
# See pyproject.toml for project configuration. | ||
# This file exists for compatibility with legacy tools: | ||
# https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html | ||
|
||
import setuptools | ||
from setuptools import setup | ||
|
||
with open("README.md", encoding="utf-8") as f: | ||
long_description = f.read() | ||
|
||
with open("requirements.txt") as f: | ||
install_requires = f.read().splitlines() | ||
|
||
setuptools.setup( | ||
name="prototype_template", | ||
description="Repository for a quantum prototype", | ||
long_description=long_description, | ||
long_description_content_type="text/markdown", | ||
packages=setuptools.find_packages(), | ||
install_requires=install_requires, | ||
python_requires=">=3.7", | ||
setup_requires=["setuptools_scm"], | ||
use_scm_version=True, | ||
) | ||
setup() |
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