Skip to content

Commit a4934b7

Browse files
authored
Merge pull request #1014 from henrykironde/pre-release
Update version before release
2 parents 9c2f67f + 8acfed8 commit a4934b7

9 files changed

+80
-12
lines changed

CHANGES.md

+51
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,54 @@
1+
# v2.1.0
2+
3+
## Major changes
4+
- Add Python interface
5+
- Add Retriever to conda
6+
- Auto complete of Retriever commands on Unix systems
7+
8+
## Minor changes
9+
10+
- Add license to datasets
11+
- Change the structure of raw data from string to list
12+
- Add testing on any modified dataset
13+
- Improve memory usage in cross-tab processing
14+
- Add capabilitiy for datasets to use custom Encoding
15+
- Use new Python interface for regression testing
16+
- Use Frictionless Data specification terminology for internals
17+
18+
## New datasets
19+
- Add ant dataset and weather data to the portal dataset
20+
- NYC TreesCount
21+
- PREDICTS
22+
- aquatic_animal_excretion
23+
- biodiversity_response
24+
- bird_migration_data
25+
- chytr_disease_distr
26+
- croche_vegetation_data
27+
- dicerandra_frutescens
28+
- flensburg_food_web
29+
- great_basin_mammal_abundance
30+
- macroalgal_communities
31+
- macrocystis_variation
32+
- marine_recruitment_data
33+
- mediter_basin_plant_traits
34+
- nematode_traits
35+
- ngreatplains-flowering-dates
36+
- portal-dev
37+
- portal
38+
- predator_prey_body_ratio
39+
- predicts
40+
- socean_diet_data
41+
- species_exctinction_rates
42+
- streamflow_conditions
43+
- tree_canopy_geometries
44+
- turtle_offspring_nesting
45+
- Add vertnet individual datasets
46+
vertnet_amphibians
47+
vertnet_birds
48+
vertnet_fishes
49+
vertnet_mammals
50+
vertnet_reptiles
51+
152
# v2.0.0
253

354
## Major changes

retriever/__main__.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from retriever.engines import engine_list, choose_engine
1818
from retriever.lib.datapackage import create_json, edit_json, delete_json, get_script_filename
1919
from retriever.lib.datasets import datasets, dataset_names, license
20-
from retriever.lib.defaults import sample_script, CITATION, ENCODING
20+
from retriever.lib.defaults import sample_script, CITATION, ENCODING, SCRIPT_SEARCH_PATHS
2121
from retriever.lib.get_opts import parser
2222
from retriever.lib.repository import check_for_updates
2323
from retriever.lib.scripts import SCRIPT_LIST
@@ -40,6 +40,10 @@ def main():
4040
else:
4141
# otherwise, parse them
4242

43+
if not os.path.isdir(SCRIPT_SEARCH_PATHS[1]) and not \
44+
[f for f in os.listdir(SCRIPT_SEARCH_PATHS[-1])
45+
if os.path.exists(SCRIPT_SEARCH_PATHS[-1])]:
46+
check_for_updates()
4347
script_list = SCRIPT_LIST()
4448

4549
args = parser.parse_args()

retriever/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = 'v2.1.dev'
1+
__version__ = 'v2.1.0'

retriever/engines/download_only.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def dummy_method(self, *args, **kwargs):
119119
'auto_create_table',
120120
'insert_data_from_url',
121121
}
122-
remove_methods = ['insert_data_from_file', 'create_db']
122+
remove_methods = ['insert_data_from_file', 'create_db', "create_table"]
123123
for name, method in methods:
124124
if (name not in keep_methods and
125125
'download' not in name and

retriever/lib/download.py

+8-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
from __future__ import absolute_import
22
from __future__ import print_function
33

4+
import os
5+
46
from retriever.engines import choose_engine
7+
from retriever.lib.defaults import DATA_DIR, SCRIPT_WRITE_PATH
58
from retriever.lib.scripts import SCRIPT_LIST
69
from retriever.lib.tools import name_matches
7-
8-
script_list = SCRIPT_LIST()
10+
from retriever.lib.repository import check_for_updates
911

1012

1113
def download(dataset, path='./', quiet=False, subdir=False, debug=False):
@@ -18,7 +20,10 @@ def download(dataset, path='./', quiet=False, subdir=False, debug=False):
1820
'quiet': quiet
1921
}
2022
engine = choose_engine(args)
21-
23+
script_list = SCRIPT_LIST()
24+
if not script_list or not os.listdir(SCRIPT_WRITE_PATH):
25+
check_for_updates()
26+
script_list = SCRIPT_LIST(force_compile=False)
2227
scripts = name_matches(script_list, args['dataset'])
2328
if scripts:
2429
for script in scripts:

retriever/lib/install.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@
44
import os
55

66
from retriever.engines import choose_engine
7-
from retriever.lib.defaults import DATA_DIR
7+
from retriever.lib.defaults import DATA_DIR, SCRIPT_WRITE_PATH
88
from retriever.lib.scripts import SCRIPT_LIST
99
from retriever.lib.tools import name_matches
10+
from retriever.lib.repository import check_for_updates
1011

1112

1213
def _install(args, use_cache, debug):
@@ -15,6 +16,9 @@ def _install(args, use_cache, debug):
1516
engine.use_cache = use_cache
1617

1718
script_list = SCRIPT_LIST()
19+
if not script_list or not os.listdir(SCRIPT_WRITE_PATH):
20+
check_for_updates()
21+
script_list = SCRIPT_LIST(force_compile=False)
1822
data_sets_scripts = name_matches(script_list, args['dataset'])
1923
if data_sets_scripts:
2024
for data_sets_script in data_sets_scripts:

retriever_installer.iss

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
88
AppId={{0467A404-8C83-42A2-8C25-0903FBD14D9C}
99
AppName=Data Retriever
10-
AppVersion=2.0.0
10+
AppVersion=2.1.0
1111
AppPublisher=Weecology
1212
AppPublisherURL=http://data-retriever.org
1313
AppSupportURL=http://data-retriever.org

setup.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,11 @@
1616
os.system("cp hooks/pre-commit .git/hooks/pre-commit")
1717
os.system("chmod +x .git/hooks/pre-commit")
1818

19-
__version__ = 'v2.1.dev'
19+
app_data = "~/.retriever/scripts"
20+
if os.path.exists(app_data):
21+
os.system("rm -r {}".format(app_data))
22+
23+
__version__ = 'v2.1.0'
2024
with open(os.path.join("retriever", "_version.py"), "w") as version_file:
2125
version_file.write("__version__ = " + "'" + __version__ + "'\n")
2226
version_file.close()
@@ -105,7 +109,7 @@ def clean_version(v):
105109
from retriever.compile import compile
106110
from retriever.lib.repository import check_for_updates
107111

108-
compile()
109112
check_for_updates(False)
113+
compile()
110114
except:
111115
pass

version.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
v2.1.dev
1+
v2.1.0
22
abalone_age.json,1.2.1
33
amniote_life_hist.py,2.0.2
44
antarctic_breed_bird.json,1.2.1
@@ -8,7 +8,7 @@ biodiversity_response.json,1.0.1
88
biomass_allometry_db.py,1.4.2
99
bird_migration_data.json,1.0.1
1010
bird_size.json,1.2.2
11-
breast_cancer_wi.json,1.1.1
11+
breast_cancer_wi.json,1.2.1
1212
breed_bird_survey.py,1.4.1
1313
breed_bird_survey_50stop.py,1.4.1
1414
butterfly_population_network.json,1.2.1

0 commit comments

Comments
 (0)