setup   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 21
dl 0
loc 28
rs 10
c 0
b 0
f 0
wmc 2

1 Function

Rating   Name   Duplication   Size   Complexity  
A get_version() 0 5 2
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