-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Dev and Build - make `dev` extra authoritative for dev requirements - Remove retired `pytest-openfiles`. - Use tarfile `data_filter` when supported. Add v1.6.0 release notes fixes #13
- Loading branch information
1 parent
8464c43
commit c914b64
Showing
8 changed files
with
84 additions
and
17 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
"""Module implementing a version source plugin for the hatch build system.""" | ||
|
||
from hatchling.plugin import hookimpl | ||
from hatchling.version.source.plugin.interface import VersionSourceInterface | ||
|
||
|
||
@hookimpl | ||
def hatch_register_version_source() -> type["LsstVersionSource"]: | ||
"""Register a Hatch Version Source hook.""" | ||
return LsstVersionSource | ||
|
||
|
||
class LsstVersionSource(VersionSourceInterface): | ||
"""Implement a Hatch Version Source Interface.""" | ||
|
||
PLUGIN_NAME = "lsst" | ||
|
||
def get_version_data(self) -> dict: | ||
"""Return the project version data.""" | ||
from ._versions import find_lsst_version | ||
|
||
return dict(version=find_lsst_version()) |
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