Skip to content

Commit d880303

Browse files
author
Your Name
committed
add pip install yolov7-d2 on pypi
1 parent cb0f72f commit d880303

File tree

2 files changed

+40
-3
lines changed

2 files changed

+40
-3
lines changed

setup.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ def get_version():
2222

2323
if __name__ == "__main__":
2424
setup(
25-
name="yolov7",
25+
name="yolov7_d2",
2626
version=get_version(),
27-
description="YOLOv7 is a high-level training framework based on detectron2",
27+
description="YOLOv7D2 is a high-level training framework based on detectron2",
2828
long_description="",
2929
author="LucasJin",
3030
author_email="[email protected]",
3131
keywords="computer vision, object detection",
32-
url="https://github.com/jinfagang/yolov7",
32+
url="https://github.com/jinfagang/yolov7_d2",
3333
packages=find_packages(exclude=("configs", "tools", "demo", "images")),
3434
classifiers=[
3535
"Development Status :: 4 - Beta",

upload_pypi.sh

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
##
2+
## Copyright (c) 2020 JinTian.
3+
##
4+
## This file is part of alfred
5+
## (see http://jinfagang.github.io).
6+
##
7+
## Licensed to the Apache Software Foundation (ASF) under one
8+
## or more contributor license agreements. See the NOTICE file
9+
## distributed with this work for additional information
10+
## regarding copyright ownership. The ASF licenses this file
11+
## to you under the Apache License, Version 2.0 (the
12+
## "License"); you may not use this file except in compliance
13+
## with the License. You may obtain a copy of the License at
14+
##
15+
## http://www.apache.org/licenses/LICENSE-2.0
16+
##
17+
## Unless required by applicable law or agreed to in writing,
18+
## software distributed under the License is distributed on an
19+
## "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
20+
## KIND, either express or implied. See the License for the
21+
## specific language governing permissions and limitations
22+
## under the License.
23+
##
24+
# check setup is correct or not
25+
python3 setup.py check
26+
27+
sudo rm -r build/
28+
sudo rm -r dist/
29+
30+
# pypi interface are not valid any longer
31+
# python3 setup.py sdist
32+
# python3 setup.py sdist upload -r pypi
33+
34+
# using twine instead
35+
python3 setup.py sdist
36+
twine upload dist/*
37+

0 commit comments

Comments
 (0)