Coder Social home page Coder Social logo

Comments (4)

banksJeremy avatar banksJeremy commented on September 23, 2024

It doesn't look like there's any specific way of indicating dev dependencies as with Node, so a [dev] extra as implemented in fc8d339 seems like the appropriate approach.

It might be nice if we could have a second, distinct, Travis test build, which tries installing the non-dev dependencies and running a simple example script, but I worry that that's a slippery slope to lots of disorganized testing so I probably won't pursue it.

from chatexchange.

banksJeremy avatar banksJeremy commented on September 23, 2024

(Although if we did want to go down that road, I think it might just take something like this (docs):)

matrix:
  include:
    - install: 'pip install .'
    - script: 'python examples/something.py'
  include:
    - install: 'pip install .[dev]'
    - script: 'python -m pytest'

from chatexchange.

banksJeremy avatar banksJeremy commented on September 23, 2024

The build of fc8d339 failed on Travis. I am guessing there might be an issue with using extras with a non-editable installation of a local path:

(from .travis.yml, doesn't work, it thinks I want a packaged name ".[dev]")
pip install .[dev]

as opposed to calling

(works locally, as make install-dev-dependencies)
pip install -e .[dev]

or

(well-documented usage)
pip install ChatExchange[dev]

from chatexchange.

banksJeremy avatar banksJeremy commented on September 23, 2024

I've filed a ticket about this behaviour at pypa/pip#1780, which should clear up whether this is a bug or expected.

from chatexchange.

Related Issues (20)

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.