Skip to content

Instantly share code, notes, and snippets.

@mansu
Created October 20, 2017 18:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mansu/217d2a0d67daeb411fdc3d2e3f0fabac to your computer and use it in GitHub Desktop.
Save mansu/217d2a0d67daeb411fdc3d2e3f0fabac to your computer and use it in GitHub Desktop.
Sample BUILD file
# 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