[melbourne-pug] setuptools package_data permissions
Brian May
brian at microcomaustralia.com.au
Tue Mar 31 03:12:40 CEST 2015
Hello,
How do you ensure that files installed using package_data have sane
permissions?
I am getting data files installed with mod 600, so only root can access
them.
The *.py files seem fine however.
from setuptools import setup, find_packages
with open('VERSION.txt', 'r') as f:
version = f.readline().strip()
setup(
name="python-alogger",
version=version,
url='https://github.com/Karaage-Cluster/python-alogger',
author='Brian May',
author_email='brian at v3.org.au',
description='Small python library to parse resource manager logs',
packages=find_packages(),
license="GPL3+",
long_description=open('README.rst').read(),
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU Lesser General Public License v3 "
"or later (LGPLv3+)",
"Operating System :: OS Independent",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
"Topic :: Software Development :: Libraries :: Python Modules",
],
keywords="karaage cluster user administration",
package_data={
'': ['*.log', '*.json'],
},
test_suite="alogger.tests",
)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/melbourne-pug/attachments/20150331/fcbc22f3/attachment.html>
More information about the melbourne-pug
mailing list