-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
32 lines (26 loc) · 976 Bytes
/
setup.py
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
from setuptools import setup, find_packages
from os import path
# trying to import the required torch package
try:
import torch
except ImportError:
raise Exception('qsketch requires PyTorch to be installed. aborting')
here = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
# Proceed to setup
setup(
name='torchpercentile',
version='0.2',
description='A percentile implementation for pytorch',
long_description=long_description,
long_description_content_type='text/markdown',
url='https://github.com/aliutkus/torchpercentile',
author='Antoine Liutkus',
author_email='[email protected]',
packages=find_packages(exclude=['contrib', 'docs', 'tests']),
keywords='percentile',
install_requires=[
'torchsearchsorted @ git+https://github.com/aliutkus/torchsearchsorted',
])