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

Change dependency handling #61

Closed
wants to merge 2 commits into from
Closed

Change dependency handling #61

wants to merge 2 commits into from

Conversation

rpkilby
Copy link
Contributor

@rpkilby rpkilby commented Apr 10, 2018

Should fix #60

  • Makes prometheus an extra dependency
  • Don't always install rabbitmq+watch dependencies

``rabbitmq`` Installs the required dependencies for using Dramatiq with RabbitMQ.
``redis`` Installs the required dependencies for using Dramatiq with Redis.
``watch`` Installs the required dependencies for the ``--watch`` flag.
``prometheus`` Installs the required dependencies for the Prometheus statistics middleware.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Prometheus can't be an optional dependency right now because it's a default middleware

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should prometheus be made non-default, or should this change be reverted? As a user, the former would be preferable since we don't use prometheus.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Although I understand if you'd rather make that change later.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a change I'm planning for the next major release since it's a breaking change. It'll take a while to come out, though, because I'd like to avoid churning major version releases quickly.

@Bogdanp
Copy link
Owner

Bogdanp commented Apr 10, 2018

My intention with the default extras was for pip install dramatiq to install RMQ and watch deps. I didn't realize it had the side-effect it had. I wonder if there's a way of doing that w/o the side-effects though?

@rpkilby
Copy link
Contributor Author

rpkilby commented Apr 10, 2018

I wonder if there's a way of doing that w/o the side-effects though?

pypa/setuptools#1139

Cursory glance at this issue indicates this is not a feature.

@Bogdanp
Copy link
Owner

Bogdanp commented Apr 10, 2018

That's unfortunate. I just checked the Dramatiq docs briefly and it looks like we always recommend installing w/ explicit extras so this looks good to me! I'll merge it tonight along w/ the other PR. I expect I'll do a 1.1 release sometime next week.

@Bogdanp
Copy link
Owner

Bogdanp commented Apr 10, 2018

Thanks again! I merged your changes with rebase here:

8a2295c
35d86f7

@Bogdanp Bogdanp closed this Apr 10, 2018
@rpkilby rpkilby deleted the dependencies branch April 10, 2018 17:35
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.

dramatiq dependencies
2 participants