-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Support installation using pip (#92)
- Loading branch information
Showing
12 changed files
with
150 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,52 @@ | ||
Setting up a Development Environment | ||
===================================== | ||
|
||
Firstly, clone the repository: | ||
This guide with walk you through process of setting up a Development Environment for working on Ignis. | ||
|
||
Source | ||
------ | ||
|
||
Firstly, you have to grab the Ignis sources: | ||
|
||
.. code-block:: bash | ||
# replace with the actual URL of your fork (if needed) | ||
git clone https://github.com/linkfrg/ignis.git | ||
cd ignis | ||
Then, run the script: | ||
Virtual Environment | ||
------------------- | ||
|
||
It's always a good practice to work within a Python virtual environment. | ||
|
||
.. code-block:: bash | ||
python -m venv venv | ||
source venv/bin/activate # for fish: . venv/bin/activate.fish | ||
Editable install | ||
---------------- | ||
|
||
Ignis is build with Meson and meson-python. | ||
In order to support editable installs, Meson-python, Meson, and Ninja should be installed in the virtual environment. | ||
|
||
.. code-block:: python | ||
pip install meson-python meson ninja | ||
Now, install Ignis in the local virtual environment with the ``--no-build-isolation`` and ``-e`` options for an editable install. | ||
|
||
.. code-block:: bash | ||
pip install --no-build-isolation -e . | ||
Additionally, you can install useful development tools by running: | ||
|
||
.. code-block:: bash | ||
bash tools/setup_devenv.sh | ||
It will create a Python virtual environment, | ||
install Ignis with its dependencies (including dev dependencies), and create a symbolic link to the Ignis source files. | ||
pip install -r dev.txt | ||
Done! | ||
|
||
Now you can edit the ``ignis`` directory at the root of the repository, | ||
You can now edit the ``ignis`` directory at the root of the repository, | ||
and the changes will be applied without the need to reinstall Ignis. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,4 @@ click>=8.1.7 | |
pycairo>=1.26.1 | ||
PyGObject>=3.48.2 | ||
requests>=2.32.3 | ||
setuptools>=72.1.0 | ||
loguru>=0.7.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
[wrap-git] | ||
url = https://gitlab.gnome.org/GNOME/libgnome-volume-control.git | ||
revision = master | ||
url = https://github.com/linkfrg/libgnome-volume-control-wheel.git | ||
revision = main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/usr/bin/env python3 | ||
"""Extract version number from __init__.py""" | ||
import os | ||
|
||
init_py = os.path.join(os.path.dirname(__file__), "../ignis/__init__.py") | ||
|
||
data = open(init_py).readlines() | ||
version_line = next(line for line in data if line.startswith("__version__ =")) | ||
|
||
version = version_line.strip().split(" = ")[1].replace('"', "").replace("'", "") | ||
|
||
print(version) |
This file was deleted.
Oops, something went wrong.