Skip to content

Commit 0207af6

Browse files
committed
Merge pull request #31 from Changaco/file-perms
Ensure file permissions are okay before packaging
2 parents a2712d2 + c792aca commit 0207af6

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ env: requirements_tests.txt
88
./env/bin/pip3 install -r requirements_tests.txt
99
./env/bin/pip2 install -r requirements_tests.txt
1010

11-
dist:
11+
chmod:
12+
git ls-files -z | xargs -0 chmod u=rwX,g=rX,o=rX
13+
14+
dist: chmod
1215
python3 setup.py sdist bdist_wheel
1316
python2 setup.py sdist
1417

@@ -22,5 +25,5 @@ test: env
2225

2326
tests: test
2427

25-
upload:
28+
upload: chmod
2629
python3 setup.py sdist bdist_wheel upload

setup.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1+
import os
12
from os.path import join, dirname
23

34
from setuptools import setup, find_packages
45

56
from version import get_version
67

8+
os.umask(2)
9+
710
setup(
811
name='libarchive-c',
912
version=get_version(),

0 commit comments

Comments
 (0)