Skip to content

Commit

Permalink
package cleanup; install scipy before sklearn
Browse files Browse the repository at this point in the history
  • Loading branch information
nicodv committed Feb 27, 2016
1 parent d7824c2 commit a8e5c54
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 32 deletions.
63 changes: 44 additions & 19 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,36 +1,61 @@
### Python template
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Packages
*.egg
*.egg-info
dist
build
eggs
parts
bin
var
sdist
develop-eggs
# Distribution / packaging
.Python
env/
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
*.egg-info/
.installed.cfg
lib
lib64
*.egg

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.tox
.coverage.*
.cache
nosetests.xml
coverage.xml
*,cover

# Translations
*.mo
*.pot

# Django stuff:
*.log

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Mr Developer
.mr.developer.cfg
.project
.pydevproject
.idea
.idea/
5 changes: 4 additions & 1 deletion kmodes/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
from .version import __version__ # NOQA
"""Python implementations of the k-modes and k-prototypes clustering
algorithms.
"""
__version__ = '0.1'
2 changes: 0 additions & 2 deletions kmodes/version.py

This file was deleted.

32 changes: 22 additions & 10 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,25 +1,37 @@

from setuptools import setup
from distutils.util import convert_path

main_ns = {}
ver_path = convert_path('kmodes/version.py')
with open(ver_path) as ver_file:
exec(ver_file.read(), main_ns)
import kmodes

DESCRIPTION = __doc__
VERSION = kmodes.__version__

setup(
name='kmodes',
version=main_ns['__version__'],
packages=['kmodes'],
version=VERSION,
url='https://github.com/nicodv/kmodes',
author='Nico de Vos',
author_email='[email protected]',
packages=['kmodes'],
license='MIT',
description='A Python implementation of the k-modes/k-prototypes clustering algorithms.',
description=DESCRIPTION,
long_description=open('README.rst', 'r').read(),
install_requires=[
'numpy>=1.10.4',
'scikit-learn>=0.17.1',
'scipy>=0.17.0',
'scikit-learn>=0.17.1',
],
classifiers=['Development Status :: 3 - Alpha',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Operating System :: Microsoft :: Windows',
'Operating System :: Unix',
'Operating System :: MacOS',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Topic :: Scientific/Engineering'],
)

0 comments on commit a8e5c54

Please sign in to comment.