uvacw / inca

24 stars 6 forks source link

Modulify #352

Closed damian0604 closed 6 years ago

damian0604 commented 6 years ago

This PR changes the structure of the INCA repo so that it can be installed with pip. We want to put INCA on PyPI in the long term (so that everyone can just do pip install inca, and this PR takes the first step.

It allows to just to pip install . when in the inca directory and it installs it so that INCA can be used from everywhere on the system.

A side effect of this PR is that while the working of

import inca
myinca = inca.Inca()

stays the same, the old-fashioned commands that directly used inca now have an additional part main:

import inca
inca.main.rssscrapers........

That's not bad though, because the former should become the preferred way anyway.