Skip to content

Commit

Permalink
Support pypi (#19)
Browse files Browse the repository at this point in the history
* add publish workflow

* Add manifest

* Clean files and bump to 0.5.0

* Fix MANIFEST
  • Loading branch information
ZwwWayne authored Jul 14, 2020
1 parent f0c1647 commit 8733947
Show file tree
Hide file tree
Showing 11 changed files with 51 additions and 493 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: deploy

on: push

jobs:
build-n-publish:
runs-on: ubuntu-latest
if: startsWith(github.event.ref, 'refs/tags')
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Build MMDet3D
run: python setup.py sdist
- name: Publish distribution to PyPI
run: |
pip install twine
twine upload dist/* -u __token__ -p ${{ secrets.pypi_password }}
4 changes: 4 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
include requirements/*.txt
include mmdet3d/ops/**/*.cpp mmdet3d/ops/**/*.cu
include mmdet3d/ops/**/*.h mmdet3d/ops/**/*.cc
include mmdet3d/VERSION
2 changes: 1 addition & 1 deletion mmdet3d/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.1
0.5.0
9 changes: 9 additions & 0 deletions mmdet3d/ops/iou3d/src/iou3d.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
// Modified from
// https://github.com/open-mmlab/OpenPCDet/blob/master/pcdet/ops/iou3d_nms/src/iou3d_nms.cpp

/*
3D IoU Calculation and Rotated NMS(modified from 2D NMS written by others)
Written by Shaoshuai Shi
All Rights Reserved 2019-2020.
*/

#include <cuda.h>
#include <cuda_runtime_api.h>
#include <torch/extension.h>
Expand Down
9 changes: 9 additions & 0 deletions mmdet3d/ops/iou3d/src/iou3d_kernel.cu
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
// Modified from
// https://github.com/open-mmlab/OpenPCDet/blob/master/pcdet/ops/iou3d_nms/src/iou3d_nms_kernel.cu

/*
3D IoU Calculation and Rotated NMS(modified from 2D NMS written by others)
Written by Shaoshuai Shi
All Rights Reserved 2019-2020.
*/

#include <stdio.h>
#define THREADS_PER_BLOCK 16
#define DIVUP(m, n) ((m) / (n) + ((m) % (n) > 0))
Expand Down
156 changes: 0 additions & 156 deletions mmdet3d/ops/spconv/include/spconv/box_iou.h

This file was deleted.

Loading

0 comments on commit 8733947

Please sign in to comment.