Skip to content

Commit a8e5c54

Browse files
committed
package cleanup; install scipy before sklearn
1 parent d7824c2 commit a8e5c54

File tree

4 files changed

+70
-32
lines changed

4 files changed

+70
-32
lines changed

.gitignore

Lines changed: 44 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,61 @@
1+
### Python template
2+
# Byte-compiled / optimized / DLL files
3+
__pycache__/
14
*.py[cod]
5+
*$py.class
26

37
# C extensions
48
*.so
59

6-
# Packages
7-
*.egg
8-
*.egg-info
9-
dist
10-
build
11-
eggs
12-
parts
13-
bin
14-
var
15-
sdist
16-
develop-eggs
10+
# Distribution / packaging
11+
.Python
12+
env/
13+
build/
14+
develop-eggs/
15+
dist/
16+
downloads/
17+
eggs/
18+
.eggs/
19+
lib/
20+
lib64/
21+
parts/
22+
sdist/
23+
var/
24+
*.egg-info/
1725
.installed.cfg
18-
lib
19-
lib64
26+
*.egg
27+
28+
# PyInstaller
29+
# Usually these files are written by a python script from a template
30+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
31+
*.manifest
32+
*.spec
2033

2134
# Installer logs
2235
pip-log.txt
36+
pip-delete-this-directory.txt
2337

2438
# Unit test / coverage reports
39+
htmlcov/
40+
.tox/
2541
.coverage
26-
.tox
42+
.coverage.*
43+
.cache
2744
nosetests.xml
45+
coverage.xml
46+
*,cover
2847

2948
# Translations
3049
*.mo
50+
*.pot
51+
52+
# Django stuff:
53+
*.log
54+
55+
# Sphinx documentation
56+
docs/_build/
57+
58+
# PyBuilder
59+
target/
3160

32-
# Mr Developer
33-
.mr.developer.cfg
34-
.project
35-
.pydevproject
36-
.idea
61+
.idea/

kmodes/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
from .version import __version__ # NOQA
1+
"""Python implementations of the k-modes and k-prototypes clustering
2+
algorithms.
3+
"""
4+
__version__ = '0.1'

kmodes/version.py

Lines changed: 0 additions & 2 deletions
This file was deleted.

setup.py

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,37 @@
1-
21
from setuptools import setup
3-
from distutils.util import convert_path
42

5-
main_ns = {}
6-
ver_path = convert_path('kmodes/version.py')
7-
with open(ver_path) as ver_file:
8-
exec(ver_file.read(), main_ns)
3+
import kmodes
4+
5+
DESCRIPTION = __doc__
6+
VERSION = kmodes.__version__
97

108
setup(
119
name='kmodes',
12-
version=main_ns['__version__'],
10+
packages=['kmodes'],
11+
version=VERSION,
1312
url='https://github.com/nicodv/kmodes',
1413
author='Nico de Vos',
1514
author_email='[email protected]',
16-
packages=['kmodes'],
1715
license='MIT',
18-
description='A Python implementation of the k-modes/k-prototypes clustering algorithms.',
16+
description=DESCRIPTION,
1917
long_description=open('README.rst', 'r').read(),
2018
install_requires=[
2119
'numpy>=1.10.4',
22-
'scikit-learn>=0.17.1',
2320
'scipy>=0.17.0',
21+
'scikit-learn>=0.17.1',
2422
],
23+
classifiers=['Development Status :: 3 - Alpha',
24+
'Intended Audience :: Science/Research',
25+
'License :: OSI Approved :: MIT License',
26+
'Operating System :: Microsoft :: Windows',
27+
'Operating System :: Unix',
28+
'Operating System :: MacOS',
29+
'Programming Language :: Python',
30+
'Programming Language :: Python :: 2',
31+
'Programming Language :: Python :: 2.7',
32+
'Programming Language :: Python :: 3',
33+
'Programming Language :: Python :: 3.3',
34+
'Programming Language :: Python :: 3.4',
35+
'Programming Language :: Python :: 3.5',
36+
'Topic :: Scientific/Engineering'],
2537
)

0 commit comments

Comments
 (0)