setuptools, not Maven
This commit is contained in:
parent
45da5b603d
commit
4f7249e476
149 changed files with 85 additions and 20 deletions
tools
|
@ -36,10 +36,3 @@ load("//tools/build_rules:webp.bzl",
|
|||
load("@rules_zapp//zapp:zapp.bzl",
|
||||
"zapp_binary",
|
||||
)
|
||||
|
||||
load(
|
||||
"@io_bazel_rules_docker//container:container.bzl",
|
||||
"container_image",
|
||||
"container_bundle",
|
||||
"container_push",
|
||||
)
|
||||
|
|
|
@ -40,8 +40,5 @@ py_pytest(
|
|||
srcs = [
|
||||
"test_licenses.py",
|
||||
],
|
||||
data = [
|
||||
"requirements.txt",
|
||||
],
|
||||
deps = all_requirements,
|
||||
)
|
||||
|
|
|
@ -170,7 +170,7 @@ def py_project(name=None,
|
|||
"""
|
||||
A helper for defining conventionally-formatted python project.
|
||||
|
||||
Assumes that there's a {src,test}/{resources,python} where src/ is a library and test/ is local tests only.
|
||||
Assumes that there's a {src,test}/ where src/ is a library and test/ is local tests only.
|
||||
|
||||
Each test_*.py source generates its own implicit test target. This allows for automatic test parallelism. Non
|
||||
test_*.py files are implicitly srcs for the generated test targets. This is the same as making them implicitly a
|
||||
|
@ -179,28 +179,26 @@ def py_project(name=None,
|
|||
"""
|
||||
|
||||
lib_srcs = (lib_srcs or []) + \
|
||||
native.glob(["src/python/**/*.py"],
|
||||
native.glob(["src/**/*.py"],
|
||||
exclude=[
|
||||
"**/*.pyc",
|
||||
])
|
||||
|
||||
lib_data = (lib_data or []) + \
|
||||
native.glob(["src/resources/**/*",
|
||||
"src/python/**/*"],
|
||||
native.glob(["src/**/*"],
|
||||
exclude=[
|
||||
"**/*.py",
|
||||
"**/*.pyc",
|
||||
])
|
||||
|
||||
test_srcs = (test_srcs or []) + \
|
||||
native.glob(["test/python/**/*.py"],
|
||||
native.glob(["test/**/*.py"],
|
||||
exclude=[
|
||||
"**/*.pyc",
|
||||
])
|
||||
|
||||
test_data = (test_data or []) + \
|
||||
native.glob(["test/resources/**/*",
|
||||
"test/python/**/*"],
|
||||
native.glob(["test/**/*"],
|
||||
exclude=[
|
||||
"**/*.py",
|
||||
"**/*.pyc",
|
||||
|
|
|
@ -22,8 +22,11 @@ APPROVED_LICENSES = [
|
|||
MPL20 := "License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)",
|
||||
PSFL := "License :: OSI Approved :: Python Software Foundation License",
|
||||
LGPL := "License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)",
|
||||
LGPL3 := "License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)",
|
||||
LGPL3 := 'License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)',
|
||||
LGPL3P := "License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)",
|
||||
ISCL := "License :: OSI Approved :: ISC License (ISCL)",
|
||||
ZOPE := 'License :: OSI Approved :: Zope Public License',
|
||||
PUBLIC := 'License :: Public Domain',
|
||||
]
|
||||
|
||||
UNAPPROVED_LICENSES = [
|
||||
|
@ -35,6 +38,7 @@ UNAPPROVED_LICENSES = [
|
|||
# This data is GARBO.
|
||||
LICENSES_BY_LOWERNAME = {
|
||||
"apache 2.0": APACHE,
|
||||
"apache 2": APACHE,
|
||||
"apache": APACHE,
|
||||
"http://www.apache.org/licenses/license-2.0": APACHE,
|
||||
"bsd 3": BSD,
|
||||
|
@ -61,6 +65,8 @@ APPROVED_PACKAGES = [
|
|||
"yamllint", # WARNING: YAMLLINT IS GLP3"d.
|
||||
"Flask_Log_Request_ID", # MIT, currently depended on as a git dep.
|
||||
"anosql", # BSD
|
||||
"pathable", # Apache 2
|
||||
"proquint", # MIT
|
||||
]
|
||||
|
||||
|
||||
|
@ -126,7 +132,7 @@ def licenses(dist: DistInfoDistribution):
|
|||
if not lics:
|
||||
lics.append(license)
|
||||
|
||||
return lics
|
||||
return [l.strip() for l in lics]
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue