-
Notifications
You must be signed in to change notification settings - Fork 42
/
setup.py
57 lines (53 loc) · 1.72 KB
/
setup.py
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
from os import path
from platform import system
from setuptools import Extension, find_packages, setup
here = path.abspath(path.dirname(__file__))
with open(path.join(here, "README.md"), encoding="utf-8") as f:
long_description = f.read()
setup(
name="codecov-cli",
version="9.1.1",
packages=find_packages(exclude=["contrib", "docs", "tests*"]),
description="Codecov Command Line Interface",
long_description=long_description,
long_description_content_type="text/markdown",
author="Codecov",
author_email="support@codecov.io",
install_requires=[
"click==8.*",
"httpx==0.27.*",
"ijson==3.*",
"pyyaml==6.*",
"responses==0.21.*",
"tree-sitter==0.20.*",
"test-results-parser==0.5.*",
"regex",
],
entry_points={
"console_scripts": [
"codecovcli = codecov_cli.main:run",
],
},
python_requires=">=3.8",
ext_modules=[
Extension(
"staticcodecov_languages",
[
"languages/languages.c",
"languages/treesitterpython/src/parser.c",
"languages/treesitterjavascript/src/parser.c",
"languages/treesitterpython/src/scanner.cc",
"languages/treesitterjavascript/src/scanner.c",
],
include_dirs=[
"languages/treesitterpython/src",
"languages/treesitterjavascript/src",
"languages/treesitterjavascript/src/tree_sitter",
"languages/treesitterpython/src/tree_sitter",
],
extra_compile_args=(
["-Wno-unused-variable"] if system() != "Windows" else None
),
)
],
)