Skip to content

Commit

Permalink
Prepare new release
Browse files Browse the repository at this point in the history
  • Loading branch information
mfeurer committed Aug 21, 2018
1 parent d70c03a commit dcc3325
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 19 deletions.
2 changes: 1 addition & 1 deletion ConfigSpace/__version__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Version information."""

# The following line *must* be the last in the module, exactly as formatted:
__version__ = "0.4.6"
__version__ = "0.4.7"
18 changes: 17 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,22 @@
# Version 0.4.7

* Tests Python3.7.
* Fixes #87: better handling of Conjunctions when adding them to the
configuration space.
* MAINT: Improved type annotation in `util.py` which results in improved
performance (due to better Cython optimization).
* MAINT: `util.get_one_exchange_neighborhood` now accepts two arguments
`num_neighbors` and `stdev` which govern the neighborhood creation behaviour
of several continuous hyperparameters.
* NEW #85: Add function to obtain active hyperparameters
* NEW #84: Add field for meta-data to the configuration space object.
* MAINT: json serialization now has an argument to control indentation



# Version 0.4.6

* Fixe a bug which caused a `KeyError` on the usage of tuples in `InCondition`.
* Fixes a bug which caused a `KeyError` on the usage of tuples in `InCondition`.

# Version 0.4.5

Expand Down
42 changes: 25 additions & 17 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from setuptools import setup, find_packages
from setuptools.extension import Extension
import os
from Cython.Build import cythonize
import numpy as np

# Read http://peterdowns.com/posts/first-time-with-pypi.html to figure out how
Expand All @@ -19,28 +18,32 @@
'wraparound': False,
}

extensions = cythonize(
[Extension('ConfigSpace.hyperparameters',
extensions = [
Extension('ConfigSpace.hyperparameters',
sources=['ConfigSpace/hyperparameters.pyx',],
include_dirs=[np.get_include()]),
Extension('ConfigSpace.forbidden',
include_dirs=[np.get_include()],
compiler_directives=compiler_directives),
Extension('ConfigSpace.forbidden',
sources=['ConfigSpace/forbidden.pyx'],
include_dirs=[np.get_include()]),
Extension('ConfigSpace.conditions',
include_dirs=[np.get_include()],
compiler_directives=compiler_directives),
Extension('ConfigSpace.conditions',
sources=['ConfigSpace/conditions.pyx'],
include_dirs=[np.get_include()]),
Extension('ConfigSpace.c_util',
include_dirs=[np.get_include()],
compiler_directives=compiler_directives),
Extension('ConfigSpace.c_util',
sources=['ConfigSpace/c_util.pyx'],
include_dirs=[np.get_include()]),
Extension('ConfigSpace.util',
include_dirs=[np.get_include()],
compiler_directives=compiler_directives),
Extension('ConfigSpace.util',
sources=['ConfigSpace/util.py'],
include_dirs=[np.get_include()]),
Extension('ConfigSpace.configuration_space',
include_dirs=[np.get_include()],
compiler_directives=compiler_directives),
Extension('ConfigSpace.configuration_space',
sources=['ConfigSpace/configuration_space.py'],
include_dirs=[np.get_include()]),
],
compiler_directives=compiler_directives,
)
include_dirs=[np.get_include()],
compiler_directives=compiler_directives),
]

def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
Expand All @@ -65,6 +68,10 @@ def read(fname):
"Marius Lindauer", "Jorn Tuyls"]),
author_email='[email protected]',
test_suite="nose.collector",
# https://stackoverflow.com/questions/24923003/organizing-a-package-with-cython
setup_requires=[
'Cython',
],
install_requires=[
'numpy',
'pyparsing',
Expand All @@ -78,6 +85,7 @@ def read(fname):
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Development Status :: 4 - Beta',
'Natural Language :: English',
'Intended Audience :: Developers',
Expand Down

0 comments on commit dcc3325

Please sign in to comment.