Name | scargo JSON |
Version |
3.2.3
JSON |
| download |
home_page | None |
Summary | C/C++ package and software development life cycle manager inspired by RUST cargo idea. |
upload_time | 2025-07-25 12:24:26 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.8 |
license | None |
keywords |
scargo
package manager
c++
|
VCS |
 |
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Scargo
Scargo project was written by Spyrosoft team. Find more information at [spyro-soft.com](https://spyro-soft.com/career).
<p align="center">
<img src="https://raw.githubusercontent.com/Spyro-Soft/scargo/develop/docs/source/_static/spyrosoft_solutions_logo_color.png" alt="drawing" width="200"/>
</p>
# Overview
This is the documentation for scargo - a Python-based C/C++ package and software development life cycle manager inspired by RUST cargo idea.
scargo can:
- Create a new project (binary or library)
- Build the project
- Run static code analyzers
- Fix chosen problem automatically based on the checker analysis
- Run unit tests
- Generate documentation from the source code
- Work with the predefined docker environment depending on the chosen architecture
# Installation
## Installing scargo on Ubuntu 24.04+ (PEP 668-compliant systems)
Ubuntu 24.04 and newer follow PEP 668, which restricts the use of pip in the system Python environment to prevent accidental damage to system-managed packages.
To safely install scargo, use a virtual environment:
```
python3.12 -m venv .venv
source .venv/bin/activate
pip install --upgrade pip
pip install scargo==3.2.0
```
This ensures isolated and conflict-free usage of scargo without requiring elevated privileges or --break-system-packages.
Alternatively, you may use pipx for global CLI installation:
```
pipx install scargo==3.2.0
```
## Install on ubuntu <=22.04, windows or macos
Scargo is available on [pypi](https://pypi.org/project/scargo/), so you can install it with pip:
```pip install scargo```
If system does not find 'scargo' command after installing, add the installation directory to your env paths. On Ubuntu you can find installation directory by running:
```$ pip show "scargo"```
Then add to PATH e.g.:
```$ export PATH=~/.local/bin:${PATH}```
# Working with scargo
You can find all information on how to work with scargo on official documentation webpage: https://spyro-soft.github.io/scargo/index.html

# Project dependencies
## Working with docker (recommended)
- docker with docker-compose - https://docs.docker.com/engine/install/ubuntu/
- pip
- python3 - `sudo apt install python3.10-venv python3.10-distutils -y`
# Work environment
You can always change work environment between docker or native after project is created.
Just edit the scargo.toml file ([project] -> build-env = "docker" or build-env = "native").
For it may be needed dependencies manually which are included in `.devcontainer/Dockerfile`
Its recommended to work in virtual environment (venv) or conda environment e.g.:
- pip install virtualenv
- virtualenv -p /usr/bin/python3.10 venv
- source venv/bin/activate
## Working in docker
1) If you create a new project, run `docker compose run scargo-dev` to run project development image depending on chosen architecture. All dependencies should be already there.
Run scargo commands as you would do natively.
2) If you create a project with --docker flag (`scargo new <my_proj> --docker ...`) or with any docker flag, by default each scargo command will be triggered in docker.
## Working natively
1) Create a project with --no-docker flag (`scargo new <my_proj> --no-docker ...`).
## Create the requirements for docker env
From version 2.3.2 the scargo is install in docker but overload by docker compose volume data, to get present version from your native env.
During deployment the requirements file is created using following command
- `pip-compile --all-extras --output-file=ci/requirements.txt pyproject.toml`
- `pip-compile --output-file=scargo/file_generators/templates/docker/requirements.txt.j2 pyproject.toml`
to have all newest dependencies. This solutions allow as to have scargo install in docker for ci/cd and be able to use newest features without official releases.
## Testing custom scargo generated project locally
You can make changes in scargo and install it locally using ```pip install .``` command when you are in the main project folder.
To test the custom scargo version and have this custom scargo available also inside the docker (crucial for testing), in created project update docker-compose.yaml:
volumes:
- ..:/workspace
- /dev:/dev
- ~/.local/lib/python3.10/site-packages/scargo:/usr/local/lib/python3.8/dist-packages/scargo
Where ```~/.local/lib/python3.10/site-packages/scargo``` is a path to scargo on your local machine. It the following path is not working, find installation dir using ```pip show scargo```.
To keep this setup between ```scargo update``` commands, in scargo.toml file update also ```update-exclude``` as in following example:
update-exclude = [".devcontainer/docker-compose.yaml"]
# Known Issues
## MacOs with ARM processors
- On macOS devices with ARM processors (such as M1 and M3), USB device passthrough to Docker containers is not supported. While most development tasks can be performed within the Docker container, actions that involve direct interaction with USB devices, such as flashing firmware or monitoring hardware, must be executed natively on the host system.
## Windows
- On Windows devices, USB device passthrough is not supported in Docker containers when using Docker Desktop. To work around this limitation, you can use WSL2 (Windows Subsystem for Linux) or run a virtual machine with a Linux distribution like Ubuntu 22.04 to enable USB device access.
# Potential issues
## Docker permissions on Ubuntu
When using the `docker-compose` command, you may encounter permission errors due to insufficient permissions for accessing the Docker daemon socket. To resolve this issue, ensure that your user has the necessary permissions by adding your user to the `docker` group or granting appropriate access rights to the Docker daemon socket.
To add your user to the `docker` group, run the following command:
- `newgroup docker`
- `sudo usermod -aG docker $USER`
- `sudo systemctl restart docker`
# Contributing
See contributing guide on https://spyro-soft.github.io/scargo/contributing.html
Raw data
{
"_id": null,
"home_page": null,
"name": "scargo",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": "scargo, Package manager, C++",
"author": null,
"author_email": "\"Spyrosoft Solutions S.A.\" <aak@spyro-soft.com>, Andrzej Aksenczuk <andrzej.aksenczuk@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/fd/b5/82e8ec78d4f856c48afc56523d0d219402092d1e66bdb55c278e595b8b68/scargo-3.2.3.tar.gz",
"platform": null,
"description": "# Scargo\nScargo project was written by Spyrosoft team. Find more information at [spyro-soft.com](https://spyro-soft.com/career).\n<p align=\"center\">\n <img src=\"https://raw.githubusercontent.com/Spyro-Soft/scargo/develop/docs/source/_static/spyrosoft_solutions_logo_color.png\" alt=\"drawing\" width=\"200\"/>\n</p>\n\n# Overview\nThis is the documentation for scargo - a Python-based C/C++ package and software development life cycle manager inspired by RUST cargo idea.\n\nscargo can:\n\n- Create a new project (binary or library)\n- Build the project\n- Run static code analyzers\n- Fix chosen problem automatically based on the checker analysis\n- Run unit tests\n- Generate documentation from the source code\n- Work with the predefined docker environment depending on the chosen architecture\n\n# Installation\n## Installing scargo on Ubuntu 24.04+ (PEP 668-compliant systems)\n\nUbuntu 24.04 and newer follow PEP 668, which restricts the use of pip in the system Python environment to prevent accidental damage to system-managed packages.\n\nTo safely install scargo, use a virtual environment:\n\n```\npython3.12 -m venv .venv\nsource .venv/bin/activate\npip install --upgrade pip\npip install scargo==3.2.0\n```\n\nThis ensures isolated and conflict-free usage of scargo without requiring elevated privileges or --break-system-packages.\n\nAlternatively, you may use pipx for global CLI installation:\n\n```\npipx install scargo==3.2.0\n```\n## Install on ubuntu <=22.04, windows or macos\nScargo is available on [pypi](https://pypi.org/project/scargo/), so you can install it with pip:\n\n```pip install scargo```\n\nIf system does not find 'scargo' command after installing, add the installation directory to your env paths. On Ubuntu you can find installation directory by running:\n\n```$ pip show \"scargo\"```\n\nThen add to PATH e.g.:\n\n```$ export PATH=~/.local/bin:${PATH}```\n\n# Working with scargo\nYou can find all information on how to work with scargo on official documentation webpage: https://spyro-soft.github.io/scargo/index.html\n\n\n# Project dependencies\n## Working with docker (recommended)\n- docker with docker-compose - https://docs.docker.com/engine/install/ubuntu/\n- pip\n- python3 - `sudo apt install python3.10-venv python3.10-distutils -y`\n\n# Work environment\nYou can always change work environment between docker or native after project is created.\nJust edit the scargo.toml file ([project] -> build-env = \"docker\" or build-env = \"native\").\nFor it may be needed dependencies manually which are included in `.devcontainer/Dockerfile`\n\nIts recommended to work in virtual environment (venv) or conda environment e.g.:\n- pip install virtualenv\n- virtualenv -p /usr/bin/python3.10 venv\n- source venv/bin/activate\n\n\n## Working in docker\n1) If you create a new project, run `docker compose run scargo-dev` to run project development image depending on chosen architecture. All dependencies should be already there.\nRun scargo commands as you would do natively.\n\n2) If you create a project with --docker flag (`scargo new <my_proj> --docker ...`) or with any docker flag, by default each scargo command will be triggered in docker.\n\n## Working natively\n1) Create a project with --no-docker flag (`scargo new <my_proj> --no-docker ...`).\n\n## Create the requirements for docker env\nFrom version 2.3.2 the scargo is install in docker but overload by docker compose volume data, to get present version from your native env.\nDuring deployment the requirements file is created using following command\n\n - `pip-compile --all-extras --output-file=ci/requirements.txt pyproject.toml`\n - `pip-compile --output-file=scargo/file_generators/templates/docker/requirements.txt.j2 pyproject.toml`\n\nto have all newest dependencies. This solutions allow as to have scargo install in docker for ci/cd and be able to use newest features without official releases. \n\n## Testing custom scargo generated project locally\nYou can make changes in scargo and install it locally using ```pip install .``` command when you are in the main project folder.\nTo test the custom scargo version and have this custom scargo available also inside the docker (crucial for testing), in created project update docker-compose.yaml:\n\n volumes:\n\n - ..:/workspace\n - /dev:/dev\n - ~/.local/lib/python3.10/site-packages/scargo:/usr/local/lib/python3.8/dist-packages/scargo\n\nWhere ```~/.local/lib/python3.10/site-packages/scargo``` is a path to scargo on your local machine. It the following path is not working, find installation dir using ```pip show scargo```.\n\nTo keep this setup between ```scargo update``` commands, in scargo.toml file update also ```update-exclude``` as in following example:\n\n update-exclude = [\".devcontainer/docker-compose.yaml\"]\n\n# Known Issues\n\n## MacOs with ARM processors\n- On macOS devices with ARM processors (such as M1 and M3), USB device passthrough to Docker containers is not supported. While most development tasks can be performed within the Docker container, actions that involve direct interaction with USB devices, such as flashing firmware or monitoring hardware, must be executed natively on the host system.\n\n## Windows\n\n- On Windows devices, USB device passthrough is not supported in Docker containers when using Docker Desktop. To work around this limitation, you can use WSL2 (Windows Subsystem for Linux) or run a virtual machine with a Linux distribution like Ubuntu 22.04 to enable USB device access.\n\n# Potential issues\n\n## Docker permissions on Ubuntu\n\nWhen using the `docker-compose` command, you may encounter permission errors due to insufficient permissions for accessing the Docker daemon socket. To resolve this issue, ensure that your user has the necessary permissions by adding your user to the `docker` group or granting appropriate access rights to the Docker daemon socket.\nTo add your user to the `docker` group, run the following command:\n- `newgroup docker`\n- `sudo usermod -aG docker $USER`\n- `sudo systemctl restart docker`\n\n# Contributing\n\nSee contributing guide on https://spyro-soft.github.io/scargo/contributing.html\n",
"bugtrack_url": null,
"license": null,
"summary": "C/C++ package and software development life cycle manager inspired by RUST cargo idea.",
"version": "3.2.3",
"project_urls": {
"Documentation": "https://spyro-soft.github.io/scargo/index.html",
"Source": "https://github.com/spyro-soft/scargo",
"Tracker": "https://github.com/Spyro-Soft/scargo/issues"
},
"split_keywords": [
"scargo",
" package manager",
" c++"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "dc675ef1e778a78c370727850594f760c9a8dda460b8b7142d8818f6656aeef8",
"md5": "c94348256e764de2280f3e92cb3b1b8c",
"sha256": "72963d2cfe8115111df6f1dbb5111a6226127c4bdf38cd47f61c29e3c6481c1b"
},
"downloads": -1,
"filename": "scargo-3.2.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "c94348256e764de2280f3e92cb3b1b8c",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 116549,
"upload_time": "2025-07-25T12:24:25",
"upload_time_iso_8601": "2025-07-25T12:24:25.688176Z",
"url": "https://files.pythonhosted.org/packages/dc/67/5ef1e778a78c370727850594f760c9a8dda460b8b7142d8818f6656aeef8/scargo-3.2.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "fdb582e8ec78d4f856c48afc56523d0d219402092d1e66bdb55c278e595b8b68",
"md5": "ffe1c5a36691752553bc6feaba2e8b9e",
"sha256": "8d5f790f5873a5a118352509cb19809e5d54a0c38be62671471d80f0da2d12ed"
},
"downloads": -1,
"filename": "scargo-3.2.3.tar.gz",
"has_sig": false,
"md5_digest": "ffe1c5a36691752553bc6feaba2e8b9e",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 85100,
"upload_time": "2025-07-25T12:24:26",
"upload_time_iso_8601": "2025-07-25T12:24:26.868164Z",
"url": "https://files.pythonhosted.org/packages/fd/b5/82e8ec78d4f856c48afc56523d0d219402092d1e66bdb55c278e595b8b68/scargo-3.2.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-07-25 12:24:26",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "spyro-soft",
"github_project": "scargo",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "scargo"
}