Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Tox includes a --force-dep
option that can be used to provide version
restrictions for dependencies - however, by design this only works with
dependencies explicitly listed in the deps
section of the tox.ini
file
(see this issue <https://github.com/tox-dev/tox/issues/534>
_ for a
discussion of this).
The tox-pypi-filter plugin works around this by using a proxy PyPI server that filters packages in a way that is independent of tox's implementation.
To install::
pip install tox-pypi-filter
This plugin provides a --pypi-filter
command-line option that takes
PEP440 version specifiers <https://www.python.org/dev/peps/pep-0440/#version-specifiers>
_ separated by
semicolons, e.g.::
tox --pypi-filter "numpy==1.14.*;pytest<4" -e py37-test
In this case, if Numpy or PyTest are needed by the tox environment, the versions that will be installed will satisfy the version specification supplied.
This plugin will not work properly if you use the -i/--index-url
option
manually when calling tox. In addition, this will only work with pip-based
installs, and will not work with e.g. tox-conda <https://github.com/tox-dev/tox-conda>
_.
FAQs
Implement a --pypi-filter option for tox
We found that tox-pypi-filter demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.