-
Notifications
You must be signed in to change notification settings - Fork 11
Add Travis CI support #3
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
Conversation
b95b814 to
74e3908
Compare
JasonMWhite
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome!
|
What reasons do we have for keeping the |
|
The
Specifying all of these activities in one place standardizes them for both local machines and CI. For that reason, we should script these activities somewhere. Our options include:
The Makefile adds value in terms of standardizing and making development activities easier to perform. There are other tools that we could probably adopt to accomplish the same outcomes. |
Sorry, I should have been more clear: I was really asking about
In that case, let's go with |
I'm going to give |
|
Doesn't |
I tried my best to replace |
| @@ -1,4 +1,6 @@ | |||
| python_files := find . -path '*/.*' -prune -o -name '*.py' -print0 | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
License boilerplate
| @@ -0,0 +1,15 @@ | |||
| language: python | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
License boilerplate
|
|
||
| try: | ||
| from setuptools import setup | ||
| import setuptools as setuplib |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason for this to be conditional? Not the least because you are apparently depending on it now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This try/catch allows someone to install this locally if they don't have setuptools installed, e.g. using python setup.py install. That means that they can't get any of the extras (that's a setuptools feature) but they can at least install the package.
| ], | ||
| extras_require={ | ||
| 'dev': [ | ||
| 'autopep8', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
extra_requires is really neat.
|
LGTM |
This PR adds support for Travis CI including:
To accomplish this, a modern requirement specifier was used in
setup.py'sextras_requirewhich necessitated upgradingsetuptoolson Travis CI.