Comments (8)
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.
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.
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.
from pysnooper.
@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.
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.
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.
@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)
- Snoop recursively, but only in my code. HOT 2
- print value of a claas var HOT 1
- [feature request] Add command line color output for Windows HOT 7
- SOURCE IS UNAVAILABLE HOT 8
- Feature request: python -m pysnooper user_script.py HOT 4
- Compatibility issue with Debugger in Visual Studio Code HOT 2
- Print("come") HOT 1
- compatiblity with python 3.12 HOT 7
- No variable output from the last line HOT 3
- Can not install it in Kaggle platform HOT 1
- `return` event line missing when exception occurred HOT 9
- new features request/discussion HOT 2
- Add Callback HOT 1
- Fix the CI HOT 4
- Deactivate all snooping except explicitly specified "watch"es HOT 3
- snoop entire file or program HOT 3
- Evaluate using `sys.monitoring` to make PySnooper faster
- [feature] only trace functions in specific files HOT 1
- about using multiprocessing
- Please add support for async functions HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pysnooper.