Note: this is just a suggestion ā I have no horse in this race
Description
This PR moves package requirements out of requirements.txt and straight into install_requires of setup.py (leaving . as the only dep in requirements.txt ā which informs pip to look in the setup.py).
Additionally, deps for test_requires were moved out of requirements-dev.txt and into extras_require['test'], leaving halo[test] as the only dep in test_requires.
A new extras_require['dev'] was added, requiring halo[test,ipython], to setup the dev environment. .[dev] is now the only dep in requirements-dev.txt. Requiring the ipython reqs is a new addition to the workflow ā it was added, because the linter complains if it can't import ipython stuff.
Why?
All I wanted to do was add -r requirements.txt to requirements-dev.txt, so setting up the dev env would only need pip install -r requirements-dev.txt... then I realized the reqs were read line-by-line in setup.py, so I could either augment the dependencies(req_file_path) method, or ask O Glorious Internet for answers.
Note: this is just a suggestion ā I have no horse in this race
Description
This PR moves package requirements out of requirements.txt and straight into
install_requires
of setup.py (leaving.
as the only dep in requirements.txt ā which informs pip to look in the setup.py).Additionally, deps for
test_requires
were moved out of requirements-dev.txt and intoextras_require['test']
, leavinghalo[test]
as the only dep intest_requires
.A new
extras_require['dev']
was added, requiringhalo[test,ipython]
, to setup the dev environment..[dev]
is now the only dep in requirements-dev.txt. Requiring the ipython reqs is a new addition to the workflow ā it was added, because the linter complains if it can't import ipython stuff.Why?
All I wanted to do was add
-r requirements.txt
to requirements-dev.txt, so setting up the dev env would only needpip install -r requirements-dev.txt
... then I realized the reqs were read line-by-line in setup.py, so I could either augment thedependencies(req_file_path)
method, or ask O Glorious Internet for answers.Her Majesty, The Internet said _"maybe use extrasrequire['test']". I'd never heard of going that route before (or that pip supports installation of reqs from setup.py using
.
as a dep), it seemed fun and interesting (for some definitions of "fun" and "interesting"), uhh, so I gave it a shot.Checklist