From 59ae3d90d3585519ea58c883649c3839047ebd8e Mon Sep 17 00:00:00 2001 From: micheleantonazzi Date: Fri, 9 Jul 2021 12:04:51 +0200 Subject: [PATCH 1/4] setup.py: added setup.py --- setup.py | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 setup.py diff --git a/setup.py b/setup.py new file mode 100644 index 000000000..cf3f975ed --- /dev/null +++ b/setup.py @@ -0,0 +1,41 @@ +import os +from codecs import open as copen +from setuptools import setup + + +# Get the long description from README.md +with copen(os.path.join(os.path.abspath(os.path.dirname(__file__)), 'README.md'), mode='r', encoding='utf-8') as f: + long_description = f.read() + + +# Version +__version__ = 'v0.2' + + +setup( + name='detr', + version=__version__, + description="DETR: End-to-End Object Detection with Transformers", + long_description=long_description, + long_description_content_type="text/markdown", + url="https://github.com/facebookresearch/detr", + author="Facebook Research", + license='Apache License 2.0', + classifiers=[ + 'License :: OSI Approved :: Apache Software License', + 'Programming Language :: Python :: 3' + ], + # Add here the package's dependencies + install_requires=[ + 'cython', + 'pycocotools @ git+https://github.com/cocodataset/cocoapi.git#subdirectory=PythonAPI&egg=pycocotools', + 'submitit', + 'torch>=1.5.0', + 'torchvision>=0.6.0', + 'panopticapi @ git+https://github.com/cocodataset/panopticapi.git#egg=panopticapi', + 'scipy', + 'onnx', + 'onnxruntime', + ], + test_deps=[], +) From c576ee32b00a9a1e485b03d3cdb3422fd7c89728 Mon Sep 17 00:00:00 2001 From: michele Date: Mon, 25 Jul 2022 11:56:25 +0200 Subject: [PATCH 2/4] setup.py: updated --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index cf3f975ed..fb04ab249 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,6 @@ import os from codecs import open as copen -from setuptools import setup +from setuptools import setup, find_packages # Get the long description from README.md @@ -15,6 +15,7 @@ setup( name='detr', version=__version__, + packages=find_packages(), description="DETR: End-to-End Object Detection with Transformers", long_description=long_description, long_description_content_type="text/markdown", From b2b236ab6ceba4811ffbf50375006e4a3fd7a323 Mon Sep 17 00:00:00 2001 From: Michele Antonazzi Date: Thu, 26 Jan 2023 17:39:46 +0100 Subject: [PATCH 3/4] Update setup.py --- setup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.py b/setup.py index fb04ab249..d9d3161a9 100644 --- a/setup.py +++ b/setup.py @@ -28,6 +28,7 @@ ], # Add here the package's dependencies install_requires=[ + 'numpy', 'cython', 'pycocotools @ git+https://github.com/cocodataset/cocoapi.git#subdirectory=PythonAPI&egg=pycocotools', 'submitit', From 08f4d8dcaec0949f231b413259e3fa698e412b5b Mon Sep 17 00:00:00 2001 From: Michele Antonazzi Date: Thu, 26 Oct 2023 15:08:09 +0200 Subject: [PATCH 4/4] Update setup.py --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index d9d3161a9..f5b79a444 100644 --- a/setup.py +++ b/setup.py @@ -30,7 +30,7 @@ install_requires=[ 'numpy', 'cython', - 'pycocotools @ git+https://github.com/cocodataset/cocoapi.git#subdirectory=PythonAPI&egg=pycocotools', + 'pycocotools', 'submitit', 'torch>=1.5.0', 'torchvision>=0.6.0',