build: add basic build infrastructure

This commit is contained in:
Shiz 2021-12-12 13:30:09 +01:00
parent 2a92a330c7
commit ef0108ecd0
3 changed files with 16 additions and 2 deletions

3
pyproject.toml Normal file
View File

@ -0,0 +1,3 @@
[build-system]
requires = ["setuptools >= 40.9.0"]
build-backend = "setuptools.build_meta"

10
setup.cfg Normal file
View File

@ -0,0 +1,10 @@
[metadata]
name = weegee
version = 0.1.0
[options]
packages = weegee
[options.entry_points]
console_scripts =
weegee = weegee.__main__:main

View File

@ -447,5 +447,6 @@ def main():
context = WeegeeContext(config) context = WeegeeContext(config)
sys.exit(args.func(parser, args, context)) sys.exit(args.func(parser, args, context))
# isn't this a tautology?
main() if __name__ == '__main__':
main()