Merge pull request #9 from qiboteam/pypkg
Reorganize package and content
This commit is contained in:
21
.github/workflows/rules.yml
vendored
Normal file
21
.github/workflows/rules.yml
vendored
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
# A single CI script with github workflow
|
||||||
|
name: Tests
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
pull_request:
|
||||||
|
types: [labeled]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
if: contains(github.event.pull_request.labels.*.name, 'run-workflow') || github.event_name == 'push'
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
||||||
|
python-version: [3.7, 3.8, 3.9, "3.10"]
|
||||||
|
uses: qiboteam/workflows/.github/workflows/rules.yml@main
|
||||||
|
with:
|
||||||
|
os: ${{ matrix.os }}
|
||||||
|
python-version: ${{ matrix.python-version }}
|
||||||
|
environment: "qibotn"
|
||||||
|
secrets: inherit
|
||||||
6
pyproject.toml
Normal file
6
pyproject.toml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
[tool.pylint.reports]
|
||||||
|
output-format = "colorized"
|
||||||
|
|
||||||
|
[tool.pytest.ini_options]
|
||||||
|
testpaths = ["tests/"]
|
||||||
|
addopts = ["--cov=qibotn", "--cov-report=xml"]
|
||||||
26
setup.py
26
setup.py
@@ -1,18 +1,15 @@
|
|||||||
# Installation script for python
|
# Installation script for python
|
||||||
from setuptools import setup, find_packages
|
from setuptools import setup, find_packages
|
||||||
import os
|
import pathlib
|
||||||
import re
|
|
||||||
|
|
||||||
PACKAGE = "qibotn"
|
PACKAGE = "qibotn"
|
||||||
|
|
||||||
# load long description from README
|
HERE = pathlib.Path(__file__).parent
|
||||||
this_directory = os.path.abspath(os.path.dirname(__file__))
|
LONG_DESCRIPTION = (HERE / "README.md").read_text(encoding="utf-8")
|
||||||
with open(os.path.join(this_directory, "README.md"), encoding="utf-8") as f:
|
|
||||||
long_description = f.read()
|
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="qibotn",
|
name="qibotn",
|
||||||
version="0.1",
|
version="0.0.1",
|
||||||
description="A tensor-network translation module for quantum computing",
|
description="A tensor-network translation module for quantum computing",
|
||||||
author="The Qibo team",
|
author="The Qibo team",
|
||||||
author_email="",
|
author_email="",
|
||||||
@@ -27,19 +24,14 @@ setup(
|
|||||||
"Topic :: Scientific/Engineering :: Physics",
|
"Topic :: Scientific/Engineering :: Physics",
|
||||||
],
|
],
|
||||||
install_requires=[
|
install_requires=[
|
||||||
"networkx>=2.3",
|
|
||||||
"opt_einsum>=3.2",
|
|
||||||
"autoray>=0.2.0",
|
|
||||||
"diskcache>=3.0",
|
|
||||||
"randomgen>=1.18",
|
|
||||||
"quimb",
|
"quimb",
|
||||||
"qibo"
|
"qibo",
|
||||||
],
|
],
|
||||||
extras_require={
|
extras_require={
|
||||||
"docs": ["sphinx", "sphinx_rtd_theme", "recommonmark", "sphinxcontrib-bibtex", "sphinx_markdown_tables", "nbsphinx", "IPython", "doc2dash>=2.4.1", ],
|
"docs": [],
|
||||||
"tests": ["pytest", "cirq", "ply", "sklearn", "dill", "coverage", "pytest-cov"],
|
"tests": ["pytest", "pytest-cov"],
|
||||||
},
|
},
|
||||||
python_requires=">=3.7.0",
|
python_requires=">=3.7.0",
|
||||||
long_description=long_description,
|
long_description=LONG_DESCRIPTION,
|
||||||
long_description_content_type='text/markdown',
|
long_description_content_type="text/markdown",
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user