Yoyo
Want a better cross platform way to install program ? Yoyo help you to do this thanks to little
.yoyofiles containing easy to made instructions
How does it work ?
- Just type
yoyo install PACKAGE_NAME - Yoyo will then resolve dependencies and install it
- Later you can also customize yoyo install files to create installations for your own software
Yoyo CLI
usage: yoyo.py [-h] [--local] [--force] [--nocache] {install,remove,update,list,details,verify} [package]
Modes:
-
install [package name]Install a package--localto install it locally--forceto install it even if already installed--nocacheto download it again and dont use cache
-
remove [package name]Remove a package -
listList all packages -
detailsList all packages with details (desc and req) -
updateUpdate list of packages -
verify {package name}Verify than all package (or one if specified) are installed
Instructions to write a yoyo file
Create a .yoyo file and store it in: ~/.yoyo/store/y_local/modules/
You will have to put in:
-
NAME (name)
Set a install name. Name used for
yoyo install.NAME anaconda -
AUTHOR (name)
Set a author name. Only use for information.
AUTHOR anaconda team -
INFO (informations)
Set a description. Only use for information.
INFO Anaconda is a package manager for python -
VERSION (version)
Set a version.
VERSION 3.5.2.0 -
REQ (req1, reqX,...)
Set requirements. Requirements are the name of other packages.
REQ python, curl
Then you will have to fill functions
[INSTALL]
Inside, write all methods to install the package.
[VERIFY]
Inside, write all methods to verify the package is well installed
Instruction for these functions:
-
LET (name, value)
Create a variable and assign it value
LET url https://repo.anaconda.com/archive/Anaconda3-5.2.0-Linux-x86_64.shTo access a variable just type
#name.
To concatenate them use#var1+#var2 -
SAVEDIR
Save the current dir in memory
SAVEDIR -
CHDIR (dir)
Change current dir to dir
CHDIR /tmp/anaconda -
RESTOREDIR
Restore current dir to the savedir one
RESTOREDIR -
DL (url, folder, name)
Download url and save it to folder/name
DL #url #INSTALLDIR __anaconda_install.tar.gz -
CMD (command)
Execute command
CMD sh #INSTALLDIR+__anaconda_install.tar.gzYou can set some options like
NOCHECK dont check the command return code. In normal time if return code != 0, install will be stopped. HIDE hide the command outputThese options must be placed before the command
CMD NOCHECK exit 1 CMD HIDE NOCHECK tree / -
PRINT (str)
Print a string
PRINT Installing anaconda... it can takes some time. Install to #INSTALLDIR -
You can have
iflike statements- LOCAL
- Windows
- MacOS
- Linux
And combine this with
- ELSE
- END
- LOCAL PRINT User want a local install - ELSE CMD sudo install - END - Windows PRINT Windows user CMD chocolatey install #choco_name - END
// Is use to comment a line
-
DEFAULT
Is use to use default command to verify or install
[VERIFY] DEFAULT -> This will call `which #NAME` on linux [INSTALL] DEFAULT -> This will call `sudo apt install #NAME` on linux
Global vars
There is some global vars you can access:
INSTALLDIRDirectory where binary are installed
~.yoyo/installed/DLDIRcache directory for downloaded files
~.yoyo/cache/dlEXTRACTDIRcache directory for extracted files
~.yoyo/cache/extractMAINDIRmain directory ofyoyoconf and cache
~.yoyo/installed
Example of Yoyo file
cat ~/.yoyo/store/y_local/modules/fastlane.yoyo
NAME fastlane
AUTHOR fastlane
INFO fastlane is an open source platform aimed at simplifying Android and iOS deployment. fastlane lets you automate every aspect of your development and release workflow.
VERSION 2.99.1
REQ gem, gem-dev
[INSTALL]
- MacOS
PRINT You can also install fastlane using: brew cask install fastlane
- END
CMD sudo gem install fastlane -NV
[VERIFY]
DEFAULT
cat ~/.yoyo/store/y_local/modules/anaconda.yoyo
NAME anaconda
AUTHOR anaconda team
INFO Anaconda package manager
VERSION 3.5.2.0
REQ python, curl
[INSTALL]
LET url https://repo.anaconda.com/archive/Anaconda3-5.2.0-Linux-x86_64.sh
LET name __anaconda3-5.2.0-Linux-x86_64.sh
PRINT Installing at #DLDIR+#name
SAVEDIR
DL #url #DLDIR #name
CMD sh #DLDIR+#name
RESTOREDIR
[VERIFY]
DEFAULT
TODO
Cross platform Update Package version Online stores Better handling of /lib etc... URGENT !!!!!! RENAME SRC TO YOYOSRC IN .local/lib/python3.6/site-package/ #TODO only load store needed !!!!!
Metadata
Release files for yoyopkg 2.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| yoyopkg-2.5.tar.gz | 18.3 kB | Without provenance | Details for yoyopkg-2.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| yoyopkg-2.5-py3-none-any.whl | Python 3 | none | any | Details for yoyopkg-2.5-py3-none-any.whl |
Total release size: 42.5 kB
Release files / yoyopkg-2.5.tar.gz
| Download URL | yoyopkg-2.5.tar.gz |
|---|---|
| Size | 18.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1f5e5aef796b9800653cebd2c3b066191afc6216cea94df9943a9ce40524453f
|
|
BLAKE2b-256 checksum How to use checksums |
7678225d0b6e56e46374cf3517531fea122e43f930e310874fd7788e31887935
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1
|
Release files / yoyopkg-2.5-py3-none-any.whl
| Download URL | yoyopkg-2.5-py3-none-any.whl |
|---|---|
| Size | 24.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e45476532aca84ba7976ebef9be12822612b35423cd9a7bef563e613cfe02f3f
|
|
BLAKE2b-256 checksum How to use checksums |
4a5700e4d4069fbbdf69b270d834ce3b5994a9109484d316921d370c66a307ad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1
|
Security for yoyopkg 2.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.