-
-
Notifications
You must be signed in to change notification settings - Fork 16
Migrate to pyproject and tox #242
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
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
d9e51af
Replace setup.cfg with pyproject.toml
fsimonis 3e60fa5
Build mocked based on TOX env
fsimonis 51c61d2
Add simple tox file
fsimonis 078e32a
Remove versioneer
fsimonis 74d9c48
Add tox to ci
fsimonis ef329af
Fix tox ci
fsimonis 12ebaf9
More fix
fsimonis 3d90c03
Remove deprecated test
fsimonis 380570c
Add labels
fsimonis 825fa30
Remove obsolete build requirements
fsimonis baaa623
Add PYPRECICE_MOCKED as env to control mocking
fsimonis c2695da
Set mocking env in tests
fsimonis 2a3dfb5
include test/Participant.cpp in MANIFEST.in
IshaanDesai 5c7aadc
Fix compilation error
fsimonis 8bc09b3
Add mocked Participant to Manifest
fsimonis bbe8741
Use importlib for version
fsimonis f0a45c6
Cleanup CI
fsimonis ade409e
Format with black
fsimonis File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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,12 +1,8 @@ | ||
| from ._version import get_versions | ||
| __version__ = "unknown" | ||
|
|
||
| import warnings | ||
| from cyprecice import Participant, get_version_information | ||
| from importlib.metadata import version, PackageNotFoundError | ||
|
|
||
|
|
||
| __version__ = get_versions()['version'] | ||
| del get_versions | ||
|
|
||
| from . import _version | ||
| __version__ = _version.get_versions()['version'] | ||
| try: | ||
| __version__ = version("pyprecice") | ||
| except PackageNotFoundError: | ||
| # package is not installed | ||
| pass |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.