I am trying to have 2 simultaneous versions of a single package on a server. A production and a testing one. I want these 2 to be on the same git repository on 2 different branches (The testing would merge into production) however i would love to keep them in the same directory so its not needed to change any imports or paths.
Is it possible to dynamically change the package name in setup.py, depending on the git branch? Or is it possible to deploy them with different names using pip?
EDIT : i may have found a proper solution for my problem here : Git: ignore some files during a merge (keep some files restricted to one branch) Gitattributes can be setup to ignore merging of my setup.py, ill close this question after i test it.