generated from pantsbuild/example-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD
24 lines (21 loc) · 731 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
# 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 target
# with the name of the corresponding dist.
#
# For example, `translate>=3.2.1` expands to:
# python_requirement_library(
# name='translate',
# requirements=[
# python_requirement('translate>=3.2.1')
# ]
# )
#
# Refer to https://www.pantsbuild.org/v2.0/docs/python-third-party-dependencies.
python_requirements(
# `setuptools` exposes a module different than the project name. We teach this to Pants so that
# it can correctly infer dependencies.
module_mapping={
"setuptools": ["pkg_resources"],
},
)