Skip to content
This repository has been archived by the owner on Nov 17, 2022. It is now read-only.

Update master from dev #164

Merged
merged 567 commits into from
Oct 19, 2017
Merged

Update master from dev #164

merged 567 commits into from
Oct 19, 2017

Conversation

hayfield
Copy link
Contributor

Might as well give it a go I s'pose.

Imogen Kutz and others added 30 commits September 4, 2017 17:03
Fix an IndexError in `date_order` test
Merge branch dev into specific-rule-types
This leads to problems with AtLeastOne
syntax highlighting in README
In several cases, the same function call was being called multiple
times when it didn't need to be. This is due to the values previously
being a constant, then find+replace happening.
A single call to a local function is much nicer than a nested
call to a pair of functions in a different module
Update `ruleset-implementation` with the latest changes from dev
Less and more were confused due to copypaste error
Add check that data can be invalidated against the Standard Ruleset
hayfield and others added 9 commits October 19, 2017 12:24
[requires.io] dependency update on dev branch
Since lxml v4.0.0, a bug has been resolved, where previously
etree.fromstring() failed to parse UTF-32 data with BOM.
Add tests for raw datasets encoded in UTF-32
There were a few missing, and this makes ir future-proof
The intention is to have something to call 0.1.0 today
Update version number and release date in changelog - 0.1.0
@hayfield hayfield added complete A PR that is in a state that is ready for review. and removed incomplete A PR that is in a state that is not ready for review. labels Oct 19, 2017
@hayfield
Copy link
Contributor Author

!!!!!!!

README.md Outdated
# To create a Ruleset object from your ruleset_str:
iati.Ruleset(ruleset_str)
```

**Note:** This functionality is not yet implemented.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now you can use rulesets, this line can be deleted.

iati.tests

Submodules
----------

iati\.codelists module
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In docs/source/iati.core.tests.rst, the \ characters have been removed, so not sure if the approach here is consistent...?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also applies to other instances of submodule headings and instances in docs/source/iati.tests.rst.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Running make docs should fix this. If not, delete docs/build/, then re-run this.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

...actually this is in docs/source/ - just run make docs and make sure any iati.core references have said turrah.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was resolved in ce3b5e1.

iati/data.py Outdated

@property
def version(self):
"""Return the version that this Dataset is specified against.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For clarity, should perhaps be 'Return the IATI version that this Dataset is specified against.'

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should be consistent with the standard documentation for a version parameter for functions (whatever that may be).

iati/default.py Outdated
version (str): The version of the Standard to return the Ruleset for. Defaults to None. This means that the latest Ruleset schema is returned.

Returns:
json: A JSON representation of the Ruleset schema for the specified version of the Standard.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

json -> dict

Copy link
Contributor

@dalepotter dalepotter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few fairly small things.

@hayfield hayfield added incomplete A PR that is in a state that is not ready for review. and removed complete A PR that is in a state that is ready for review. labels Oct 19, 2017
@dalepotter dalepotter added complete A PR that is in a state that is ready for review. and removed incomplete A PR that is in a state that is not ready for review. labels Oct 19, 2017
@hayfield hayfield merged commit cd992a1 into master Oct 19, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
complete A PR that is in a state that is ready for review. repo-management Changes relating to management of the repository.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants