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

Add missing dependencies to setup.py #7

Merged
merged 3 commits into from
Aug 2, 2016
Merged

Conversation

michaelsilver
Copy link
Member

In #5 our requirements.txt and setup.py dependencies diverged, which resulted in failing WikipediaBase builds. This PR adjusts Travis to detect this issue, and then addresses the issue by adding the missing dependencies.

For more details on the usage of requirements.txt vs. setup.py, see the commit message in 86976a0.

The reasoning being that when any other app installs lispify as a
dependency, pip doesn't look at the requirements.txt file at all.

See https://caremad.io/2013/07/setup-vs-requirement/ for an excellent
description of the different usage of a requirements.txt file and a
setup.py file. In short, setup.py lists abstract dependencies which pip
will install from PyPi or other sources listed in dependency_links and
is used during normal installation. requirements.txt on the other hand
is used during development.

It's important to test installing using one and the other separately
because it can help isolate bugs. requirements.txt is a list of
dependencies that are frozen during development when known to work, and
setup.py is a list of dependencies with perhaps some specification of
version for incompatibilities, but otherwise completely abstract and
versionless. The two lists can also diverge accidentally during
development, and if problems arise one can compare the results of
installing one way and the other to see what went wrong.
unittest2 backports the new features of unittest to Python 2.4+
@codecov-io
Copy link

codecov-io commented Aug 2, 2016

Current coverage is 91.66% (diff: 100%)

Merging #7 into master will not change coverage

@@             master         #7   diff @@
==========================================
  Files             2          2          
  Lines           156        156          
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
  Hits            143        143          
  Misses           13         13          
  Partials          0          0          

Powered by Codecov. Last update 0ef5f44...cecb77e

@chsamlee
Copy link
Contributor

chsamlee commented Aug 2, 2016

LGTM!

@chsamlee chsamlee assigned michaelsilver and unassigned chsamlee Aug 2, 2016
@michaelsilver michaelsilver merged commit 168ded3 into master Aug 2, 2016
@michaelsilver michaelsilver deleted the missing-deps branch August 2, 2016 18:26
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

Successfully merging this pull request may close these issues.

3 participants