How can tox install the modules via the requirements file?

Our python project has a requirements.txt file which lists some dependent module. We used to use pip install -r requirements.txt to install these dependencies. We are now using tox to build up...

How to convince python tox to run tests only for the available python interpreters?

I am using python tox to run python unittest for several versions of python, but these python interpreters are not all available on all machines or platforms where I'm running tox. How can I...

Git repo does not have a .htaccess file, how do I create a local .htaccess that will not be removed by git pull --rebase

The title might be a bit weird explanation of things so I will go into more detail here. I have set up git repo trough github for a website so all of us can edit on our own computers and then push...

Python: How can I test my package if it runs on Linux, Mac and Windows

I need to test my Python package if it works properly on different systems. I found Tox for different Python versions, but what about different operating systems like Windows, Linux and Mac. Can...

Python project directory structure / pytest trouble

This should be the easiest problem on earth, but even after extensive searching and tinkering, I'm still in deep trouble with finding a "correct" way to lay a directory structure and manage to run...

How to implement ItemAnimator of RecyclerView to disable the animation of notifyItemChanged

In my project I need disable the "change" animation of RecyclerView while notifyItemChanged. I investigated in the source of RecyclerView and had overridden...

flake8/pylint fails in Tox testing environment, raises InvocationError

I've been learning about how to do testing in tox for my python project. I have (what should be) a fairly standard tox initialization file that looks like the...

python import of local module failing when run as systemd/systemctl service

I have a python application that I'm tring to run as a system service. The application runs fine when I run it manually. When I run it as a service it fails to find a local module that was...

How to show full Python Traceback with Tox/Py.test

I'm using tox and py.test to run my Python unittests, and even though I'm using py.test's --tb=long option, errors are showing like: E ConftestImportFailure:...

How can I install multiple versions of Python on latest OS X and use them in parallel?

I want to run tests with multiple Python versions on OS X 10.11, including: Python 2.6 - ?! Python 2.7 - default - solved Python 3.4 - ?! Python 3.5 - installed via brew - works well Conda Python...

How to minimize repetition in tox file

Goal: Successfully execute specific tox commands, and have it run for "just" that specific matched command. Example: tox -e py35-integration tox should run only for py35-integration and not...

Tox WARNING:test command found but not installed in testenv

I am using tox for my project. Here is my tox.ini file: [tox] envlist = py27, lint, coverage skipsdist = True [testenv:py27] deps = -rrequirements.txt commands = python -m unittest...

Docker build failed to copy a file

Hi I am new to Docker and trying to wrap around my head on how to clone a private repo from github and found some interesting link issues/6396 I followed one of the post and my dockerfile looks...

How can I combine coverage results with tox?

For my mpu package I have execution-environment dependend code like if sys.version_info < (3, 0): pass # do something else: pass # do something else and a tox file [tox] envlist =...

Use own package in tox+pytest

I have python application which I would like to test. This application is importing a lot of packages for example: import time import sys . . . import mypackage Where mypackage is my own...

Change tox workdir

Looking on the tox global settings section from tox documentation, the .tox directory which is working dir, is created in directory where tox.ini is located: toxworkdir={toxinidir}/.tox(PATH) ...

Python dependency hell: A compromise between virtualenv and global dependencies?

I've tested various ways to manage my project dependencies in Python so far: Installing everything global with pip (saves spaces, but sooner or later gets you in trouble) pip & venv or virtualenv...

React hooks functions have old version of a state var

I tried to make a nice animating example for myself using Hooks but I have stumbled upon a problem where my functions won't have the updated version of a state var and continue to use the first...

ERROR: You must give at least one requirement to install -- when running: pip install --upgrade --no-binary hdbscan

I am trying to install hdbscan in my PC which runs Windows 10 and has installed Python 3.6. My first attempt failed: (base) C:\WINDOWS\system32>pip install hdbscan --user Collecting hdbscan ...

Tox 0% coverage

I have a python project where I use: pipenv tox pytest and many more. Basically, I want to add tox to my gitlab pipelines. And almost everything seems to work, calling mypy, flake8 or black from...

How to run tox from github actions

I am new to tox and GitHub actions, and I am looking for a simple way to make them work together. I wrote this simple workflow: name: Python package on: [push] jobs: build: runs-on:...

poetry dependencies not available when running script with tox

I have a python project that uses poetry and tox. It has source code, tests and scripts (juptext notebooks). I can't import the dev dependencies in the scripts, but I can in the tests. When I came...

Rotate vertices selected using weight map on UVs in Unity3D's Shader Graph around pivot point

TLDR: Can't figure out the correct Shader Graph setup for using UV and vertex displacement to cheaply animate a (unrigged) mesh. I am trying to rotate a part of the mesh based on the UV...

How to get coverage reporting when testing a pytest plugin?

Context I am updating an inherited repository which has poor test coverage. The repo itself is a pytest plugin. I've changed the repo to use tox along with pytest-cov, and converted the "raw"...

"ERROR: py37: InterpreterNotFound: python3.7" when running tox from github

I have a project on GitHub with a tox.ini file: [tox] envlist = py3 [testenv] deps = -rrequirements.txt commands = pytest --doctest-modules It works well. But when I replace "py3" with...

How to built-in run python tox command and test in visual studio code

I have tox.ini in my project, and I want for running and showing test in visual studio code, using python tox, but I don't know how to do it?

How to connect to docker daemon in Bitbucket pipeline

I want to run a docker container in a Bitbucket pipeline. But I cannot execute any commands as it claims the docker daemon is not running. However, I did not find any way to start it. INFO ...

How to run one specific test by using tox?

This is the path to the project D:\QA\test-framework\python-client This is a test frame work implemented by python This is the python file that contains tests This is the path to the test case...

NameError: name '_mysql' is not defined -- On airflow start in MacOSX

There are numbers of articles on the titled question but none of them worked for me. The detailed error is as follows: Traceback (most recent call last): File...

Python: Using .env (dotenv) file with tox

In my Python project, I'm reading environment variables from a .env file. I am actually using pydantic to read/verify the env vars. When using tox, the .env file will be completely ignored. I am...