diff --git a/Makefile b/Makefile index 69ad7d1..cd3e661 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,10 @@ env: requirements_tests.txt ./env/bin/pip3 install -r requirements_tests.txt ./env/bin/pip2 install -r requirements_tests.txt -dist: +chmod: + git ls-files -z | xargs -0 chmod u=rwX,g=rX,o=rX + +dist: chmod python3 setup.py sdist bdist_wheel python2 setup.py sdist @@ -22,5 +25,5 @@ test: env tests: test -upload: +upload: chmod python3 setup.py sdist bdist_wheel upload diff --git a/setup.py b/setup.py index f24be07..904ed60 100644 --- a/setup.py +++ b/setup.py @@ -1,9 +1,12 @@ +import os from os.path import join, dirname from setuptools import setup, find_packages from version import get_version +os.umask(2) + setup( name='libarchive-c', version=get_version(),