From 133047ae4bc76c3b821d364d2f30e65d461c2be6 Mon Sep 17 00:00:00 2001 From: r3nt0n Date: Sun, 21 Jun 2020 12:05:19 +0200 Subject: [PATCH] Added setup.py. Converted all input paths into platform independent paths (pathlib). --- r3ntlib/d.py | 14 -------------- r3ntlib/os_ops.py | 3 ++- setup.py | 18 ++++++++++++++++++ 3 files changed, 20 insertions(+), 15 deletions(-) delete mode 100644 r3ntlib/d.py create mode 100644 setup.py diff --git a/r3ntlib/d.py b/r3ntlib/d.py deleted file mode 100644 index 41f765a..0000000 --- a/r3ntlib/d.py +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- - -"""module.py: Description of what module does.""" - -__author__ = "Rob Knight, Gavin Huttley, and Peter Maxwell" -__copyright__ = "Copyright 2007, The Cogent Project" -__credits__ = ["Rob Knight", "Peter Maxwell", "Gavin Huttley", - "Matthew Wakefield"] -__license__ = "GPL" -__version__ = "1.0.1" -__maintainer__ = "Rob Knight" -__email__ = "rob@spot.colorado.edu" -__status__ = "Production" \ No newline at end of file diff --git a/r3ntlib/os_ops.py b/r3ntlib/os_ops.py index 3cebd3c..9db7478 100644 --- a/r3ntlib/os_ops.py +++ b/r3ntlib/os_ops.py @@ -13,6 +13,7 @@ __status__ = 'Development' import os, subprocess +from pathlib import Path # wmi impoted in OS systems @@ -41,7 +42,7 @@ def find_files(root_path, files_to_exclude): exclude = True break # Don't keep testing files excluded if it matches one if not exclude: - files_list.append(os.path.join(root, name)) + files_list.append(Path(root) / name) return files_list diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..5613eea --- /dev/null +++ b/setup.py @@ -0,0 +1,18 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- +# r3nt0n +# https://github.com/r3nt0n/wiper + + +from setuptools import setup, find_packages + +setup( + name='wiper', + author='r3nt0n', + author_email='bvega@protonmail.com', + url='https://github.com/r3nt0n/wiper', + version='0.5-beta', + license='GNU General Public License v3.0', + packages=['r3ntlib',], + scripts=['wiper.py'], +)