-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathsetup.py
More file actions
27 lines (24 loc) · 842 Bytes
/
setup.py
File metadata and controls
27 lines (24 loc) · 842 Bytes
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
27
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0.
from setuptools import setup, find_packages
from subprocess import check_output
git_branch = check_output(['git', 'rev-parse', '--abbrev-ref', 'HEAD'], text=True).strip()
version = 'v0.9+{}'.format(git_branch)
if git_branch in ['master', 'main']:
git_rev = check_output(['git', 'describe', '--abbrev=0', '--tags'], text=True).strip()
version = git_rev
setup(
name="builder",
version=version,
packages=find_packages(),
entry_points={
'console_scripts': [
'builder = builder.main:main'
]
},
author='AWS SDK Common Runtime Team',
author_email='aws-sdk-common-runtime@amazon.com',
project_urls={
"Source": "https://github.com/awslabs/aws-crt-builder"
}
)