Skip to content

Commit

Permalink
Snyk integration (cvat-ai#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxim Zhiltsov committed Jan 11, 2021
1 parent f8cdef5 commit 9d66c57
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,15 @@
import re
import setuptools

# Snyk scan integration
here = None

def find_version(file_path=None):
if not file_path:
file_path = osp.join(osp.dirname(osp.abspath(__file__)),
'datumaro', 'version.py')

def find_version(project_dir=None):
if not project_dir:
project_dir = osp.dirname(osp.abspath(__file__))

file_path = osp.join(project_dir, 'datumaro', 'version.py')

with open(file_path, 'r') as version_file:
version_text = version_file.read()
Expand Down Expand Up @@ -60,7 +64,7 @@ def get_requirements():

setuptools.setup(
name="datumaro",
version=find_version(),
version=find_version(here),
author="Intel",
author_email="maxim.zhiltsov@intel.com",
description="Dataset Management Framework (Datumaro)",
Expand Down

0 comments on commit 9d66c57

Please sign in to comment.