Viljami
Viljami

Reputation: 791

How can I specify dependency minimum and maximum version in setup.cfg?

Problem description

I would want to define the install requirement for my pip package. Let's say FooLibrary's version should be >=2 but <3.2.

Currently, I have

[options]
install_requires =
    FooLibrary >= 2

Question

How can I add a rule for maximum version of the library together with the minimum version rule?

Upvotes: 3

Views: 942

Answers (1)

Viljami
Viljami

Reputation: 791

Separate version requirements with commas.

So for example, in this case, FooLibrary >=2,<3.2 works

Upvotes: 3

Related Questions