Questions tagged [pyscaffold]

4 questions
13
votes
1 answer

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 correct, if I were to use tox using the tox…
shamwow
  • 315
  • 2
  • 11
2
votes
0 answers

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 ideas on what might be going on and how to fix…
gkcn
  • 1,360
  • 1
  • 12
  • 23
0
votes
0 answers

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 ---- modelling.py ---- main.py Now when i build package…
Arshanvit
  • 417
  • 1
  • 7
  • 28
0
votes
1 answer

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: # Change here if project is renamed and does not…
Eric Wiener
  • 4,929
  • 4
  • 31
  • 40