Skip to content

Commit

Permalink
build: Removed dependency on libcoveocds (GPL)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Apr 27, 2022
1 parent 4b6aa6c commit eeb74b2
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 11 deletions.
8 changes: 8 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
Changelog
=========

0.3.8 (2022-04-27)
------------------

Changed
-------

- Removed dependency on `libcoveocds <https://pypi.org/project/libcoveocds/>`__ (GPL).

0.3.7 (2022-03-11)
------------------

Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
author = "Open Contracting Partnership"

# The short X.Y version
version = "0.3.7"
version = "0.3.8"
# The full version, including alpha/beta/rc tags
release = version

Expand Down
14 changes: 6 additions & 8 deletions ocdskingfishercolab/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
from gspread_dataframe import set_with_dataframe
from IPython import get_ipython
from IPython.display import HTML
from libcoveocds.config import LibCoveOCDSConfig
from notebook import notebookapp
from oauth2client.client import GoogleCredentials
from pydrive2.auth import GoogleAuth
Expand Down Expand Up @@ -190,18 +189,17 @@ def save_dataframe_to_spreadsheet(dataframe, name):
"""
write_data_as_json(dataframe['release_package'][0], 'release_package.json')

config = LibCoveOCDSConfig().config
with warnings.catch_warnings():
warnings.filterwarnings('ignore') # flattentool uses UserWarning, so we can't set a specific category

flattentool.flatten(
'release_package.json',
main_sheet_name=config['root_list_path'],
root_list_path=config['root_list_path'],
root_id=config['root_id'],
schema=config['schema_version_choices']['1.1'][1] + 'release-schema.json',
disable_local_refs=config['flatten_tool']['disable_local_refs'],
remove_empty_schema_columns=config['flatten_tool']['remove_empty_schema_columns'],
main_sheet_name='releases', # root_list_path
root_list_path='releases', # root_list_path
root_id='ocid', # root_id
schema='https://standard.open-contracting.org/1.1/en/release-schema.json', # schema_version_choices
disable_local_refs=True, # flatten_tool.disable_local_refs
remove_empty_schema_columns=True, # flatten_tool.remove_empty_schema_columns
root_is_list=False,
output_format='xlsx',
)
Expand Down
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name='ocdskingfishercolab',
version='0.3.7',
version='0.3.8',
author='Open Contracting Partnership',
author_email='data@open-contracting.org',
url='https://github.com/open-contracting/kingfisher-colab',
Expand All @@ -23,7 +23,6 @@
'gspread-dataframe',
'ipython',
'ipython-sql~=0.4.0', # Google Colaboratory uses 0.3.x
'libcoveocds',
'notebook',
'oauth2client',
'pydrive2',
Expand Down

0 comments on commit eeb74b2

Please sign in to comment.