Compare commits
No commits in common. "69949596807efaf8e9df054343bf81fd5d528bb7" and "cf6fc7ebd9b25dd89b14407d59e057d757c6395d" have entirely different histories.
6994959680
...
cf6fc7ebd9
2 changed files with 22 additions and 31 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -22,5 +22,5 @@ bazel-*
|
||||||
public/
|
public/
|
||||||
tmp/
|
tmp/
|
||||||
/**/*.sqlite*
|
/**/*.sqlite*
|
||||||
/**/config*.toml
|
/**/config.toml
|
||||||
/**/config*.yml
|
/**/config.yml
|
||||||
|
|
|
@ -160,7 +160,6 @@ def py_project(name=None,
|
||||||
main_deps=None,
|
main_deps=None,
|
||||||
main_data=None,
|
main_data=None,
|
||||||
shebang=None,
|
shebang=None,
|
||||||
zip_safe=True,
|
|
||||||
lib_srcs=None,
|
lib_srcs=None,
|
||||||
lib_deps=None,
|
lib_deps=None,
|
||||||
lib_data=None,
|
lib_data=None,
|
||||||
|
@ -178,33 +177,26 @@ def py_project(name=None,
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
lib_srcs = (lib_srcs or []) + \
|
lib_srcs = lib_srcs or native.glob(["src/python/**/*.py"],
|
||||||
native.glob(["src/python/**/*.py"],
|
exclude=[
|
||||||
exclude=[
|
"**/*.pyc",
|
||||||
"**/*.pyc",
|
])
|
||||||
])
|
lib_data = lib_data or native.glob(["src/resources/**/*",
|
||||||
|
"src/python/**/*"],
|
||||||
lib_data = (lib_data or []) + \
|
exclude=[
|
||||||
native.glob(["src/resources/**/*",
|
"**/*.py",
|
||||||
"src/python/**/*"],
|
"**/*.pyc",
|
||||||
exclude=[
|
])
|
||||||
"**/*.py",
|
test_srcs = test_srcs or native.glob(["test/python/**/*.py"],
|
||||||
"**/*.pyc",
|
exclude=[
|
||||||
])
|
"**/*.pyc",
|
||||||
|
])
|
||||||
test_srcs = (test_srcs or []) + \
|
test_data = test_data or native.glob(["test/resources/**/*",
|
||||||
native.glob(["test/python/**/*.py"],
|
"test/python/**/*"],
|
||||||
exclude=[
|
exclude=[
|
||||||
"**/*.pyc",
|
"**/*.py",
|
||||||
])
|
"**/*.pyc",
|
||||||
|
])
|
||||||
test_data = (test_data or []) + \
|
|
||||||
native.glob(["test/resources/**/*",
|
|
||||||
"test/python/**/*"],
|
|
||||||
exclude=[
|
|
||||||
"**/*.py",
|
|
||||||
"**/*.pyc",
|
|
||||||
])
|
|
||||||
|
|
||||||
lib_name = name if not main else "lib"
|
lib_name = name if not main else "lib"
|
||||||
|
|
||||||
|
@ -250,7 +242,6 @@ def py_project(name=None,
|
||||||
"//visibility:public",
|
"//visibility:public",
|
||||||
],
|
],
|
||||||
shebang = shebang,
|
shebang = shebang,
|
||||||
zip_safe=zip_safe,
|
|
||||||
)
|
)
|
||||||
|
|
||||||
for src in test_srcs:
|
for src in test_srcs:
|
||||||
|
|
Loading…
Reference in a new issue