This repository was archived by the owner on Dec 15, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
40 lines (33 loc) · 1.4 KB
/
setup.py
File metadata and controls
40 lines (33 loc) · 1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Copyright (c) 2020 Anastasiia Birillo, Elena Lyulina
import sys
import argparse
from setuptools import setup, find_packages
import src
from src.test.test_config import get_level_by_param
with open('README.md') as readme_file:
readme = readme_file.read()
with open('requirements.txt') as req_file:
install_requires = req_file.read()
# Todo: find a better way for it
# See: https://docs.pytest.org/en/latest/example/simple.html#pass-different-values-to-a-test-function-depending-on-command-line-options
args = sys.argv
test_level_param = '--test_level'
if test_level_param in args:
parser = argparse.ArgumentParser()
parser.add_argument('test', action='store', choices=['test'], help='Action type')
parser.add_argument(test_level_param, action='store', dest='test_level_key', help='Test level key', type=str)
args = parser.parse_args()
src.test.test_config.CURRENT_TEST_LEVEL = get_level_by_param(args.test_level_key)
sys.argv.remove(test_level_param)
sys.argv.remove(args.test_level_key)
setup(name='codetracker-data',
# version='1.0.0',
description='Data processing, hint generation algorithm',
url='https://github.com/elena-lyulina/codetracker-data',
author='Anastasiia Birillo, Elena Lyulina',
long_description_content_type='text/markdown',
long_description=readme,
license='MIT',
packages=find_packages(),
python_requires='>=3'
)