[ckan-dev] Travis CI build

dporto dporto at gmail.com
Wed Mar 22 06:35:50 UTC 2017


I've a similar situation but using babel for translations.

My solution was to uninstall and reinstall fixing required version

pip uninstall pytz
pip install pytz>=0a

Everything seems to keep on working well...but I'm not 100% sure

David

2017-03-21 10:50 GMT+01:00 <lucia.espona at wsl.ch>:

> Hi Stéphane
>
> I am not 100% sure how I fixed it but I think it was by modifying the
> requirements.txt: https://github.com/espona/ckanext-composite/blob/master/
> dev-requirements.txt#L1
>
> pytz==2016.4
> lxml>=2.3
>
> I also omitted some tests: https://github.com/espona/
> ckanext-composite/commit/2a03e2af3010226f869aa3142cc8d977028a84e0
>
>
> I hope it helps,
> Lucia
>
> _________________________________________________________
> Dr. Lucia Espona Pernas
>
> Swiss Federal Institute for Forest, Snow and Landscape Research WSL
> Hauptgebäaude Labortrakt (HL C21)
> Zürcherstrasse 111
> 8903 Birmensdorf
> Switzerland
>
> +41 44 739 28 71 <+41%2044%20739%2028%2071> phone direct
> +41 44 739 21 11 <+41%2044%20739%2021%2011> reception
>
> www.wsl.ch
>
> -----"ckan-dev" <ckan-dev-bounces at lists.okfn.org> wrote: -----
> To: CKAN Development Discussions <ckan-dev at lists.okfn.org>
> From: Stéphane Lapointe
> Sent by: "ckan-dev"
> Date: 14.03.2017 13:35
> Subject: Re: [ckan-dev] Travis CI build
>
>
> Hi,
>
> same problem here. Did you find a solution?
>
> Thank you
>
> Le 2016-10-24 à 12:30, lucia.espona at wsl.ch a écrit :
>
> Hi again
>
> Now I hava a version conflict with pytz, any ideas?
>
>
>
> *pkg_resources.VersionConflict: (pytz 2012j
> (/home/travis/virtualenv/python2.7.12/lib/python2.7/site-packages),
> Requirement.parse('pytz>=0a')) *I guess there is some version number
> parsing issue, I think 2012j is greated than 0a (log below)
>
> Best
> Lucia
>
> /home/travis/build/espona/ckanext-composite
> Installing ckanext-composite and its requirements...
> Traceback (most recent call last):
> File "setup.py", line 95, in <module>
> ('**/templates/**.html', 'ckan', None),
> File "/opt/python/2.7.12/lib/python2.7/distutils/core.py", line 111, in
> setup
> _setup_distribution = dist = klass(attrs)
> File "/home/travis/virtualenv/python2.7.12/lib/python2.7/
> site-packages/setuptools/dist.py", line 269, in __init__
> _Distribution.__init__(self,attrs)
> File "/opt/python/2.7.12/lib/python2.7/distutils/dist.py", line 287, in
> __init__
> self.finalize_options()
> File "/home/travis/virtualenv/python2.7.12/lib/python2.7/
> site-packages/setuptools/dist.py", line 324, in finalize_options
> ep.require(installer=self.fetch_build_egg)
> File "/home/travis/virtualenv/python2.7.12/lib/python2.7/
> site-packages/pkg_resources/__init__.py", line 2326, in require
> items = working_set.resolve(reqs, env, installer)
> File "/home/travis/virtualenv/python2.7.12/lib/python2.7/
> site-packages/pkg_resources/__init__.py", line 810, in resolve
> raise VersionConflict(dist, req).with_context(dependent_req)
> *pkg_resources.VersionConflict: (pytz 2012j
> (/home/travis/virtualenv/python2.7.12/lib/python2.7/site-packages),
> Requirement.parse('pytz>=0a'))*
>
>
> _________________________________________________________
> Dr. Lucia Espona Pernas
>
> Swiss Federal Institute for Forest, Snow and Landscape Research WSL
> Hauptgebäaude Labortrakt (HL C21)
> Zürcherstrasse 111
> 8903 Birmensdorf
> Switzerland
>
> +41 44 739 28 71 <+41%2044%20739%2028%2071> phone direct
> +41 44 739 21 11 <+41%2044%20739%2021%2011> reception
>
> www.wsl.ch
>
> -----"ckan-dev" <ckan-dev-bounces at lists.okfn.org>
> <ckan-dev-bounces at lists.okfn.org> wrote: -----
> To: "CKAN Development Discussions" <ckan-dev at lists.okfn.org>
> <ckan-dev at lists.okfn.org>
> From: lucia.espona at wsl.ch
> Sent by: "ckan-dev"
> Date: 24.10.2016 17:12
> Subject: [ckan-dev] Travis CI build
>
> Dear all
>
> I have developed a couple of extensions and they are failing in the Travis
> CI run.
> I copied some build stuff from other extension (ckan/ckanex-spatial) to
> try to make it work.
>
> The extension I am testing now (espona/ckanext-composite) fails because it
> depends on ckanext-scheming and ckanext-repeating.
> I do not know how to put in the *travis-build.bash *file (or wherever it
> should be especified) this requirement.
>
> Does anyone have an idea how to do that?
>
> Many thanks in advance for your help.
>
> Best,
> Lucia
>
> _________________________________________________________
> Dr. Lucia Espona Pernas
>
> Swiss Federal Institute for Forest, Snow and Landscape Research WSL
> Hauptgebäaude Labortrakt (HL C21)
> Zürcherstrasse 111
> 8903 Birmensdorf
> Switzerland
>
> +41 44 739 28 71 <+41%2044%20739%2028%2071> phone direct
> +41 44 739 21 11 <+41%2044%20739%2021%2011> reception
>
> www.wsl.ch
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> https://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> https://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>
>
> --
>
> Stéphane Lapointe
>
> *Analyste programmeur  |  Programmer Analyst*
>
>  [image: https://ogsl.ca/images/visuel/Equipe/signatures/logos.png]
>
> *Observatoire global du Saint-Laurent  |  St. Lawrence Global Observatory*
>
> 310, allée des Ursulines
>
> Rimouski Qc Canada  G5L 3A1
>
> Téléphone  |  Telephone : 418.723.8372 <(418)%20723-8372>   poste | ext.
> 1195
>
> Internet : http://ogsl.ca   | http://slgo.ca
>
> Suivez-nous sur | Follow Us : Facebook
> <https://www.facebook.com/pages/OGSL/140878112686019>  | Twitter
> <https://twitter.com/#%21/OGSL_SLGO>  | LinkedIn
> <http://www.linkedin.com/company/observatoire-global-du-saint-laurent---ogsl>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> https://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> https://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20170322/2b4a26e9/attachment-0003.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Image.part5.6141E8FE.7662BC26 at ogsl.ca.png
Type: image/png
Size: 27074 bytes
Desc: not available
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20170322/2b4a26e9/attachment-0003.png>


More information about the ckan-dev mailing list