green-match-66337
01/07/2023, 2:01 PMhappy-kitchen-89482
01/07/2023, 3:23 PMgreen-match-66337
01/07/2023, 3:56 PMhappy-kitchen-89482
01/07/2023, 9:25 PMgreen-match-66337
01/08/2023, 1:06 AMpython_sources(name="src")
python_requirements(name="reqs")
resources(
name="build_resources",
sources=["README.md", "LICENSE"],
)
python_distribution(
name="jsf-dist",
entry_points={
"console_scripts": {
"jsf": "jsf.cli:app"
},
},
dependencies=[
":src",
":build_resources",
"./tests:tests",
],
long_description_path="README.md",
provides=python_artifact(
name="jsf",
version="0.5.4",
author="ghandic",
description="Creates fake JSON files from a JSON schema",
url="<https://github.com/ghandic/jsf>",
long_description_content_type="text/markdown",
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
keywords=[
"JSON Schema",
"Fake data",
"Test data",
"Schema",
"JSON",
"Faker",
"Hypothesis",
"Rapid Prototype",
"Data contract",
],
zip_safe=True,
python_requires=">=3.7",
extras_require={"cli": ["typer>=0.7.0"]}
),
)
"./tests:tests"
in the dependenciespython_test_utils(
name="test_utils",
)
files(
name="tests",
sources=["data/*.json", "*.py"]
)
python_tests(
name="pytest",
dependencies=[":tests"],
interpreter_constraints=parametrize(py3=[">=3.7,<4"]),
)
happy-kitchen-89482
01/08/2023, 4:23 AMfiles()
target.files()
target into two, one for the .json files and one for the .py files - the python_tests()
target only needs the former, as its sources= already glob over all the right test files