generated from pantsbuild/example-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD
26 lines (23 loc) · 791 Bytes
/
BUILD
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
# Copyright 2020 Pants project contributors.
# Licensed under the Apache License, Version 2.0 (see LICENSE).
# A macro that turns every entry in this directory's requirements.txt into a
# `python_requirement_library` target. Refer to
# https://www.pantsbuild.org/docs/python-third-party-dependencies.
python_requirements(name = "reqs")
python_distribution(
name = "test_distribution",
dependencies = ["//helloworld/greet/greeting.py:lib"],
entry_points = {"console_scripts": {"hello": "helloworld.greet.greating:say_hello"}},
provides = python_artifact(
name = "test_dist",
version = "0",
),
)
pex_binary(
name = "executable_scripts",
dependencies = [
":test_distribution",
":reqs#conscript",
],
script = "conscript",
)