Skip to content

Commit

Permalink
Merge pull request #31 from Changaco/file-perms
Browse files Browse the repository at this point in the history
Ensure file permissions are okay before packaging
  • Loading branch information
Changaco committed May 29, 2016
2 parents a2712d2 + c792aca commit 0207af6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -22,5 +25,5 @@ test: env

tests: test

upload:
upload: chmod
python3 setup.py sdist bdist_wheel upload
3 changes: 3 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -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(),
Expand Down

0 comments on commit 0207af6

Please sign in to comment.