The current installation scheme (see https://github.com/von/PerProxy/issues/35) using /usr/local/perproxy doesn't allow for virtualenv since /usr/local/perproxy is outside the virtual environment.
It would be nice to figure out a way to install that works with virtualenv to aid development.
The problem is how to install the files in etc/ such that I can get their paths.
pkgutil.get_data() allows me to get the content of package_data, but not it's path (since it could be in an egg, this is understandable).
So this means I need to run without requiring static configuration that I need to refer to by path (or make temporary copies of such files).
Here are the files in etc/ and what it would be take to convert them to package_data:
PerProxy-whitelist.txt - Not needed. Is only read if specified.
error_template.html - need to modify PerProxy to take from package_data instead of file
logging.config - logging.config package only reads from file or dict; need to write package_data to temporary file
PerProxy.conf - Not needed. Is only read if specified.
The current installation scheme (see https://github.com/von/PerProxy/issues/35) using /usr/local/perproxy doesn't allow for virtualenv since /usr/local/perproxy is outside the virtual environment.
It would be nice to figure out a way to install that works with virtualenv to aid development.
The problem is how to install the files in etc/ such that I can get their paths.
pkgutil.get_data() allows me to get the content of package_data, but not it's path (since it could be in an egg, this is understandable).
So this means I need to run without requiring static configuration that I need to refer to by path (or make temporary copies of such files).
Here are the files in etc/ and what it would be take to convert them to package_data:
PerProxy-whitelist.txt - Not needed. Is only read if specified.
error_template.html - need to modify PerProxy to take from package_data instead of file
logging.config - logging.config package only reads from file or dict; need to write package_data to temporary file
PerProxy.conf - Not needed. Is only read if specified.
http_notary_list.txt - use new Notaries.default() method (see https://github.com/von/pyPerspectives/issues/11)