Move requirements files into setup.py

This commit is contained in:
Ivan Habunek 2023-11-18 22:16:37 +01:00
parent e9daaf6000
commit 4cd83daf4b
No known key found for this signature in database
GPG key ID: F5F0623FF5EBCB3D
5 changed files with 19 additions and 22 deletions

View file

@ -18,8 +18,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .\[richtext\]
pip install -r requirements-test.txt
pip install -e ".[test,richtext]"
- name: Run tests
run: |
pytest

View file

@ -1,8 +0,0 @@
coverage
keyring
pyxdg
pyyaml
sphinx
sphinx-autobuild
twine
wheel

View file

@ -1,6 +0,0 @@
flake8
psycopg2-binary
pytest
pytest-xdist[psutil]
setuptools
vermin

View file

@ -1,5 +0,0 @@
requests>=2.13,<3.0
beautifulsoup4>=4.5.0,<5.0
wcwidth>=0.1.7
urwid>=2.0.0,<3.0
urwidgets>=0.1,<0.2

View file

@ -41,7 +41,24 @@ setup(
"tomlkit>=0.10.0,<1.0"
],
extras_require={
"richtext": ['urwidgets>=0.1,<0.2'],
# Required to display rich text in the TUI
"richtext": [
"urwidgets>=0.1,<0.2"
],
"dev": [
"coverage",
"pyyaml",
"twine",
"wheel",
],
"test": [
"flake8",
"psycopg2-binary",
"pytest",
"pytest-xdist[psutil]",
"setuptools",
"vermin",
],
},
entry_points={
'console_scripts': [