Skip to content

Don't require simplejson#8

Merged
yannmh merged 2 commits intoDataDog:masterfrom
benweatherman:master
Apr 6, 2015
Merged

Don't require simplejson#8
yannmh merged 2 commits intoDataDog:masterfrom
benweatherman:master

Conversation

@benweatherman
Copy link
Copy Markdown
Contributor

simplejson isn't listed as a dependency, but certain modules were
importing it directly. I switched to using datadog.compat since that
does the right thing for py2k and py3k and whether or not you have
simplejson installed.

A few other fixes

  • Fixed requirements needed for running python setup.py test
  • Use pillow instead of PIL for the images needed during testing.
    There are lots of reasons pillow is a much better choice, but py3k
    support is a pretty big one.

`simplejson` isn't listed as a dependency, but certain modules were
importing it directly. I switched to using `datadog.compat` since that
does the right thing for py2k and py3k and whether or not you have
`simplejson` installed.

A few other fixes
- Fixed requirements needed for running `python setup.py test`
- Use `pillow` instead of `PIL` for the images needed during testing.
  There are lots of reasons `pillow` is a much better choice, but py3k
  support is a pretty big one.
@miketheman
Copy link
Copy Markdown
Contributor

I am also curious how test_requires works with requirements.txt - I think that having both leads to confusion.

/cc: @yannmh

@benweatherman
Copy link
Copy Markdown
Contributor Author

You're right, I didn't even notice that. Once we decide on how this project will use requirements.txt then I'll update CONTRIBUTING.md accordingly.

@yannmh yannmh self-assigned this Apr 2, 2015
@yannmh
Copy link
Copy Markdown

yannmh commented Apr 2, 2015

Great ! Thanks again @benweatherman.

requirements.txt is a leftover: I don't think it makes any sense to keep it. Would you mind removing it please ?

Once, it's done we can merge your contribution and publish a new release 💥

@benweatherman
Copy link
Copy Markdown
Contributor Author

OK, I think I've got it all tidied up now. Anything else that I can do to make this ready for primetime?

@yannmh
Copy link
Copy Markdown

yannmh commented Apr 6, 2015

Great work. Thanks a lot @benweatherman.

I am merging your PR and releasing a new version of datadogpy.

yannmh pushed a commit that referenced this pull request Apr 6, 2015
Don't require `simplejson`
@yannmh yannmh merged commit f56663a into DataDog:master Apr 6, 2015
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