-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathBUILD.bazel
42 lines (38 loc) · 961 Bytes
/
BUILD.bazel
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
load("@rules_python//python:defs.bzl", "py_library")
load("//third_party/python:build_defs.bzl", "mypy_test", "pyx_library")
load("//tools/project:build_defs.bzl", "project")
project(license = "gpl3-https")
pyx_library(
name = "pytox",
srcs = glob(
[
"pytox/**/*.pxd",
"pytox/**/*.pyx",
"pytox/**/*.py",
"pytox/**/*.pyi",
],
# TODO(iphydf): Remove.
exclude = ["**/*.gen.pyx"],
),
cdeps = ["//c-toxcore"],
cython_directives = {
"embedsignature": "True",
"embedsignature.format": "python",
},
tags = ["no-cross"],
visibility = ["//visibility:public"],
)
mypy_test(
name = "mypy_test",
srcs = glob(
["**/*.py"],
exclude = ["setup.py"],
),
path = ["py_toxcore_c"],
)
py_library(
name = "py_toxcore_c",
srcs = ["__init__.py"],
visibility = ["//visibility:public"],
deps = [":pytox"],
)