Comments (15)
IMHO master branch should be released and feedback should be posted here in issues. The source sitting in Git gathering dust is not really working as a mechanism for people testing the package. @philipkershaw @agstephens any comments?
from esgf-pyclient.
Hi @laliberte,
There are no plans to port to python 3. At present, most of our community is still rooted in python 2.7. It would be great if you have the time to update it.
Thanks, Ag
from esgf-pyclient.
Hi @agstephens, I tought the same until I realized recently that things seem to be moving pretty fast on the python 3 front with some key packages dropping features in python 2.7. So, if you don't mind, I would like to give a jab at the python 3 migration.
Here's what I think would be the best way to go at it:
- Reorganize the tests a bit and specify expected failures and skip tests that cannot succeed.
- Ideally, travis-ci integration.
- switch from using
urllib2
to using therequests
library.
I have made some progress on 1 & 2. What do you think about 3? I'll create a PR later today as a basis of discussion for 1 & 2.
from esgf-pyclient.
Hi @laliberte, I have merged into master having re-run the tests. I have just set up Travis integration for the master branch - thanks for the nudges regarding good practice. I also appreciate your nice decorators to manage the logon details in the test suite. Much slicker. I agree that switching to using the requests
would be a nice upgrade. Thanks, Ag
from esgf-pyclient.
Hi @laliberte,
I've made a dual Python 2/3 compatible version of MyProxyClient. It's in devel at the moment:
https://github.com/cedadev/MyProxyClient/tree/devel
should be able to put on PyPI v soon
from esgf-pyclient.
@philipkershaw, how is your py2/3 compatible version of MyProxyClient doing? Thanks, Ag
from esgf-pyclient.
It's completed but needs minting in PyPI
from esgf-pyclient.
New version 2.0 now in PyPI
from esgf-pyclient.
Hi folks, where is this effort currently at? We are looking to upgrade over at Apache Open Climate Workbench and eager to chip in if it would be of help. Thanks.
from esgf-pyclient.
Sorry for the slow response @lewismc, yes it would be good to have contributions. The recent work has mostly been maintenance AFAIK
from esgf-pyclient.
OK doke, i think i will make an attempt to work on this issue then. @agoodm FYI.
from esgf-pyclient.
Thanks, the Python 3 port is pretty much finished in devel I think but it needs thorough testing.
from esgf-pyclient.
Does anyone have an update on this issue? It sounds like it is completed but waiting on some testing.
from esgf-pyclient.
Hi all, I appreciate your feedback. Was looking at this last week and getting some outstanding tests working on Py2.7 and Py3.3. I'll cut a release and people can let us know if there are any problems.
from esgf-pyclient.
Closing this as we have released a Python 3 compatible-version at v0.2.1:
https://github.com/ESGF/esgf-pyclient/releases/tag/0.2.1
This release includes the following features:
- Python 3 support for the library
verify
option in LogonManager- Works with Python 3 version of MyProxyClient
- Testing structure with
pytest
has been improved
This release is available on GitHub at:
https://github.com/ESGF/esgf-pyclient/releases/tag/0.2.1
And PyPI at:
https://pypi.python.org/pypi/esgf-pyclient
You can typically install it with:
`pip install esgf-pyclient`
The latest release is documented at:
http://esgf-pyclient.readthedocs.io/en/latest/
from esgf-pyclient.
Related Issues (20)
- Failing CI build: parsing of HTTPResponse by defusedxml.ElementTree HOT 1
- No consistent result from different queries (CMIP6) HOT 1
- `ignore_facet_check` search option appears to be broken
- Dependency problem (version mismatch between pyesgf and requests library) leading to AttributeError: module 'requests_cache' has no attribute 'core' HOT 5
- add "facets" keyword argument to DatasetResult.file_context
- New release? HOT 5
- Import trial of `MyProxyClient` in `pyesgf/logon.py` outputs misleading error and incompatibility with `cryptography` from Anaconda `main` channel HOT 2
- logon for http request HOT 2
- lm.logon timeout HOT 12
- Facets warning with aggregation_context(): unexpected keyword
- CMIP6 data availability? HOT 2
- logon does not allow access to all ESGF nodes HOT 13
- Unexpected number of results for large query
- Not matching all the expected files HOT 4
- logon refused from my laptop HOT 3
- Facets warning appears even when facets are specified HOT 5
- collection import errors from python 3.10 HOT 1
- [via MyProxyClient] Import of `MyProxyClient` fails due to complete retirement of `SafeConfigParser` in Python 3.12 HOT 2
- Fix `tests/test_results` test module
- 503 HTTPErrors should not be failing the tests
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esgf-pyclient.