mirror of https://github.com/labapart/gattlib
gattlib-py/setup.py: Remove Travis CI support
parent
0a868a506b
commit
76fb44643f
|
@ -1,7 +1,7 @@
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: BSD-3-Clause
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
#
|
#
|
||||||
# Copyright (c) 2016-2021, Olivier Martin <olivier@labapart.org>
|
# Copyright (c) 2016-2024, Olivier Martin <olivier@labapart.org>
|
||||||
#
|
#
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
@ -14,18 +14,12 @@ git_version_command = subprocess.Popen(['git', 'describe', '--abbrev=7', '--dirt
|
||||||
stdout, stderr = git_version_command.communicate()
|
stdout, stderr = git_version_command.communicate()
|
||||||
git_version = stdout.decode('utf-8').strip()
|
git_version = stdout.decode('utf-8').strip()
|
||||||
|
|
||||||
# Value from travis-ci
|
|
||||||
if 'TRAVIS_TAG' in os.environ:
|
|
||||||
git_version = os.environ['TRAVIS_TAG']
|
|
||||||
elif 'TRAVIS_BUILD_ID' in os.environ:
|
|
||||||
git_version = os.environ['TRAVIS_BUILD_ID'] + '-' + git_version
|
|
||||||
|
|
||||||
with open("README.md", "r") as fh:
|
with open("README.md", "r") as fh:
|
||||||
long_description = fh.read()
|
long_description = fh.read()
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='gattlib-py',
|
name='gattlib-py',
|
||||||
version=git_version,
|
version=os.environ.get('GATTLIB_PY_VERSION', git_version),
|
||||||
author="Olivier Martin",
|
author="Olivier Martin",
|
||||||
author_email="olivier@labapart.com",
|
author_email="olivier@labapart.com",
|
||||||
description="Python wrapper for gattlib library",
|
description="Python wrapper for gattlib library",
|
||||||
|
|
Loading…
Reference in New Issue