Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] master from IATI:master #148

Open
wants to merge 23 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
8f6ba05
Bump actions/setup-python from 4 to 5 (#398)
dependabot[bot] Dec 7, 2023
0ed48ff
Bump lxml from 4.9.3 to 4.9.4 (#400)
dependabot[bot] Dec 20, 2023
231d155
Bump lxml from 4.9.4 to 5.0.0 (#401)
dependabot[bot] Jan 1, 2024
79e4b77
Bump flake8 from 6.1.0 to 7.0.0 (#402)
dependabot[bot] Jan 5, 2024
98397a6
Bump lxml from 5.0.0 to 5.0.1 (#403)
dependabot[bot] Jan 8, 2024
cb611fd
Bump lxml from 5.0.1 to 5.1.0 (#404)
dependabot[bot] Jan 9, 2024
7dfc296
Bump fastify/github-action-merge-dependabot from 3.9 to 3.10 (#405)
dependabot[bot] Feb 9, 2024
b4f734b
github workflow: Update to Python 3.10
Bjwebb Feb 28, 2024
b9a2608
requirements: Switch to pip-tools
Bjwebb Feb 28, 2024
c2f5a1c
github workflow: Add apt-get update to avoid 404 error for old packages
Bjwebb Feb 28, 2024
af43727
Merge pull request #406 from IATI/update-requirements
Bjwebb Mar 14, 2024
777bf70
Update OECD DAC Codelists with 2023-08-29 changes
Bjwebb Mar 14, 2024
61cb13a
convert: Update conversion of OrganisationRegistrationAgency from source
Bjwebb Mar 20, 2024
de8ca7b
Sync OrganisationRegistrationAgency with upstream org-id.guide
Bjwebb Mar 20, 2024
14148a7
Merge pull request #408 from IATI/updates/dac/2023-08-29
Bjwebb Mar 20, 2024
d25ea67
Merge pull request #407 from IATI/updates/org-id/2024-02-28
Bjwebb Mar 20, 2024
f11dc0b
Bump lxml from 5.1.0 to 5.2.0 (#409)
dependabot[bot] Apr 1, 2024
979712e
Bump lxml from 5.2.0 to 5.2.1 (#410)
dependabot[bot] Apr 3, 2024
bf117d4
Bump lxml from 5.2.1 to 5.2.2 (#411)
dependabot[bot] May 14, 2024
6e74b8d
Bump flake8 from 7.0.0 to 7.1.0 (#414)
dependabot[bot] Jun 17, 2024
30769b7
Bump flake8 from 7.1.0 to 7.1.1 (#415)
dependabot[bot] Aug 5, 2024
fde7626
Bump lxml from 5.2.2 to 5.3.0 (#416)
dependabot[bot] Aug 12, 2024
c7b8a4f
Bump fastify/github-action-merge-dependabot from 3.10 to 3.11 (#417)
dependabot[bot] Oct 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,14 @@ jobs:
path: IATI-Codelists

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.9'
python-version: '3.10'
cache: 'pip'

- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get -y install libxml2-dev libxslt-dev libxslt1-dev python3-dev python3-lxml libxml2-utils
python -m pip install --upgrade pip setuptools wheel
python -m pip install -r requirements.txt
Expand Down Expand Up @@ -87,6 +88,6 @@ jobs:
pull-requests: write
contents: write
steps:
- uses: fastify/github-action-merge-dependabot@v3.9
- uses: fastify/github-action-merge-dependabot@v3.11
with:
github-token: ${{secrets.GITHUB_TOKEN}}
8 changes: 6 additions & 2 deletions convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,16 @@
org_id_xml = etree.parse(join('source', 'org-id-guide.xml'))
codelist_items = org_id_xml.find('codelist-items')

parser = etree.XMLParser(strip_cdata=False)
template = etree.parse(
join('templates', 'OrganisationRegistrationAgency.xml'))
join('templates', 'OrganisationRegistrationAgency.xml'),
parser=parser)
placeholder_codelist_items = template.find('codelist-items')

template.getroot().replace(placeholder_codelist_items, codelist_items)

etree.indent(template, space=' ')

template.write(
join('xml', 'OrganisationRegistrationAgency.xml'),
pretty_print=True)
encoding='utf-8')
2 changes: 2 additions & 0 deletions requirements.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
lxml
flake8
18 changes: 16 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,16 @@
lxml==4.9.3
flake8==6.1.0
#
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
# pip-compile
#
flake8==7.1.1
# via -r requirements.in
lxml==5.3.0
# via -r requirements.in
mccabe==0.7.0
# via flake8
pycodestyle==2.12.0
# via flake8
pyflakes==3.2.0
# via flake8
5 changes: 4 additions & 1 deletion templates/OrganisationRegistrationAgency.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<codelist name="OrganisationRegistrationAgency" complete="0" xml:lang="en" category-codelist="Country">
<codelist name="OrganisationRegistrationAgency" complete="0" xml:lang="en" category-codelist="Country" embedded="0">
<metadata>
<name>
<narrative>Organisation Registration Agency</narrative>
Expand All @@ -14,6 +14,9 @@
If org-id.guide does not contain an entry for the kind of organisation you need to identify, you can make a request a new list is included in the register following the `guidance <http://docs.org-id.guide/en/latest/contribute/>`__ or by getting in touch with org-id.guide at: [email protected].
]]></narrative>
</description>
<category>
<narrative>Replicated</narrative>
</category>
</metadata>
<codelist-items/>
</codelist>
36 changes: 22 additions & 14 deletions xml/CRSChannelCode.xml
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,7 @@
</name>
<category>21000</category>
</codelist-item>
<codelist-item status="active" activation-date="2022-01-01">
<codelist-item status="active" activation-date="2022-01-01" withdrawal-date="2022-12-31">
<code>21508</code>
<name>
<narrative>Sustainable Energy for All</narrative>
Expand Down Expand Up @@ -857,8 +857,8 @@
<codelist-item status="active" activation-date="2020-01-01">
<code>30018</code>
<name>
<narrative>African Finance Corporation</narrative>
<narrative xml:lang="fr">African Finance Corporation</narrative>
<narrative>Africa Finance Corporation</narrative>
<narrative xml:lang="fr">Corporation Financière Africaine</narrative>
</name>
<category>31000</category>
</codelist-item>
Expand Down Expand Up @@ -1288,7 +1288,7 @@
<codelist-item status="active" activation-date="2020-01-01">
<code>41145</code>
<name>
<narrative>International Maritime Organisation - Technical Co-operation Fund</narrative>
<narrative>International Maritime Organization - Technical Co-operation Fund</narrative>
<narrative xml:lang="fr">Organisation maritime internationale - Programme intégré de coopération technique</narrative>
</name>
<category>41100</category>
Expand All @@ -1313,7 +1313,7 @@
<code>41148</code>
<name>
<narrative>United Nations Department of Political and Peacebuilding Affairs, Trust Fund in Support of Political Affairs</narrative>
<narrative xml:lang="fr">Département des affaires politiques des Nations unies, fonds fiduciaire de soutien aux affaires politiques</narrative>
<narrative xml:lang="fr">Département des affaires politiques et de consolidation de la paix des Nations Unies, Fonds d'affectation spéciale à l'appui des affaires politiques</narrative>
</name>
<category>41500</category>
</codelist-item>
Expand Down Expand Up @@ -1432,8 +1432,8 @@
<codelist-item status="active" activation-date="2020-01-01">
<code>41310</code>
<name>
<narrative>United Nations Department of Peace Operations - UN Peacekeeping operations [only MINURSO, MINUSCA, MINUSMA, MINUJUSTH, MONUSCO, UNAMID, UNIFIL, UNISFA, UNMIK, UNMIL, UNMISS, UNOCI]. Report contributions mission by mission in CRS++.</narrative>
<narrative xml:lang="fr">Département des opérations de paix des Nations unies. Opérations de maintien de la paix [seulement MINURSO,MINUSCA,MINUSMA, MINUSTAH,MONUSCO,MINUAD, FINUL,FISNUA,MINUK, MINUL,UNMISS,ONUCI]. Notifier les contributions mission par mission au format SNPC++.</narrative>
<narrative>United Nations Department of Peace Operations - UN peacekeeping operations [only MINURSO, MINUSCA, MINUSMA, MINUJUSTH, MONUSCO, UNAMID, UNIFIL, UNISFA, UNMIK, UNMIL, UNMISS, UNOCI]. Report contributions mission by mission in CRS++.</narrative>
<narrative xml:lang="fr">Département des opérations de paix des Nations unies. Opérations de maintien de la paix [seulement MINURSO,MINUSCA,MINUSMA, MINUSTAH,MONUSCO,MINUAD, FINUL,FISNUA,MINUK, MINUL,UNMISS,ONUCI]. Notifier les contributions mission par mission au format SNPC++</narrative>
</name>
<category>41300</category>
</codelist-item>
Expand Down Expand Up @@ -1472,7 +1472,7 @@
<codelist-item status="active" activation-date="2020-01-01">
<code>41315</code>
<name>
<narrative>United Nations Office for Disaster Reduction</narrative>
<narrative>United Nations Office for Disaster Risk Reduction</narrative>
<narrative xml:lang="fr">Bureau des Nations Unies pour la prévention de catastrophes</narrative>
</name>
<category>41300</category>
Expand Down Expand Up @@ -1504,7 +1504,7 @@
<codelist-item status="active" activation-date="2020-01-01">
<code>41319</code>
<name>
<narrative>World Tourism Organisation</narrative>
<narrative>World Tourism Organization</narrative>
<narrative xml:lang="fr">Organisation mondiale du tourisme</narrative>
</name>
<category>41300</category>
Expand Down Expand Up @@ -1721,6 +1721,14 @@
</name>
<category>43000</category>
</codelist-item>
<codelist-item status="active" activation-date="2015-01-01">
<code>43007</code>
<name>
<narrative>IMF’s Resilience and Sustainability Trust</narrative>
<narrative xml:lang="fr">Fonds fiduciaire pour la résilience et la durabilité</narrative>
</name>
<category>43000</category>
</codelist-item>
<codelist-item status="active">
<code>44000</code>
<name>
Expand Down Expand Up @@ -2740,8 +2748,8 @@
<codelist-item status="active" activation-date="2000-01-01">
<code>47095</code>
<name>
<narrative>South Pacific Board for Educational Assessment</narrative>
<narrative xml:lang="fr">Conseil d’évaluation du Pacifique Sud pour l'éducation</narrative>
<narrative>Educational Quality and Assessment Programme</narrative>
<narrative xml:lang="fr">Programme d'évaluation et de qualité de l'éducation</narrative>
</name>
<category>47000</category>
</codelist-item>
Expand Down Expand Up @@ -3012,8 +3020,8 @@
<codelist-item status="active" activation-date="2010-01-01">
<code>47131</code>
<name>
<narrative>Organisation for Security and Co-operation in Europe</narrative>
<narrative xml:lang="fr">Organisation pour la sécurité et la oopération en Europe</narrative>
<narrative>Organization for Security and Co-operation in Europe</narrative>
<narrative xml:lang="fr">Organisation pour la sécurité et la coopération en Europe</narrative>
</name>
<category>47000</category>
</codelist-item>
Expand Down Expand Up @@ -3068,7 +3076,7 @@
<codelist-item status="active" activation-date="2013-01-01">
<code>47139</code>
<name>
<narrative>World Customs Organisation Customs Co-operation Fund</narrative>
<narrative>World Customs Organization Customs Co-operation Fund</narrative>
<narrative xml:lang="fr">Organisation Mondiale des Douanes Fonds de coopération douanière</narrative>
</name>
<category>47000</category>
Expand Down
Loading