assisi / assisipy

Python API for the ASSISI|bf project.
Other
0 stars 3 forks source link

deployment tools: cleanup of autogenerated files #32

Closed rmm-fcul closed 8 years ago

rmm-fcul commented 9 years ago

Typically the codebase for a project will be within git or svn, including the deployment setup. However, executing the deployment tools generates various files. These transient files should be left out of any repository but sometimes it is hard to know what to ignore. This leads to either a) a repo with files that it should not have committed, or b) a messy svn status / git status result. (maybe the repo status is a symptom of a broader issue, not sure)

Is there a straightforward solution to make it easy to know what to ignore?

dmiklic commented 8 years ago

I think a combination of .gitignore + a clean tool should do the trick. I'll look into this.

plsm commented 8 years ago

Should we include in each repository (svn or git) a file with commands to generate the executable or pdf that automatically puts transient files in temporary folders?

dmiklic commented 8 years ago

I think the transient are already in temporary folders. The problem Rob was referring should go away with .gitignore + a "clean" tool. I'll haven't had the time to look at this yet :(

rmm-fcul commented 8 years ago

Most of the transient files go into a sandbox directory, <projname>_sandbox but there is also a <proj>.py file that is written at the same level as the <proj>.assisi file. (then running it creates a .pyc file).

The sandbox is easy enough to ignore but the autogenerated python file is harder to generalise for.

Any problem to putting the <proj>.py inside the sandbox? This would require changes to deploy.py and assisirun.py. Ideally, I'd like a relocatable sandbox, because I don't think this should be where the project files are, but that is another issue... EDIT: Ahah, no -- its not another issue: that is the first option I suggested above :)

rmm-fcul commented 8 years ago

@dmiklic @plsm does anyone have any reason against me putting the autogenerated <proj>.py file inside the sandbox?

plsm commented 8 years ago

does anyone have any reason against me putting the autogenerated .py file inside the sandbox?

Autogenerated files should go the sandbox

dmiklic commented 8 years ago

Agreed. This does require a small change to the assisirun.py (line 29) in order to let the script find the .py file (aka. Fabfile).