Created a requirements.dev.txt just for the developers

This commit is contained in:
Romain Failliot 2021-11-24 20:39:00 -05:00
parent 124d086009
commit 6685b898f8
5 changed files with 16 additions and 8 deletions

View File

@ -22,7 +22,7 @@ jobs:
- name: Install dependencies - name: Install dependencies
run: | run: |
sudo apt-get -y install libgirepository1.0-dev appstream appstream-util desktop-file-utils gettext sudo apt-get -y install libgirepository1.0-dev appstream appstream-util desktop-file-utils gettext
pip install -r requirements.txt pip install -r requirements.dev.txt
- name: Meson build - name: Meson build
uses: BSFishy/meson-build@v1.0.3 uses: BSFishy/meson-build@v1.0.3

View File

@ -27,6 +27,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Added linters (flake8 and mypy) and fixed some errors - Added linters (flake8 and mypy) and fixed some errors
- Added lint jobs for both in the CI - Added lint jobs for both in the CI
- Added a flatpak job in the CI - Added a flatpak job in the CI
- Created a requirements.dev.txt just for the developers
### Changed ### Changed
- main.py slimmed down by about 5000 lines - main.py slimmed down by about 5000 lines

View File

@ -2,11 +2,17 @@
## Requirements ## Requirements
Diffuse is implemented in Python and should run on any platform with Python and To install the requirements just to execute the binary, run:
PyGObject.
* Python >= 3.4 ```sh
* PyGObject >= 3.18 pip install -r requirements.txt
```
For developer tools, run this one instead (it includes requirements.txt):
```sh
pip install -r requirements.dev.txt
```
## Setup on Linux ## Setup on Linux

4
requirements.dev.txt Normal file
View File

@ -0,0 +1,4 @@
-r requirements.txt
flake8 ~= 3.8
flake8-noqa ~= 1.2
mypy ~= 0.910

View File

@ -1,4 +1 @@
flake8 ~= 3.8
flake8-noqa ~= 1.2
mypy ~= 0.910
PyGObject ~= 3.40 PyGObject ~= 3.40