Skip to main content
Filter by
Sorted by
Tagged with
1 vote
0 answers
55 views

tox cannot find module

I am trying to run tox on a module. Consider the following python package: foo ├── tox.ini ├── setup.cfg │ tests │ └── test_bar.py └── src ├── data │ └── data.csv ├── __init__.py ...
BdB's user avatar
  • 503
2 votes
0 answers
134 views

How can I understand why Sphinx fails with code -4 within GitLab CI?

I am trying to build the docs of my project with Sphinx, tox, and GitLab CI. Although it works fine locally I am getting this very unintuitive error without any proper error message on GitLab CI. Any ...
gkcn's user avatar
  • 1,410
0 votes
0 answers
135 views

Include both type of imports in python package

I am new to python packages and currently using tox with pyscaffold to prepare packages. The structure of my code directory is as follows: -- project -- src ----__init__.py ---- data_prep.py ---- ...
Arshanvit's user avatar
  • 457
15 votes
1 answer
5k views

Is there a reason to have both tox.ini and setup.cfg in a python project?

I have just scaffolded a python project using PyScaffold. One thing that has caught my attention was the fact that the scaffolding generated both setup.cfg and tox.ini files. If my understanding is ...
shamwow's user avatar
  • 335
0 votes
1 answer
2k views

Getting a package version when the name has a hyphen in it

I used PyScaffold to create a template for a PyPi package I am creating, bbox-utils. The generated __init__.py is as follows: from pkg_resources import DistributionNotFound, get_distribution try: ...
Eric Wiener's user avatar
  • 5,767