No description
Find a file
James Reynolds 314a5a3e6a
Add osxkeychain for macos (#2149)
* Add osxkeychain for macos

* touch up

* bad format

---------

Co-authored-by: James Reynolds <magnsuviri@me.com>
Co-authored-by: Jacob Heider <jacob@tea.xyz>
2023-06-11 14:57:42 -04:00
.devcontainer Add host memory requirement 2023-04-13 16:32:01 -04:00
.github allows packages to require QA 2023-06-05 21:13:32 -04:00
.vscode rework for single pantry (#497) 2023-03-14 16:41:37 -04:00
projects Add osxkeychain for macos (#2149) 2023-06-11 14:57:42 -04:00
.gitignore rework for single pantry (#497) 2023-03-14 16:41:37 -04:00
README.md Document providers 2023-05-04 11:25:10 -03:00
tea.yaml fix python static conf paths 2023-05-08 16:39:55 -04:00

tea

What is a Pantry?

Pantries provide consistent metadata about open source packages. This metadata shouldnt 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 were 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.

Providers

If the package you want to add to tea can be executed simply eg. you want foo to run npx foo, then you can add a one-line entry to npmjs.com/provider.yml.

We currently also support this for pipx. Adding support for other such dependency manager execution handlers is easy and welcome.

At this time, if the package has tea dependencies or requires compilation, it should be packaged as a package.yml.

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” (tard 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 Peoples 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 GitHubs 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