Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
13 changed files
with
262 additions
and
366 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,4 +26,4 @@ python: | |
- method: pip | ||
path: . | ||
extra_requirements: | ||
- dev_release | ||
- dev-release |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,20 @@ | ||
# Copyright (c) Twisted Matrix Laboratories. | ||
# See LICENSE for details. | ||
from hatchling.metadata.plugin.interface import MetadataHookInterface | ||
|
||
|
||
class CustomMetadataHook(MetadataHookInterface): | ||
def update(self, metadata): | ||
optional_dependencies = self.config["optional-dependencies"] | ||
for feature, dependencies in list(optional_dependencies.items()): | ||
if "-" not in feature: | ||
continue | ||
|
||
# We define all the legacy dependency targets using the | ||
# underscore for backward compatibility. | ||
# | ||
# See: https://github.com/twisted/twisted/pull/11656#issuecomment-1282855123 | ||
legacy_feature = feature.replace("-", "_") | ||
optional_dependencies[legacy_feature] = dependencies | ||
|
||
metadata["optional-dependencies"] = optional_dependencies |
Oops, something went wrong.