Skip to content

Commit ccd0912

Browse files
authored
Merge pull request #277 from openml/bump_version
[WIP] Bump version + better version handling
2 parents bef46b7 + c89c239 commit ccd0912

File tree

4 files changed

+11
-12
lines changed

4 files changed

+11
-12
lines changed

openml/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
from .tasks import OpenMLTask, OpenMLSplit
2727
from .flows import OpenMLFlow
2828

29-
__version__ = "0.4.0dev"
29+
from .__version__ import __version__
3030

3131

3232
def populate_cache(task_ids=None, dataset_ids=None, flow_ids=None,

openml/__version__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
"""Version information."""
2+
3+
# The following line *must* be the last in the module, exactly as formatted:
4+
__version__ = "0.5.0dev"

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
mock
22
numpy>=1.6.2
33
scipy>=0.13.3
4-
liac-arff>=2.1.1dev
4+
liac-arff>=2.1.1
55
xmltodict
66
nose
77
requests

setup.py

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
import setuptools
33
import sys
44

5+
with open("openml/__version__.py") as fh:
6+
version = fh.readlines()[-1].split()[-1].strip("\"'")
7+
58

69
requirements_file = os.path.join(os.path.dirname(__file__), 'requirements.txt')
710
requirements = []
@@ -17,11 +20,6 @@
1720
url = '/'.join(split[:-1])
1821
requirement = split[-1]
1922
requirements.append(requirement)
20-
# Add the rest of the URL to the dependency links to allow
21-
# setup.py test to work
22-
if 'git+https' in url:
23-
dependency_links.append(line.replace('git+', ''))
24-
2523

2624
try:
2725
import numpy
@@ -44,7 +42,7 @@
4442
description="Python API for OpenML",
4543
license="GPLv3",
4644
url="http://openml.org/",
47-
version="0.3.0",
45+
version=version,
4846
packages=setuptools.find_packages(),
4947
package_data={'': ['*.txt', '*.md']},
5048
install_requires=requirements,
@@ -63,7 +61,4 @@
6361
'Programming Language :: Python :: 3',
6462
'Programming Language :: Python :: 3.4',
6563
'Programming Language :: Python :: 3.5',
66-
],
67-
dependency_links=[
68-
"http://github.com/mfeurer/liac-arff/archive/master.zip"
69-
"#egg=liac-arff-2.1.1dev"])
64+
'Programming Language :: Python :: 3.6'])

0 commit comments

Comments
 (0)