Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions python/release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

python setup.py sdist

if [ $1 == "test" ];
then
echo TEST RELEASE;
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
else
echo PROD RELEASE;
twine upload dist/*.tar.gz
fi
34 changes: 34 additions & 0 deletions python/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# coding=utf-8
"""Setup file for distutils / pypi."""
try:
from ez_setup import use_setuptools
use_setuptools()
except ImportError:
pass

from setuptools import setup


setup(
name='libsvm',
version='3.23',
author='Chih-Chung Chang and Chih-Jen Lin',
py_modules=['svm', 'svmutil', 'commonutil'],
url='https://www.csie.ntu.edu.tw/~cjlin/libsvm/',
description=('Python binding for libsvm ('
'https://www.csie.ntu.edu.tw/~cjlin/libsvm/).'),
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Scientific/Engineering',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',

]
)