forked from Juniper/healthbot-py-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
33 lines (29 loc) · 1.41 KB
/
Makefile
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
28
29
30
31
32
33
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER
#
# Copyright 2018 Juniper Networks, Inc.
# All rights reserved.
#
# Licensed under the Juniper Networks Script Software License (the "License").
# You may not use this script file except in compliance with the License, which is located at
# http://www.juniper.net/support/legal/scriptlicense/
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Please make sure to run this file as a root user
GET_VERSION= python -c 'import versioneer;print(versioneer.get_version())'
build:
cd docs && make html
cp -r docs/jnpr_healthbot_swagger/swagger_client/ lib/jnpr/healthbot/swagger/
cd lib/jnpr/healthbot/swagger/ && sed -i '' -e 's/from\ swagger_client/from\ jnpr.healthbot.swagger/g' *.py
cd lib/jnpr/healthbot/swagger/ && sed -i '' -e 's/swagger_client/jnpr.healthbot.swagger/g' *.py
cd lib/jnpr/healthbot/swagger/api && sed -i '' -e 's/from\ swagger_client/from\ jnpr.healthbot.swagger/g' *.py
cd lib/jnpr/healthbot/swagger/models && sed -i '' -e 's/from\ swagger_client/from\ jnpr.healthbot.swagger/g' *.py
python3 setup.py bdist_wheel
.PHONY: version
version:
@$(call GET_VERSION)
test:
tox -e unittest