Commit Graph

139 Commits

Author SHA1 Message Date
David Yang
5fe1b223a1 Use pipenv builtin requirements instead of pipenv-to-requirements 2025-01-04 19:13:24 +08:00
James Addison
ee1740cbae Makefile: relocate schema (re)compilation to after schema installation 2024-09-17 00:00:53 +08:00
James Addison
6a1e1b7ce1 Makefile: ensure schema compilation occurs before installation
Resolves #2219
2024-09-17 00:00:53 +08:00
Paul Hooijenga
86bb9b55c1 Add pre-commit config and apply all fixes 2022-10-27 15:31:25 +08:00
David Yang
f8f968a785 Set SETUPTOOLS_SCM_PRETEND_VERSION=3.9.0 for python 2 2022-06-17 18:55:23 +08:00
David Yang
d0e052f680 Move schemas to /org/
Dconf schemas in /apps/ are deprecated, pulling the band-aid off now while it's still just warning messages.
2022-06-17 16:36:30 +08:00
David Yang
14abaa0c69 Use pip instead of deprecated setup.py 2022-06-17 16:35:52 +08:00
David Yang
8c7a23ba62 Work around setuptools adding extra /local to path 2022-06-16 16:35:53 +08:00
David Yang
08f945acd7 Add setup troubleshooting message for recent git change
Folding my resolution to an install issue into the install script
2022-06-16 15:20:06 +08:00
Gaetan Semet
8216591335 build: do not generate req in github build
Signed-off-by: Gaetan Semet <gaetan@xeberon.net>
2022-02-06 17:45:15 +01:00
Gaetan Semet
5a4decc1b7 build: discard old reno slugs 2022-02-06 12:17:31 +01:00
Gaetan Semet
272aa1ea5b build: fix official version computation
Signed-off-by: Gaetan Semet <gaetan@xeberon.net>
2022-02-06 12:17:31 +01:00
Gaetan Semet
d5c5811759 Revert "doc: update NEWS.rst"
This reverts commit d3fb42faa9.
2022-01-19 07:51:33 +08:00
Gaetan Semet
d3fb42faa9 doc: update NEWS.rst 2022-01-18 22:14:48 +01:00
David Yang
87972118ca Generate release notes for 3.8.2
Also replaced a deprecated pandoc flag
2022-01-18 09:49:01 +01:00
Eli Schwartz
c043278a41 setup: replace the last remnant of pbr with setuptools_scm
setuptools_scm is a standard and robust tool for dynamically getting
version numbers from e.g. git; among its features is the ability to
write the results to a python module that the application can then
import from. This removes the overhead of large modules which introspect
the dist-info to get the version, in favor of importing a frozen string.
2021-12-20 19:09:20 +08:00
Louie Lu
21c775e0c4 Revert "Add --site-package flag on pipenv-install-dev Makefile rule"
This reverts commit 05efba4849.
2021-12-19 09:56:38 +08:00
Juan Carlos Francisco Stabile
05efba4849 Add --site-package flag on pipenv-install-dev Makefile rule 2021-12-15 09:21:53 +01:00
Andrey Cherepanov
b1c6d8c54a Fix metainfo directory prefix
Commit c9a7c66 placed guake.desktop.metainfo.xml to $(DESTDIR)/metainfo/
instead of $(DESTDIR)$(datadir)/metainfo/. In package this file will be
placed to /metainfo, but standard
(https://www.freedesktop.org/software/appstream/docs/chap-Quickstart.html#qsr-app-introduction)
says:

"Applications can ship one or more files in /usr/share/metainfo/%{id}.metainfo.xml"

Return $(datadir) to installation path for metainfo file.
2021-10-13 20:00:41 +08:00
David Yu Yang
362d67aa73 Prepare for flake8 setuptools deprecation.
Dealing with the following message:

WARNING: flake8 setuptools integration is deprecated and scheduled for removal in 4.x.  For more information, see https://gitlab.com/pycqa/flake8/issues/544
2021-09-21 17:46:01 +08:00
David Yu Yang
09a958a738 Restore COMPILE_SCHEMA option
Restoring as per review https://github.com/Guake/guake/pull/1893#pullrequestreview-752712271
2021-09-13 15:40:53 +02:00
David Yu Yang
93c5cc4989 Regenerate guake schema if old schema file found
Currently guake only generates a schema file if there is no schema file present. If there is a schema file from an older version of guake present, glib will attempt to use that file, segfault and never return execution back to python. Do manual version recording and checking ourselves to regenerate the file instead of relying on exception handling on glibc.
2021-09-13 14:42:43 +02:00
Eli Schwartz
f3164e5a66
setup.cfg: directly specify needed install requirements
Do not rely on running pip to install dependencies, which e.g. distros cannot
do. Instead let this be specified directly as package metadata.

While we are at it, stop actually running pip install if DESTDIR is set, since
this is a fairly likely sign that guake is being installed in a distro
environment where pip install is not allowed.
2021-09-09 01:55:31 -04:00
Louie Lu
96bf89a166 Add PIPENV_IGNORE_VIRTUALENVS=1 2021-09-09 09:07:21 +08:00
David Yu Yang
8209db643f ci:Switch to github actions. 2021-09-07 10:05:53 +02:00
Stuardo -StR - Rodríguez
c9a7c66eee issue #244 appstream file
- placing the appstream metainfo file in the right path according to https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html#spec-component-location
2020-05-08 18:02:29 +02:00
Gaetan Semet
3ac1a69660 Replace autopep8, yapf by black
Signed-off-by: Gaetan Semet <gaetan@xeberon.net>
2020-02-18 22:58:54 +01:00
max ulidtko
fce21e7d9b Revamp make uninstall
$(prefix) uppercased for convention: DESTDIR and PREFIX are the usual parameters of `make install`.
Mixed var-casing just looks clumsy in `make DESTDIR=/tmp/mypkgroot prefix=/usr install`.

Dropped scripts/find-first-site-package.py as junk code. It didn't work
altogether, always returning '/'. Because distutils.sysconfig.get_python_lib()
returns *one string*, not a list of strings; thus get_python_lib()[0] == '/'.

However, it isn't that trivial to detect the correct path to site-packages of
the last install. What we do, is take *all* possible site-packages locations
from site.getsitepackages([$PREFIX]), and remove {guake,guake-*.egg-info} from
there. This is robust, and can't do any harm besides wiping [possibly several]
guake packages under the specified PREFIX (which defaults to /usr/local) --
which is exactly what `make uninstall` is supposed to do anyway.

Targets uninstall-old-locale, uninstall-old-schemas dropped. I fail to see any
purpose and/or utility of them. With OLD_PREFIX:=$(DESTDIR)usr (which by itself
conflates considerations and simply is wrong), what those targets did can be
trivially emulated via `make DESTDIR=... PREFIX=/usr uninstall`; so there
remains no point in duplicating the uninstall path lists.

Target uninstall-schemas expanded to cover all installed artifacts.

Target uninstall-locale's idempotence fixed using the `|| :` error-silencer.

"Installing from source" warning corrected and made more prominent.

DEV_*_DIR vars dropped as unused, except DEV_DATA_DIR which is used.

Tested with:
  make DESTDIR=/tmp/tt PREFIX=/usr/local install
  make DESTDIR=/tmp/tt PREFIX=/usr/local uninstall
  tree /tmp/tt
  # 13 directories, 0 files

closes #1646 @ GitHub.
sem-ver: bugfix
2019-10-04 14:57:28 +02:00
Gaetan Semet
bad084eb82 update pip deps and allow setting PYTHON= in Makefile
alias for PYTHON_INTERPRETER=
2019-05-15 13:34:07 +02:00
Louie Lu
e7dd9d758f Add install/uninstall-dev-locale to ensure dev-locale works 2019-05-13 10:52:48 +02:00
Louie Lu
33863bda21 Support customize prefix for make
If user using different python interpreter with customize prefix,
it can then install Guake with customize prefix now:

    $ make
    $ PYTHON_INTERPRETER=python3.7 prefix=~/.local/pythons/3.7 make install
    $ which guake
      ~/.local/pythons/3.7/bin/guake
2019-05-03 09:06:39 +02:00
Gaetan Semet
02ff14a887 create empty temp commit during release 2019-04-30 13:20:03 +02:00
Gaetan Semet
4153ef38f9 Move data back into guake dir
To prepare #1405
2019-04-29 11:04:55 +02:00
Gaetan Semet
871f8eb5c0 Fix site package 2019-04-29 10:49:43 +02:00
Gaetan Semet
26304f1587 Update release script and release 3.6.1
Travis password should be fixed and thus upload to pypi
should be back online.
2019-04-26 14:06:04 +02:00
Gaetan Semet
6fe109c5a6 Release 3.6.0 2019-04-26 11:02:52 +02:00
Louie Lu
e94606f8ff Make make with different python interpreter
User can choice which python interpreter when using `make`, e.g.:

    $ PYTHON_INTERPRETER=python3.5 make dev
2019-04-26 08:05:30 +02:00
Louie Lu
ed14b771a0 Add verbose option to run-local and make run
Now we can run guake with verbose when `make run`:

    $ make run V=1
2019-04-17 07:12:49 +02:00
Louie Lu
6f420f95d0 Update .travis.yml 2019-04-15 10:46:04 +02:00
suve
46b85d12c1 Add the appdata XML file to "make (un)install" 2018-10-17 17:59:53 +02:00
Gaetan Semet
2a497694ef Release 3.4.0 2018-10-02 14:03:41 +02:00
Gaetan Semet
23e586dcbc Context menu to be stored in callback obj
maybe due to gtk 3.18, the but the menu does not show up
if the menu is not saved in an object.

See:

  https://stackoverflow.com/questions/28465956/
2018-09-03 12:37:01 +02:00
Gaetan Semet
65d020c383 Update dependencies 2018-09-03 12:37:01 +02:00
Mario Aichinger
e17b9c82ac add run-local-prefs 2018-08-24 18:41:50 +02:00
Gaetan Semet
0f07e7a27e Warn on missing dependencies
references #1077
2018-08-19 01:03:42 +02:00
Gaetan Semet
7b3f22ac0a guake --[f|g]color keep transparency
Signed-off-by: Gaetan Semet <gaetan@xeberon.net>
2018-08-19 01:03:42 +02:00
Gaetan Semet
66dc3f0a3e Minor pypi deployment fix on travis build 2018-07-16 20:44:50 +02:00
Gaetan Semet
cdea1fe906 Fix missing paths.py in sdist and wheel
fix #1328
fix #1349
2018-07-16 19:50:34 +02:00
Gaetan Semet
c8001877cd git-pull-rebase expects to be on master 2018-06-21 01:17:58 +02:00
Gaetan Semet
86995359b2 validate pip install guake
fix #1328

Signed-off-by: Gaetan Semet <gaetan@xeberon.net>
2018-06-21 01:10:32 +02:00