| Total Complexity | 2 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | import os |
||
| 2 | from setuptools import setup, find_packages |
||
| 3 | |||
| 4 | |||
| 5 | def get_version(version_file='_version.py'): |
||
| 6 | """Retrieve the package version from a version file in the package root.""" |
||
| 7 | filename = os.path.join(os.path.dirname(__file__), 'dirutility', version_file) |
||
| 8 | with open(filename, 'rb') as fp: |
||
| 9 | return fp.read().decode('utf8').split('=')[1].strip(" \n'") |
||
| 10 | |||
| 11 | |||
| 12 | setup(name='dirutility', |
||
| 13 | version=get_version(), |
||
| 14 | packages=find_packages(), |
||
| 15 | install_requires=['looptools>=1.2.3', 'tqdm'], |
||
| 16 | entry_points={ |
||
| 17 | 'console_scripts': [ |
||
| 18 | 'zipbackup = dirutility.backup:main', 'dirpaths = dirutility.walk.walk:gui', |
||
| 19 | 'text-dump = dirutility.dump:main' |
||
| 20 | ] |
||
| 21 | }, |
||
| 22 | url='https://github.com/sfneal/dirutility', |
||
| 23 | license='MIT License', |
||
| 24 | author='Stephen Neal', |
||
| 25 | author_email='[email protected]', |
||
| 26 | description='Add compare module and GUI to parse two directories and return lists of unique files.', |
||
| 27 | long_description='Utility functions for quickly reading directory contents and refactoring folder structure') |
||
| 28 |