VirtualTam's bookmarks
19 bookmarks found
Page 1 of 1
-
pactree
- package dependency tree viewer1$ pactree python-tox | rg 'python-' 2 3python-tox 4├─python-cachetools 5├─python-chardet 6├─python-colorama 7├─python-filelock 8├─python-packaging 9├─python-platformdirs 10├─python-pluggy 11├─python-pyproject-api 12│ └─python-packaging 13└─python-virtualenv 14 ├─python-distlib 15 ├─python-filelock 16 └─python-platformdirs
-
xkcd: Python Environment
2018-05-02 -
-
1# from a virtualenv 2$ pip list --outdated
-
Python Env Wrapper
2015-06-07 PEW! PEW!
-
Python unit testing frameworks: Nose, Pytest
2015-02-13 Python's built-in unittest module is quite cool, but a bit limited and way too verbose (read: it's quite not easy to incite developers to write unit tests)
I'm currently looking for more dev-friendly solutions, the key points being:
- writing test code should be easy and straight-forward -keep the focus on "what to test" instead of "how to transcribe a process to a test"
- parallelization! -we, spoiled developers, should make good use of our way-too-many-cores build machines...
- complete feature set!
- we don't want to just run tests...
- coverage reports (find dead/weak/untested code sections)
- output formatting (JUnit-XML seems to be quite a common format out there)
There seem to be 3 solutions in Python:
- stock unittest + project-dependent customizations / test helpers
- nosetests
- py.test
And 2 ways of gettings things done:
- keeping things stock: no external dependency, project-specific implementation...
- using a test framework: one more module in your (test) virtualenv, more concise tests, more features (// run, code coverage, etc.)
Some links:
-
Transifex client - Usage memo
2014-11-12 1# setup a transifex virtualenv 2virtualenv2 VENV; source VENV/bin/activate; pip install transifex-client 3 4# global config: ~/.transifexrc 5# this step can be omitted, as 'tx init' will create the file if it doesn't exist 6[https://www.transifex.com] 7username = User 8token = 9password = un54f3_p4ssw0rd! 10hostname = https://www.transifex.com 11 12# setup example project 13mkdir example; cd example 14tx init 15tx set --auto-remote https://www.transifex.com/projects/p/my-project/ 16 17# get the files 18tx pull -l pt_BR 19 20# edit things 21poedit / linguist-qt4 22 23# push to transifex 24tx push -t
Page 1 of 1