Created
October 20, 2017 18:12
-
-
Save mansu/217d2a0d67daeb411fdc3d2e3f0fabac to your computer and use it in GitHub Desktop.
Sample BUILD file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Build file for srebot project in src/main/python/pinterest/srebot/BUILD | |
VERSION = "0.1.4" | |
python_library( | |
name = '_bot', | |
sources = rglobs('*.py'), | |
dependencies = [ | |
'3rdparty/python:argparse', | |
], | |
resource_targets = [':config'], | |
) | |
python_binary( | |
name = 'srebot', | |
entry_point = 'pinterest.srebot.bot:main', | |
dependencies = [ | |
':_bot' | |
] | |
) | |
python_library( | |
name = 'srebot-lib', | |
dependencies = [ | |
':_bot', | |
], | |
provides = setup_py( | |
name = 'pinterest.srebot', | |
version = VERSION | |
).with_binaries({ | |
'srebot': ':srebot' | |
}), | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment