Skip to content

Commit

Permalink
QCEC 2.0 (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
burgholzer authored Mar 29, 2022
1 parent 86531ef commit 5d9cbc1
Show file tree
Hide file tree
Showing 91 changed files with 4,991 additions and 266,062 deletions.
41 changes: 31 additions & 10 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,46 @@
version: 2
updates:
# Enable version updates for git submodules
- package-ecosystem: "gitsubmodule"
# Look for `.gitmodules` in the `root` directory
directory: "/"
# Check the submodules for updates every week
schedule:
interval: "weekly"
day: "friday"
time: "06:00"
day: "friday"
time: "06:00"
assignees:
- "burgholzer"

# Enable version updates for GitHub Actions
- package-ecosystem: "github-actions"
# Look for `*.yml` files in the `.github/workflows` directory
directory: "/"
# Check for updates to GitHub Actions every week
schedule:
interval: "weekly"
day: "friday"
time: "06:00"
day: "friday"
time: "06:00"
assignees:
- "burgholzer"

- package-ecosystem: "pip"
directory: "/docs"
schedule:
interval: "weekly"
day: "friday"
time: "06:00"
assignees:
- "burgholzer"

- package-ecosystem: "pip"
directory: "/test/python"
schedule:
interval: "weekly"
day: "friday"
time: "06:00"
assignees:
- "burgholzer"

- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "weekly"
day: "friday"
time: "06:00"
assignees:
- "burgholzer"
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,6 @@ jobs:
submodules: recursive
- uses: DoozyX/clang-format-lint-action@v0.13
with:
source: 'apps include src test mqt/qcec'
source: 'include src test mqt/qcec'
extensions: 'h,hpp,c,cpp'
clangFormatVersion: 12
28 changes: 23 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,20 +58,38 @@ jobs:
- name: Install dependencies
run: pip install -q build
- name: Build sdist
run: python -m build --sdist
run: python -m build --sdist
- name: Test sdist
run: pip install --verbose dist/*.tar.gz
run: pip install --verbose dist/*.tar.gz
env:
CC: "gcc-10"
CC: "gcc-10"
CXX: "g++-10"
- uses: actions/upload-artifact@v2
with:
path: dist/*.tar.gz

test_bindings:
name: Test Python bindings
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: actions/setup-python@v2
name: Install Python
with:
python-version: '3.9'
- name: Install package
run: pip install .
- name: Install test requirements
run: pip install -r test/python/requirements-test.txt
- name: Test package
run: cd test/python && pytest .

upload_pypi:
needs: [ build_wheels, build_sdist, build_m1_wheels ]
needs: [ build_wheels, build_m1_wheels, build_sdist, test_bindings ]
runs-on: ubuntu-latest
if: github.event_name == 'release' && github.event.action == 'published'
if: github.event_name == 'release' && github.event.action == 'published'
steps:
- uses: actions/download-artifact@v2
with:
Expand Down
28 changes: 21 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,21 @@
build*
cmake-build-*
.idea
venv
dist
*egg-info
mqt/qcec/pyqcec*
/build*
/cmake-build-*
.idea/

__pycache__/
*.so
*.py[cod]

bin/
build/
develop-eggs/
dist/
eggs/
lib/
lib64/
parts/
sdist/
var/
*.egg-info/
.installed.cfg
*.egg
7 changes: 1 addition & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.14...3.22)

project(qcec
LANGUAGES CXX
VERSION 1.10.5
VERSION 2.0.0
DESCRIPTION "MQT QCEC - A tool for Quantum Circuit Equivalence Checking"
)

Expand Down Expand Up @@ -53,11 +53,6 @@ if (BUILD_QCEC_TESTS)
add_subdirectory(test)
endif ()

# add apps if this is the main project
if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)
add_subdirectory(apps)
endif()

# add Python binding code
if(BINDINGS)
add_subdirectory(mqt/qcec)
Expand Down
14 changes: 13 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,26 @@ graft src
graft include
graft mqt/qcec
graft jkq
graft apps
include extern/qfr/CMakeLists.txt
graft extern/qfr/src
graft extern/qfr/include
graft extern/qfr/mqt/qfr
graft extern/qfr/jkq
include extern/qfr/extern/dd_package/CMakeLists.txt
graft extern/qfr/extern/dd_package/include

graft extern/qfr/extern/json
prune extern/qfr/extern/json/benchmarks
prune extern/qfr/extern/json/doc
prune extern/qfr/extern/json/include
prune extern/qfr/extern/json/test
prune extern/qfr/extern/json/third_party

graft extern/qfr/extern/pybind11
prune extern/qfr/extern/pybind11/docs
prune extern/qfr/extern/pybind11/tests

graft extern/qfr/extern/pybind11_json
prune extern/qfr/extern/pybind11_json/test

prune **/.github
Loading

0 comments on commit 5d9cbc1

Please sign in to comment.