Skip to content
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

Include C++ source files in binary wheels #225

Merged
merged 4 commits into from
Feb 4, 2022

Conversation

chaeyeunpark
Copy link
Contributor

Before submitting

Please complete the following checklist when submitting a PR:

  • All new features must include a unit test.
    If you've fixed a bug or added code that should be tested, add a test to the
    tests directory!

  • All new functions and code must be clearly commented and documented.
    If you do make documentation changes, make sure that the docs build and
    render correctly by running make docs.

  • Ensure that the test suite passes, by running make test.

  • Add a new entry to the .github/CHANGELOG.md file, summarizing the
    change, and including a link back to the PR.

  • Ensure that code is properly formatted by running make format.

When all the above are checked, delete everything above the dashed
line and fill in the pull request template.


Context: After #176, binary wheels do not include C++ source files. This PR fixes it.

Description of the Change:

Benefits:

Possible Drawbacks:

Related GitHub Issues:

@github-actions
Copy link
Contributor

github-actions bot commented Feb 4, 2022

Hello. You may have forgotten to update the changelog!
Please edit .github/CHANGELOG.md with:

  • A one-to-two sentence description of the change. You may include a small working example for new features.
  • A link back to this PR.
  • Your name (or GitHub username) in the contributors section.

@codecov
Copy link

codecov bot commented Feb 4, 2022

Codecov Report

Merging #225 (324bf0f) into master (b0f2f0b) will not change coverage.
The diff coverage is n/a.

❗ Current head 324bf0f differs from pull request most recent head 77d8f16. Consider uploading reports for the commit 77d8f16 to get more accurate results

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #225   +/-   ##
=======================================
  Coverage   99.71%   99.71%           
=======================================
  Files           4        4           
  Lines         351      351           
=======================================
  Hits          350      350           
  Misses          1        1           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b0f2f0b...77d8f16. Read the comment docs.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 4, 2022

Test Report (C++) on Ubuntu

       1 files  ±0         1 suites  ±0   0s ⏱️ ±0s
   294 tests ±0     294 ✔️ ±0  0 💤 ±0  0 ±0 
2 677 runs  ±0  2 677 ✔️ ±0  0 💤 ±0  0 ±0 

Results for commit 77d8f16. ± Comparison against base commit b0f2f0b.

♻️ This comment has been updated with latest results.

@chaeyeunpark chaeyeunpark marked this pull request as ready for review February 4, 2022 19:56
@chaeyeunpark chaeyeunpark requested a review from mlxd February 4, 2022 19:56
@@ -118,7 +108,8 @@ def build_extension(self, ext: CMakeExtension):
"url": "https://github.com/XanaduAI/pennylane-lightning",
"license": "Apache License 2.0",
"packages": find_packages(where="."),
"package_data": {"pennylane_lightning": ["src/*"]},
"package_data": {"pennylane_lightning": ["src/*", "src/**/*"]},
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @mlxd, I just change this line. All other changes are from black. You can check wheels here: https://github.com/PennyLaneAI/pennylane-lightning/actions/runs/1796752045. If it looks good, I will revert workflow file and merge.

Copy link
Member

@mlxd mlxd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good @chaeyeunpark
I think since we can use this for the release, it counts as a bugfix so we can merge directly into the v0.21.0_rc0 branch

@chaeyeunpark chaeyeunpark merged commit 6a4ad69 into master Feb 4, 2022
@chaeyeunpark chaeyeunpark deleted the fix_include_src_wheel branch February 4, 2022 21:21
chaeyeunpark added a commit that referenced this pull request Feb 4, 2022
* Include C++ source files in binary wheels
mlxd added a commit that referenced this pull request Feb 25, 2022
* Update changelog and version

* Update CHANGELOG

* Add lightning v21 performance gains

* Add lightning performance comparison with previous release

* Update figure resolution

* Update changelog data

* Added example bm for latest lightning release

* Include C++ source files in binary wheels (#225)

* Include C++ source files in binary wheels

* Auto update version

* Auto update version

* Auto update version

Co-authored-by: Ali Asadi <[email protected]>
Co-authored-by: Chae-Yeun Park <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants