NAME
Dist::Zilla::Plugin::SourceHutMeta - Automatically include SourceHut meta information in META.yml
VERSION
version 1.003
SYNOPSIS
# in dist.ini
[SourceHutMeta]
# to override the homepage
[SourceHutMeta]
homepage = http://some.sort.of.url/project/
# to override the remote repo (defaults to 'origin')
[SourceHutMeta]
remote = sr.ht
DESCRIPTION
Dist::Zilla::Plugin::SourceHutMeta is a Dist::Zilla plugin to include SourceHut https://sr.ht meta
information in META.yml and META.json.
It automatically detects if the distribution directory is under git version control and whether the
origin is a SourceHut repository and will set the repository and homepage meta in META.yml to the
appropriate URLs for SourceHut.
Copy/pasted and slightly adapted from Dist::Zilla::Plugin::GithubMeta
ATTRIBUTES
-
remoteThe SourceHut remote repo can be overridden with this attribute. If not provided, it defaults to
origin. You can provide multiple remotes to inspect. The first one that looks like a SourceHut remote is used. -
homepageYou may override the
homepagesetting by specifying this attribute. This should be a valid URL as understood by MooseX::Types::URI. -
issuesIf true, a bugtracker URL will be added to the distribution metadata for the project's SourceHut
todosection. -
userIf given, the
userparameter overrides the username found in the SourceHut repository URL. This is useful if many people might release from their own workstations, but the distribution metadata should always point to one user's repo. -
repoIf give, the
repoparameter overrides the repository name found in the SourceHut repository URL.
METHODS
-
metadataRequired by Dist::Zilla::Role::MetaProvider
SEE ALSO
Dist::Zilla, Dist::Zilla::Plugin::GithubMeta
CONTRIBUTING
See file CONTRIBUTING.md
AUTHORS
- Thomas Klausner domm@plix.at
- Chris Williams chris@bingosnet.co.uk
COPYRIGHT AND LICENSE
This software is copyright (c) 2025 by Thomas Klausner, Chris Williams.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.