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

Supports Python3 #249

Merged
merged 133 commits into from
May 28, 2021
Merged

Supports Python3 #249

merged 133 commits into from
May 28, 2021

Conversation

smellman
Copy link
Contributor

@smellman smellman commented Jan 14, 2021

This PR doesn't support Python2 for CI and I test with only python3 environment.

@smellman smellman marked this pull request as ready for review January 19, 2021 04:28
@smellman
Copy link
Contributor Author

  • github actions supports ckan 2.7, 2.8, 2.9-py2 and 2.9 with docker test images and remove ci for ckan master branch
  • fixes some logics for ci in ckan 2.7 and 2.8

@howff
Copy link

howff commented Feb 28, 2021

I have just tested the branch https://github.com/smellman/ckanext-spatial/tree/dev-py3 in ckan-2.9 python3 ubuntu20.04 and it worked for me (unlike the current ckan/ckanext-spatial which did not)

@bonnland
Copy link
Contributor

Any idea when this could get merged? My organization is trying to move to CKAN 2.9 and python 3, and we rely heavily on this extension (harvesting ISO 19139).

Thanks for any info!

@tomeksabala
Copy link

I have also run some preliminary tests with this WIP branch on my CKAN 2.9 setup and it seemed to work.
I am also really interested on what's the timeline for getting this merged in!

Thanks for a great work @smellman

min_args = 0

def command(self):
self._load_config()
print ''
print('')
Copy link
Member

Choose a reason for hiding this comment

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

do we need this line ?!

Copy link
Contributor

Choose a reason for hiding this comment

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

This dates back >10 years! I guess load_config() printed some logging, and this new-line made it neat. I don't know if it's still needed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I will delete this line.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@tino097
Copy link
Member

tino097 commented May 24, 2021

+1 to be merged @ckan/core

@@ -33,6 +34,11 @@
from ckanext.spatial.model import ISODocument
from ckanext.spatial.interfaces import ISpatialHarvester

if p.toolkit.check_ckan_version("2.9"):
Copy link
Contributor

Choose a reason for hiding this comment

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

How about min_version="2.9", to be compatible with 3.0 when it comes out?

Copy link
Contributor

Choose a reason for hiding this comment

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

This improvement could go into a second PR - there's no point delaying merging this PR.

@smotornyuk smotornyuk mentioned this pull request May 26, 2021
@amercader
Copy link
Member

I'll do a final review this week, thanks @smellman and @smotornyuk for your work on this!

@amercader
Copy link
Member

I've merged this branch plus a bunch of improvements and fixes to make it more future-proof (you can check commits 17c7ffd to 90ee774) and tagged it v1.0.0

Huge thanks to @smellman for finishing the great work that @smotornyuk started and taking this over the line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants