Commit Graph

98 Commits

Author SHA1 Message Date
Creak c224d17e9a
Merge pull request #141 from MightyCreak/docs-add-dependencies
Add project dependencies and fix Python 3.8 compatibility
2022-01-09 11:04:18 -05:00
Romain Failliot 0bf760f22a fix: Python 3.8+ compatibility
Use `List` instead of `list` and `Tuple` instead of `tuple`
2022-01-09 11:01:28 -05:00
Creak 3222cfe4d9
Merge pull request #138 from Philipp91/master
Fix SyntaxError in utils.py
2022-01-09 09:23:32 -05:00
Philipp Keck 9099ea0738 Fix SyntaxError in utils.py
No idea if a lint error that 812ca1779f tried to solve -- we'll see.
2022-01-09 10:45:24 +01:00
Romain Failliot d420d7aa93 Convert some functions to static typing 2022-01-08 17:54:39 -05:00
Romain Failliot 70b1bdbb9f No python files are processed by Meson anymore
* Linters can be run sooner (before install)
* Moved some constants in the config file
* Added a new keyword in the config syntax: "option"
* Better messages when an error occurs while parsing the config
2021-11-27 21:55:49 -05:00
Romain Failliot ec7d8adde2 Fix translation string with format 2021-11-27 18:36:28 -05:00
Romain Failliot c14d765f9c Rename "Diffuse Merge Tool" to just "Diffuse" 2021-11-27 18:02:12 -05:00
Romain Failliot 124d086009 ci: call the linters on the installed directory 2021-11-24 20:27:47 -05:00
Romain Failliot 70ba837431 Remove lasting linter errors 2021-11-24 20:27:47 -05:00
Romain Failliot d89ac0540b Fix all mypy errors 2021-11-22 20:54:46 -05:00
Romain Failliot 8d25396f68 Fix all flake8 errors 2021-11-22 20:53:21 -05:00
Romain Failliot f4a446caa8 Fix some typos and convert windows-installer scripts to Python 3
The scripts are poorly converted as Windows is not really supoported
anymore and would need some love from a contributor who actually uses
Windows
2021-11-22 18:52:26 -05:00
Romain Failliot c54e346887 ci: install dependencies
* Install GTK dev dependencies
* Add requirements.txt
* Fix error that happens on CI only (?)
2021-11-21 15:32:16 -05:00
Romain Failliot 5bcd63fe27 pylint: enable import-error, no-name-in-module, no-self-use 2021-11-21 15:32:16 -05:00
Romain Failliot 032e9a398b Move all the diffuse package in its own directory
This helps the linters (pylint and flake8)
2021-11-21 15:32:16 -05:00
Romain Failliot 81e87eb161 Fix cyclic import between utils and resources 2021-11-21 15:32:07 -05:00
Romain Failliot e306b25cb9 meson: create two disctincts confs for the .in files 2021-11-21 15:29:10 -05:00
Romain Failliot 4ec26c6580 Remove unused imports 2021-11-21 15:29:10 -05:00
Romain Failliot 74f4d81aca Fix comment typo 2021-11-21 12:02:06 -05:00
Romain Failliot bf3a0b11ab Few tweaks in main.py 2021-11-21 02:18:10 -05:00
Romain Failliot 8c981d3019 Extract FileDiffViewer in the widgets module 2021-11-21 01:56:51 -05:00
Romain Failliot bdac88460f Extract ScrolledWindow in the widgets module 2021-11-21 00:15:24 -05:00
Romain Failliot 8b1b7cbe7e Extract dialogs into their own module 2021-11-21 00:02:30 -05:00
Romain Failliot ac88e3dacb Extract Preferences in its own module 2021-11-20 15:50:35 -05:00
Romain Failliot 6f4a5f3250 Extract Resources in its own module 2021-11-20 15:12:30 -05:00
Romain Failliot 812ca1779f Fix lint messages in src/utils.py 2021-11-20 14:20:21 -05:00
Romain Failliot 510cbc1cf3 Fix pylint messages in src/vcs 2021-11-20 12:25:55 -05:00
Romain Failliot db36eee4e3 Convert VCSs and rename to VcsRegistry 2021-11-18 14:52:42 -05:00
Romain Failliot ab25807876 Convert Svk VCS 2021-11-18 14:52:26 -05:00
Romain Failliot 5d6ece84e1 Convert Svn VCS 2021-11-18 14:52:20 -05:00
Romain Failliot f314f46309 Convert Rcs VCS 2021-11-18 14:52:09 -05:00
Romain Failliot 11fd364ef6 Convert Monotone VCS 2021-11-18 14:52:00 -05:00
Romain Failliot 704579bf79 Convert Hg VCS 2021-11-18 14:51:58 -05:00
Romain Failliot 8577984373 Convert Darcs VCS 2021-11-18 14:51:33 -05:00
Romain Failliot 890b202ba6 Convert CVS VCS 2021-11-18 14:51:06 -05:00
Romain Failliot a89f85db7a Convert Bazaar VCS 2021-11-18 14:50:47 -05:00
Romain Failliot b645d2cd38 Modularize VCSs and convert Git VCS 2021-11-18 14:50:28 -05:00
Romain Failliot 08942ea026 Create new utils.logErrorAndDialog function 2021-11-18 12:12:13 -05:00
Romain Failliot 50f0e431ee Add log options: log_print_output and log_print_stack 2021-11-18 12:12:12 -05:00
Creak c43017d6db
Merge pull request #107 from MightyCreak/cleaning
Some tiny cleanings
2021-11-18 12:09:56 -05:00
Romain Failliot 56b75f45b9 Some tiny cleanings 2021-11-18 10:38:59 -05:00
Romain Failliot d1075b5bf5 Fix: error when opening non existing file 2021-11-18 09:58:26 -05:00
Romain Failliot be40411b66 Fix subprocess call from within Flatpak
Fixes #103
2021-11-16 22:48:40 -05:00
Romain Failliot fd3c2bfb92 Start modularizing the code
* The entry point (`__main__`) is in diffuxe.in
* The main (almost all) code is now in main.py
* Some util functions and variables are in utils.py
* Following the same folder structure as with a new project with GNOME
  Builder:
    - `src/` is now just for the code itself
    - `data/` is for the other files (metainfo, desktop, config, ...)
    - `po/` for the translations
    - The Desktop file is renamed with the app ID
    - The `meson.build` files are closer to what GNOME Builder generates
    - More tests for the package (appstream and desktop)
    - Almost all the files in `etc/`, `usr/` are properly handled by
      meson now
    - Just use `gettext.install()` to initialize gettext
    - Remove call to `Gtk.Window.set_default_icon_name()`
* Website now points to https://mightycreak.github.io/diffuse/
2021-11-16 17:48:34 -05:00
Romain Failliot dfbe91d086 New SVG icon 2021-01-11 14:08:18 -05:00
freddii 14a21830ab fixed typing mistakes 2020-12-28 20:48:44 +01:00
Romain Failliot 4cd8943e10 Add .desktop translations in .po files 2020-12-08 14:07:26 -05:00
Romain Failliot 7bdd796223 Add MetaInfo file
Changed app-id to io.github.mightycreak.Diffuse
2020-12-05 15:52:29 -05:00
Romain Failliot 839e41d97b Set up files for 0.6.0 2020-11-29 13:04:05 -05:00