forked from ungleich-public/cdist
do not package .gitignore into pypi package (fixes #255)
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
This commit is contained in:
parent
3c0790f080
commit
746d9ec12b
1 changed files with 5 additions and 0 deletions
5
setup.py
5
setup.py
|
@ -5,6 +5,11 @@ import os
|
||||||
def data_finder(data_dir):
|
def data_finder(data_dir):
|
||||||
entries = []
|
entries = []
|
||||||
for name in os.listdir(data_dir):
|
for name in os.listdir(data_dir):
|
||||||
|
|
||||||
|
# Skip .gitignore files
|
||||||
|
if name == ".gitignore":
|
||||||
|
continue
|
||||||
|
|
||||||
entry = os.path.join(data_dir, name)
|
entry = os.path.join(data_dir, name)
|
||||||
if os.path.isdir(entry):
|
if os.path.isdir(entry):
|
||||||
entries.extend(data_finder(entry))
|
entries.extend(data_finder(entry))
|
||||||
|
|
Loading…
Reference in a new issue