Giter VIP home page Giter VIP logo

Comments (8)

cool-RR avatar cool-RR commented on August 13, 2024 1

I'm wary of depending on external services. Thanks for the suggestion anyway @lockwooddev , it's appreciated.

Tox is pretty mature. Peter, feel free to go ahead if you wish.

from pysnooper.

cool-RR avatar cool-RR commented on August 13, 2024

I was a bit reluctant to use tox because reading the travis-ci docs, I understand that it's a bit different than how Travis natively runs. Also running tox locally would require installing all Python versions locally, right? That sucks.

from pysnooper.

bittner avatar bittner commented on August 13, 2024

Running all tests locally has a significant advantage: You know what breaks before you push code. And it's faster.

Installing several Python versions locally is easy with pyenv. This is a very popular software. Everyone who does package development that spans several Python versions should use it.

As an alternative to installing all Python versions locally you can run Tox against just the versions you have already installed or are comfortable installing. It goes this way:

$ tox -e py36,py27

The remaining environments can still run on the CI service.

from pysnooper.

cool-RR avatar cool-RR commented on August 13, 2024

from pysnooper.

lockwooddev avatar lockwooddev commented on August 13, 2024

@bittner You might as well use drone.io which can run the various versions inside docker.
Tox became obsolete for me after I discovered drone. For open source they offer https://cloud.drone.io/

from pysnooper.

bittner avatar bittner commented on August 13, 2024

Tox became obsolete for me after I discovered drone.

This makes you dependent on Drone. It's your choice of course.

Tox is a simple Python package, and it's common practice. There is a double independence benefit:

  • Run all test locally
  • Run all tests on any CI service

from pysnooper.

eine avatar eine commented on August 13, 2024

As an alternative to installing all Python versions locally you can run Tox against just the versions you have already installed or are comfortable installing.

It is also possible to use official containers: https://hub.docker.com/_/python. On the one hand, it avoids installing different python versions on the host. On the other hand, the results you get locally are exactly the same as what the CI service (Travis) will produce.

This makes you dependent on Drone. It's your choice of course.

The choice between Drone, Travis or any other CI service that is able to run docker containers is not relevant. The dependency that @lockwooddev proposed (implicitly) is docker.

from pysnooper.

bittner avatar bittner commented on August 13, 2024

@lockwooddev @1138-4eb You're both right.

The main reason to prefer a Python technology before getting help with other technology is to both lower the barrier for Python developers and stick to common Python practices.

Using Docker is always a valid choice, nowadays, and it's good that you point out the possibilities. Thank you!

from pysnooper.

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.