From 2f504ba3289508f3492a46efe5bad28d85ee9428 Mon Sep 17 00:00:00 2001 From: Nekmo Date: Sat, 21 Jul 2018 23:12:39 +0200 Subject: [PATCH] Clean junk files. --- .gitignore | 1 + MANIFEST.in | 1 + setup.py | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 81d139f8..87f5e495 100644 --- a/.gitignore +++ b/.gitignore @@ -62,3 +62,4 @@ target/ .python-version /.idea +*.session diff --git a/MANIFEST.in b/MANIFEST.in index 522434a5..20fe7761 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -10,5 +10,6 @@ include py3-requirements.txt recursive-include tests * recursive-exclude * __pycache__ recursive-exclude * *.py[co] +recursive-exclude * *.session recursive-include docs *.rst conf.py Makefile make.bat *.jpg *.png *.gif diff --git a/setup.py b/setup.py index ce742a1c..8b4b1252 100644 --- a/setup.py +++ b/setup.py @@ -55,7 +55,7 @@ def get_url(ir): if os.path.exists(scripts_path): scripts_dir_name = scripts_path.replace(__dir__, '', 1) scripts_dir_name = scripts_dir_name[1:] if scripts_dir_name.startswith(os.sep) else scripts_dir_name - scripts = [os.path.join(scripts_dir_name, file) for file in os.listdir(scripts_path)] + scripts = [os.path.join(scripts_dir_name, file) for file in os.listdir(scripts_path) if '.' not in file] else: scripts = []