Skip to content

Commit

Permalink
Add [speed]
Browse files Browse the repository at this point in the history
Previously requirements.txt/install_requires only required:

    betfairlightweight==2.17.3

which will not bring in the faster libraries that
betfairlightweight[speed] would bring in.

If you're running a standalone virtual environment for flumine then
you can easily miss out on these faster dependencies.

This adds a [speed] mode which simply depends on
betfairlightweight[speed] ensuring that the right versions of the
transitive dependencies are pulled in for the given version of bflw.
  • Loading branch information
petedmarsh committed Sep 2, 2023
1 parent 796ec51 commit 916fbc9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions requirements-speed.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
betfairlightweight[speed]==2.17.3
7 changes: 7 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
with open(os.path.join(here, "requirements.txt")) as f:
INSTALL_REQUIRES = f.read().splitlines()

with open(os.path.join(here, "requirements-speed.txt")) as f:
extras_require = f.read().splitlines()
EXTRAS_REQUIRE = {
"speed": extras_require,
}

about = {}
with open(os.path.join(here, "flumine", "__version__.py"), "r") as f:
exec(f.read(), about)
Expand All @@ -27,6 +33,7 @@
),
package_dir={"flumine": "flumine"},
install_requires=INSTALL_REQUIRES,
extras_require=EXTRAS_REQUIRE,
url=about["__url__"],
license=about["__license__"],
author=about["__author__"],
Expand Down

0 comments on commit 916fbc9

Please sign in to comment.