Git Product home page Git Product logo

homebrew-datasette's Introduction

homebrew-datasette

To install Datasette using Homebrew:

brew tap simonw/datasette
brew install simonw/datasette/datasette

You can confirm that the install worked using:

$ datasette --version
datasette, version 0.46

Installing plugins

Datasette plugins need to be installed into the same Python environment as datasette.

The easiest way to install them is to use the new datasette install command:

datasette install datasette-vega

If you want to install them using pip instead you can do this:

/usr/local/opt/datasette/libexec/bin/pip install datasette-vega

Run datasette plugins to see a list of currently installed plugins.

homebrew-datasette's People

Contributors

simonw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

homebrew-datasette's Issues

Implement a better "test" method

https://docs.brew.sh/Formula-Cookbook#add-a-test-to-the-formula says:

We want tests that don't require any user input and test the basic functionality of the application. For example foo build-foo input.foo is a good test and (despite their widespread use) foo --version and foo --help are bad tests. However, a bad test is better than no test at all.

My test is currently:

test do
system bin/"datasette", "--help"
end

"brew install datasette" should put "datasette" on the PATH (maybe /usr/local/bin/datasette)

Following #1. This almost works:

brew tap simonw/datasette
brew install datasette

There's just one thing missing: After you run this:

$ which datasette
datasette not found

But it's installed - you can run it like this:

$ /usr/local/Cellar/datasette/0.46/libexec/bin/datasette --version
datasette, version 0.46

My /usr/local/bin directory is full of symlinks to stuff in the /usr/local/Cellar folder:

$ ls -lah /usr/local/bin | grep Cellar
lrwxr-xr-x    1 simon  admin    35B Aug  8 20:20 2to3 -> ../Cellar/[email protected]/3.8.5/bin/2to3
lrwxr-xr-x    1 simon  admin    39B Aug  8 20:20 2to3-3.8 -> ../Cellar/[email protected]/3.8.5/bin/2to3-3.8
lrwxr-xr-x    1 simon  admin    38B Jun 28 13:55 ada_count -> ../Cellar/sloccount/2.26/bin/ada_count
lrwxr-xr-x    1 simon  admin    38B Jun 28 13:55 asm_count -> ../Cellar/sloccount/2.26/bin/asm_count
lrwxr-xr-x    1 simon  admin    36B Apr 21 13:27 autoconf -> ../Cellar/autoconf/2.69/bin/autoconf
lrwxr-xr-x    1 simon  admin    38B Apr 21 13:27 autoheader -> ../Cellar/autoconf/2.69/bin/autoheader
lrwxr-xr-x    1 simon  admin    36B Apr 21 13:27 autom4te -> ../Cellar/autoconf/2.69/bin/autom4te
lrwxr-xr-x    1 simon  admin    36B Aug  8 20:23 autopoint -> ../Cellar/gettext/0.21/bin/autopoint
lrwxr-xr-x    1 simon  admin    38B Apr 21 13:27 autoreconf -> ../Cellar/autoconf/2.69/bin/autoreconf
lrwxr-xr-x    1 simon  admin    36B Apr 21 13:27 autoscan -> ../Cellar/autoconf/2.69/bin/autoscan
lrwxr-xr-x    1 simon  admin    38B Apr 21 13:27 autoupdate -> ../Cellar/autoconf/2.69/bin/autoupdate
lrwxr-xr-x    1 simon  admin    38B Jun 28 13:55 awk_count -> ../Cellar/sloccount/2.26/bin/awk_count
lrwxr-xr-x    1 simon  admin    41B Apr 28 08:00 bjoentegaard -> ../Cellar/libde265/1.0.5/bin/bjoentegaard
...

But for some reason datasette didn't get a symlink. I'm stuck on how to fix it.

Fix warnings from "brew audit"

$ brew audit --new-formula datasette
simonw/datasette/datasette:
  * C: 3: col 9: Description shouldn't start with an indefinite article, i.e. "An".
  * Stable: version 0.47.1 is redundant with version scanned from URL
Error: 2 problems in 1 formula detected

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.