Closed thijstriemstra closed 6 years ago
This PR seems to reveal some test failures and broken coverage report:
Coverage.py warning: No data was collected. (no-data-collected)
ping @sybrenstuvel (you should enable github feature 'request review' for prs).
I could make you collaborator, so that you can do that yourself. Would you like that?
sounds good, thx.
Nice work!
The requirements.txt
file contains the exact versions of all the dependencies I use for testing, and provides a known-good set of version numbers. This also makes it possible to have multiple machines (owned by the same or different developers) all with a consistent set of dependencies. As such, it can't be replaced by just the version numbers in setup.py
(which indicate minimum versions and/or upper limits to the versions for compatibility reasons, but not specific version numbers).
I do agree that those versions should be updated at some point.
@sybrenstuvel I will define the latest and greatest in setup.py then?
No, define the minimum required versions in the setup.py
. Don't increase them unless there is a very good reason to. Having those versions as low as possible makes it much easier for packaging with Linux distributions, 3rd party applications, etc. as they don't have to mess with their other packages when pulling in an update to the FlickrAPI library.
@sybrenstuvel pinned the versions in setup.py
I may not have been clear in my explanation. The versions should be mimimal versions, i.e. pkgname>=2.4
, so that newer versions that have already been installed are also valid. requirements.txt
should contain specific versions, i.e. pkgname==2.4
.
(version numbers there are for illustration only, they could very well be different)
@sybrenstuvel gotcha, see update.
Better, but why still delete requirements.txt
?
In travis.yml
you put pip install --ignore-installed --upgrade setuptools pip tox-travis coveralls
. What's the effect of having both --ignore-installed
and --upgrade
in one invocation? Don't they clash?
@sybrenstuvel restored the file and addressed your comments.
flickrapi/__version__.py