Giter Site home page Giter Site logo

jasonmorganson / pantry Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pkgxdev/pantry

0.0 1.0 0.0 1.68 MB

pkg manifests

Shell 11.42% Ruby 3.36% C++ 4.69% Python 1.13% C 76.99% Emacs Lisp 0.22% Makefile 0.31% Yacc 0.70% Lex 0.23% HCL 0.08% M4 0.28% Meson 0.09% Solidity 0.33% SWIG 0.10% CUE 0.07%

pantry's Introduction

tea

What is a Pantry?

Pantries provide consistent metadata about open source packages. This metadata shouldn’t require manual collection, but at this current state in open source it does.

It is collected and duplicated thousands of times. A huge waste of effort.

tea aims to eradicate this wasted effort, though unfortunately, the journey there will require—to some extent—doing that duplication one more time.

Doing it a Little Better This Time

Our format is YAML, which is at least non-proprietary and could be used by other tools without an independent parser. And we’re pulling in data from other sources as much as possible, eg. versions are taken from the “source” whenever possible.

 

Contributing

Assuming you have tea (/w magic) installed:

$ git clone https://github.com/teaxyz/pantry

$ cd pantry
# all the following commands operate in `./tea.out`
# your tea installation remains untouched

$ pkg init
# ^^ creates a “wip” package.yml
# ^^ if you already know the name, you can pass it as an argument

$ pkg edit
# ^^ opens the new package.yml in your EDITOR

$ pkg build
# ^^ needs a zero permissions GITHUB_TOKEN to use the GitHub API
# either set `GITHUB_TOKEN` or run `gh auth login`

$ foo
# ^^ anything in the `provides:` key will now run

$ pkg test
# ^^ you need to write a test that verifies the package works

$ gh repo fork
$ git branch -m my-new-package
$ git push origin my-new-package
$ gh pr create
  • pkg can be run without magic via tea -E pkg (this dev-env provides +tea.xyz/brewkit).
  • gh can be run without magic via tea gh.
  • git can be run without magic via tea git.
  • pkg build and pkg test take a -L flag to run in a Linux Docker container
  • All commands take an optional pkg-spec eg. pkg build zlib.net^1.1

While inside a pantry dev-env you can run commands from any built packages provided you specified their provides: key.

Packaging Guide

Packaging can be cumbersome. Our wiki is our packaging knowledge base. For other assistance, start a discussion.

After Your Contribution

We build “bottles” (tar’d binaries) and upload them to both our centralized bottle storage and decentralized IPFS.

tea automatically builds new releases of packages as soon as they are released (usually starting the builds within seconds). There is no need to submit PRs for updates.

Working on Other People’s Pull Requests

Packaging can be fiddly so we all pitch in. If you want to help someone else with their pull request then you can use GitHub’s CLI:

$ gh pr checkout 123

# or you can copy paste the URL:
$ gh pr checkout https://github.com/teaxyz/pantry/pull/123

# then open for editing:
$ pkg edit

pantry's People

Contributors

mxcl avatar jhheider avatar mfts avatar ddobrinskiy avatar magnusviri avatar getneil avatar penguwin avatar abevier avatar johnallen3d avatar jonchang avatar davdroman avatar neilgoldman avatar sanchitram1 avatar kevmo314 avatar pedrocruzio avatar relsunkaev avatar zegl avatar lino-levan avatar regrowr avatar tnxz avatar apwadkar avatar xercesblu3 avatar olshansk avatar revolter avatar jasonmorganson avatar rossilor95 avatar adriens avatar vladdesv avatar shedali avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.