origami-lib icon indicating copy to clipboard operation
origami-lib copied to clipboard

Add develop and production mode in setup.py to origami-lib

Open fristonio opened this issue 6 years ago • 4 comments

As of now in origami there is only one setup and for testing and development puposes user have to manually install certain dependencies. It would be much better if we can give user a develop install for origami-lib which user can use for development and testing puposes.

I'm still digging the best way we can have here but I am thinking something on the lines of https://github.com/owtf/owtf/blob/develop/setup.py

What do you think about this @AvaisP @uttu357 ?

fristonio avatar Apr 05 '18 19:04 fristonio

@fristonio Is this relevant currently? If it is then we can have a requirements directory which has a common.txt for common dependencies and different dev.txt and prod.txt which includes common.txt and dependencies specific to the environment.

gupta-utkarsh avatar Jun 16 '18 13:06 gupta-utkarsh

I am not sure if this is the right way to do it for a python package since we specify the dependencies in setup.py. As of now, I have all the common dependencies inside install-requires in setup.py and dev requirements in requirements-dev.txt. What I wanted to have was a command to install dev and release requirements like python setup.py install and python setup.py develop

fristonio avatar Jun 16 '18 14:06 fristonio

Okay.. Can you explore a bit more how others package dependencies for development purposes and see mention other examples?

gupta-utkarsh avatar Jun 16 '18 14:06 gupta-utkarsh

Yeah, will do.

fristonio avatar Jun 16 '18 14:06 fristonio