-
Notifications
You must be signed in to change notification settings - Fork 2
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
FIX: Namespace packaging #42
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
13de6b5
FIX: Namespace packaging
effigies b9d7db1
FIX: Import from bids.ext.reports
effigies da0eb22
CI: Test package name, not location
effigies 7996d79
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 4649028
CI: Check TOML
effigies c35ce6f
FIX: Point to correct location for script
effigies 20f1a8a
FIX: Update codespell and mypy configuration
effigies f3bcbaa
CI: Update concurrency so tests do not squash one another
effigies a760413
MNT: Remove mypy from pre-commit; it does not pass with proper packaging
effigies 68ee83f
FIX: Import from bids.ext.reports in tests
effigies 31ce05d
CI: Configure coverage and run module doctests
effigies dd91068
DOC: Use fully qualified module names
effigies 38a93d3
MNT: Fix mistyped only-include
effigies 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 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
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
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
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
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 |
---|---|---|
|
@@ -6,11 +6,8 @@ build-backend = "hatchling.build" | |
source = "vcs" | ||
|
||
[tool.hatch.build.targets.wheel] | ||
packages = ["bids/ext/reports"] | ||
|
||
[tool.hatch.build.targets.wheel.sources] | ||
"src" = "" | ||
"scripts" = "mypackage/scripts" | ||
packages = ["bids"] | ||
only-include = ["bids/ext/reports"] | ||
Comment on lines
+9
to
+10
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For your reference, this was the main issue: https://hatch.pypa.io/latest/config/build/#explicit-selection Everything else just followed from fixing tests |
||
|
||
[tool.hatch.build.hooks.vcs] | ||
version-file = "bids/ext/reports/_version.py" | ||
|
@@ -44,7 +41,7 @@ classifiers = [ | |
dynamic = ["version"] | ||
|
||
[project.scripts] | ||
pybids_reports = "reports.cli:cli" | ||
pybids_reports = "bids.ext.reports.cli:cli" | ||
|
||
[project.urls] | ||
Homepage = "http://github.com/bids-standard/pybids-reports" | ||
|
@@ -101,7 +98,7 @@ exclude = ''' | |
''' | ||
|
||
[tool.codespell] | ||
skip = "./.git,versioneer.py,_version.py,bids/ext/reports/tests/data/*" | ||
skip = "./.git,bids/ext/reports/tests/data/*" | ||
ignore-words-list = "te" | ||
|
||
[tool.mypy] | ||
|
@@ -116,8 +113,17 @@ warn_unused_ignores = true | |
|
||
[[tool.mypy.overrides]] | ||
module = [ | ||
'ext.reports.tests.*', | ||
'ext.reports._version.*', | ||
'ext.reports.due.*', | ||
'bids.ext.reports.tests.*', | ||
'bids.ext.reports._version.*', | ||
'bids.ext.reports.due.*', | ||
] | ||
ignore_errors = true | ||
|
||
[tool.coverage.paths] | ||
source = [ | ||
"bids/ext/reports", | ||
"**/bids/ext/reports", | ||
] | ||
|
||
[tool.coverage.report] | ||
include_namespace_packages = true |
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My guess is this previously worked by accident. Here's what you get now:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can be re-added later, but fixing these issues feels out-of-scope for this PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
totally outside of the scope indeed