-
Notifications
You must be signed in to change notification settings - Fork 1.1k
[Fixies #12540] PyCSW upgrade to version 3 #13112
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
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #13112 +/- ##
==========================================
- Coverage 72.59% 72.59% -0.01%
==========================================
Files 916 916
Lines 52636 52636
Branches 6058 6058
==========================================
- Hits 38213 38210 -3
- Misses 12857 12860 +3
Partials 1566 1566 🚀 New features to boost your workflow:
|
"pycsw:AnyText": "csw_anytext", | ||
"pycsw:Language": "language", | ||
"pycsw:Title": "title", | ||
"pycsw:Abstract": "raw_abstract", | ||
"pycsw:Edition": "csw_edition", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ResourceBase has an edition
field, not csw_edition
edition = models.CharField(_("edition"), max_length=255, blank=True, null=True, help_text=edition_help_text)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
requirements.txt
Outdated
@@ -52,13 +52,14 @@ oauthlib==3.2.2 | |||
pyjwt==2.8.0 | |||
|
|||
# geopython dependencies | |||
git+https://github.com/geopython/pycsw.git@master#egg=pycsw |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
master
is a bit too dynamic, we may want a tagged version (3.0.0-beta1 is the latest)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
setup.cfg
Outdated
@@ -80,11 +80,12 @@ install_requires = | |||
# geopython dependencies | |||
pyproj<3.7.0 | |||
OWSLib==0.31.0 | |||
pycsw==2.6.1 | |||
pycsw @ git+https://github.com/geopython/pycsw.git@master#egg=pycsw |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as above: master is a bit too dynamic, we may want a tagged version (3.0.0-beta1 is the latest)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
@@ -28,24 +28,29 @@ | |||
"pycsw:MdSource": "csw_mdsource", | |||
"pycsw:InsertDate": "csw_insert_date", | |||
"pycsw:XML": "metadata_xml", | |||
"pycsw:Metadata": "metadata", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should probably be metadata_xml
since in pycsw doc:
pycsw:XML
: full XML representation (deprecated; will be removed in a future release)pycsw:Metadata
: full metadata representation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As we discussed, I left it as it for now
This PR was created according to this issue: #12540 . There is an older PR here: #12535 but a new one was created due to significant changes on the master branch since the previous PR — including the addition of the new metadata editor.
Checklist
For all pull requests:
The following are required only for core and extension modules (they are welcomed, but not required, for contrib modules):
Submitting the PR does not require you to check all items, but by the time it gets merged, they should be either satisfied or inapplicable.