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

Mismatch between requirement versions in setup.py and requirements.txt #16

Closed
amercader opened this issue Jul 23, 2014 · 1 comment
Closed

Comments

@amercader
Copy link
Member

setup.py has requirements unpinned:

      install_requires=[
            'APScheduler',
            'Flask',
            'SQLAlchemy',
            'requests',
            'flask-admin',
            'flask-login'
      ],

requirements.txt has (some) requirements pinned:

APScheduler==2.0.3
Flask==0.9
SQLAlchemy==0.7.8
requests==0.14.1
flask-admin
flask-login

I think they should be pinned and only listed in one place. I don't know how I ended up with APScheduler==3.0.0rc1 which breaks things.

@davidread
Copy link
Contributor

I don't know how I ended up with APScheduler==3.0.0rc1 which breaks things.

APScheduler<3.0.0 has been specified in setup.py since this was raised.

I think they should be pinned

The Flask, flask-admin, SQLAlchemy and requests versions shouldn't be pinned, as there are no ckan-service-provider doesn't care which version, but CKAN does, and that has them pinned already.

flask-login is the only one where 0.2 isn't ok but later version are (see #28 ). Should someone encounter this problem, they can use the new requirements.txt, with suggested versions for this and the rest.

and only listed in one place.

In this case the setup.py covers the majority of cases. The requirements.txt is just a handy backup to use should newer versions of the dependencies have breaking changes. I think that's a reasonable compromise even though it does repeat the names of the modules.

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

No branches or pull requests

2 participants