-
-
Notifications
You must be signed in to change notification settings - Fork 694
Updated tox file and changed Travis CI to use tox #597
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
@asottile I took your advice and decided to tweak our tox environment and use it for our Travis builds, but I am not sure why the builds are failing. Am I using tox incorrectly on Travis? I tried to use pytest as an example and made sure to include the
Setting the environment variable and running |
the failure actually points out an important point of the packaging (and one of the many motivations for using this line in the that attempts to import which in turn imports most of the arrow packaging You generally have ~3 approaches here:
I don't know enough about how to set this up, but it's apparently a reasonable option To demonstrate that it's broken from source: $ pip install arrow --no-binary :all:
Collecting arrow
Downloading https://files.pythonhosted.org/packages/a0/3b/0b5c7771a619ee4eae1f894669dd5f7c0aae9c92d87891c4c746937f9cc4/arrow-0.14.0.tar.gz (102kB)
|████████████████████████████████| 112kB 2.4MB/s
ERROR: Complete output from command python setup.py egg_info:
ERROR: Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-pki32a8v/arrow/setup.py", line 4, in <module>
from arrow import __version__
File "/tmp/pip-install-pki32a8v/arrow/arrow/__init__.py", line 3, in <module>
from .api import get, now, utcnow
File "/tmp/pip-install-pki32a8v/arrow/arrow/api.py", line 10, in <module>
from arrow.factory import ArrowFactory
File "/tmp/pip-install-pki32a8v/arrow/arrow/factory.py", line 15, in <module>
from dateutil import tz as dateutil_tz
ModuleNotFoundError: No module named 'dateutil'
----------------------------------------
ERROR: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-pki32a8v/arrow/ cheers! hope this helps :) |
Codecov Report
@@ Coverage Diff @@
## master #597 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 7 7
Lines 1501 1501
Branches 225 225
=====================================
Hits 1501 1501 Continue to review full report at Codecov.
|
@jadchaar does this need to go in 0.14.1 as well or can it wait until the next release? |
We can wait until the next release since this is more of a backend/housekeeping thing. |
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.
Looks like this has been in the history since the beginning of time, but we should always get a blank slate anyway Noticed this in arrow-py/arrow#597
@systemcatch mind reviewing these changes so we can get them merged in for release |
Note: I replaced |
Along with these tox configuration changes, I also updated the
isort
config to not conflict with Black (which wraps import lines beyond 88 characters and uses trailing commas).Closes: #589