Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Distribution-Metadata
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Shoichi Kaji
April 17, 2015
Technology
78
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Distribution-Metadata
kichijoji.pm #3 LT 2015.04.17
Shoichi Kaji
April 17, 2015
More Decks by Shoichi Kaji
See All by Shoichi Kaji
go-exhaustruct linterのすすめ
skaji
0
130
Parallel::Pipesの紹介
skaji
2
1.1k
宿泊予約サイトにおける検索と料金計算の両立
skaji
2
4.2k
昔のGo, 今のGo ~比較, ソート編~
skaji
0
310
Perl Quiz
skaji
0
180
cpm at PerlCon 2019
skaji
0
150
Perl5 Package Manager
skaji
0
800
Internal of cpm
skaji
0
660
How to execute external programs in Perl
skaji
3
740
Other Decks in Technology
See All in Technology
Contract One Engineering Unit 紹介資料
sansan33
PRO
0
19k
【CEDEC2026】『GRANBLUE FANTASY: Relink - Endless Ragnarok』のバトル制作事例 ~最高のキャラゲーを目指して~
cygames
PRO
0
250
関東Kaggler会発表資料
takoi
1
220
ブラウザ研修 2026
recruitengineers
PRO
6
960
TypeScript入門 2026
recruitengineers
PRO
3
570
事業価値と Engineering 2026年度版
recruitengineers
PRO
49
23k
Service Connect 上のサービスに ECS Service の外側から到達できなかった話
ota1022
1
230
DatadogのBits Chatが開発組織にもたらしたもの / What Bits Chat Has Brought Us
sms_tech
1
250
Genie Codeハンズオン基礎編
taka_aki
1
110
【AG-UI × A2UI × MCP Apps】Generative UIをやさしく解説する
nrinetcom
PRO
1
110
AWS ネットワーク構築でハマった(ハマりかけた) 5選とそこから得た教訓
nagisa53
4
210
20分でわかるセキュアAPI
nwiizo
2
260
Featured
See All Featured
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
123
22k
Paper Plane (Part 1)
katiecoart
PRO
1
10k
BBQ
matthewcrist
89
10k
Between Models and Reality
mayunak
4
390
My Coaching Mixtape
mlcsv
0
220
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
The SEO Collaboration Effect
kristinabergwall1
1
520
Writing Fast Ruby
sferik
630
63k
Rails Girls Zürich Keynote
gr2m
96
14k
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
460
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
1
390
世界の人気アプリ100個を分析して見えたペイウォール設計の心得
akihiro_kokubo
PRO
73
41k
Transcript
Distribution- Metadata Shoichi Kaji
What’s this? • **local** Ͱ distribution ͷ metadata ΛूΊΔͷ
Background • package (module) VS distribution (release) • eg: •
package: LWP::UserAgent • distribution: libwww-perl
Background • package <-> distribution ͷରԠΛΓ͍ͨ • Remote • MetaCPAN
API, CPAN MetaDB (using by cpanminus) • Local • cpanm 1.5+ ͔Β cpan module Πϯετʔϧ࣌ʹ distribution ͷ metadata (MYMETA.json, install.json) Λอଘ • Distribution::Metadata helps you find dist metadata in local
SYNOPSIS use Distribution::Metadata my $d = Distribution::Metadata->new_from_module(‘LWP::UserAgent’); $d->name; # libwww-perl
$d->version; # 6.13 $d->pathname; # E/ET/ETHER/libwww-perl-6.13.tar.gz $d->main_module; # LWP $d->main_module_version; # 6.13 $d->packlist; # path to .packlist file
When do we use D::M? • distribution ͷΞϯΠϯετʔϧ (like cpanm)
• App::FatPacker::Simple ͋Δ distribution Λ exclude ͢Δͱ͖ʹ D::M Λ͍ͬͯΔ
When do we use D::M? • module ͷґଘؔͷߏங (like carton)
• Perl::PrereqDistributionGatherer https://github.com/shoichikaji/Perl- PrereqDistributionGatherer
None
Wrap up • package <-> distribution ͷରԠ͕Γ͍ͨ • cpanm
cpan module Πϯετʔϧ࣌ʹ distribution ͷ metadata Λอଘ • Αͬͯ local Ͱ package ͱ distribution ͷ ରԠ͕Θ͔Δ • Distribution::Metadata helps that!