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

g.extension: Remove six dependency #2828

Merged
merged 1 commit into from
Feb 14, 2023

Conversation

wenzeslaus
Copy link
Member

@wenzeslaus wenzeslaus commented Feb 14, 2023

  • Removes imports from six, uses standard Python 3 imports.
  • Removes Python <=2.4 ElementTree import.
  • Removes future print_function imports.
  • Removes six from g.extension and g.extension.all. Leaves the rest as is.

* Removes imports from six, uses standard Python 3 imports.
* Removes Python <=2.4 ElementTree import.
* Removes future print_function imports.
@wenzeslaus wenzeslaus added enhancement New feature or request CI Continuous integration labels Feb 14, 2023
@wenzeslaus
Copy link
Member Author

While python3-six package is in Travis CI, the build may fail as if there is no six package. Something like this happened before (possibly in Travis) and right now it happens for all runs.

This removes six from g.extension and g.extension.all, but not from anything else. This should allow the build to run without six.

@wenzeslaus wenzeslaus added this to the 8.3.0 milestone Feb 14, 2023
@wenzeslaus wenzeslaus merged commit f08fdcd into OSGeo:main Feb 14, 2023
@wenzeslaus wenzeslaus deleted the remove-six-from-g_extension branch February 14, 2023 18:40
ninsbl pushed a commit to ninsbl/grass that referenced this pull request Feb 17, 2023
* Removes imports from six, uses standard Python 3 imports.
* Removes Python <=2.4 ElementTree import.
* Removes future print_function imports.

Removes six only from g.extension and g.extension.all. Leaves the rest as is.
@neteler
Copy link
Member

neteler commented Feb 21, 2023

Any objections to backport this PR to G8.2?

@wenzeslaus
Copy link
Member Author

six is for Python 2, but we require Python 3 for v8 and tests are running for some time now, so no objections from me.

neteler pushed a commit that referenced this pull request Feb 21, 2023
* Removes imports from six, uses standard Python 3 imports.
* Removes Python <=2.4 ElementTree import.
* Removes future print_function imports.

Removes six only from g.extension and g.extension.all. Leaves the rest as is.
@neteler neteler modified the milestones: 8.3.0, 8.2.2 Feb 21, 2023
neteler pushed a commit to nilason/grass that referenced this pull request Nov 7, 2023
* Removes imports from six, uses standard Python 3 imports.
* Removes Python <=2.4 ElementTree import.
* Removes future print_function imports.

Removes six only from g.extension and g.extension.all. Leaves the rest as is.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI Continuous integration enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants