eudicots / Cactus

Static site generator for designers. Uses Python and Django templates.
BSD 3-Clause "New" or "Revised" License
3.46k stars 314 forks source link

add buildout support (to replace `run.py` script) #206

Closed chaudum closed 8 years ago

chaudum commented 8 years ago

to boostrap and buildout Cactus for local development run:

$ python bootstrap.py
$ bin/buildout

then, to run Cactus:

$ bin/cactus ...

to run tests:

$ bin/test

Reference: zc.buildout

krallin commented 8 years ago

We're currently using tox for development. I'm not sure I understand why adding another tool is desirable here.

As I mentioned in the other thread, I don't really see why this "replaces" the run.py script? The run.py script essentially just does whatever cli.py does. It's not really useful (and not very usable, since it strongly depends on how your your PYTHONPATH is setup and whether Cactus is installed).

chaudum commented 8 years ago

@krallin ah ok. so tox is what I missed.

krallin commented 8 years ago

Eh that might be why! You should be able to run all tests by just installing tox and then running tox from the root of the project (where there is tox.ini).

As far as running cactus in development, what I usually do is install Cactus in development (python setup.py develop) in a virtual environment. If that's not usable I'm happy to hear suggestions / etc. : )

Cheers,