Giter Site home page Giter Site logo

tools's Introduction

GLPI tools

A set of tools used in the core GLPI project and also from plugins.

Github Actions

Following Gihub Actions are available:

tools's People

Contributors

cconard96 avatar cedric-anne avatar derry43 avatar orthagh avatar trasher avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tools's Issues

Bad release package when plugin name contains "s"

See : https://github.com/pluginsGLPI/useditemsexport/issues/28

Official plugin name is useditemsexport.

When using the release tool, the "s" is removed from the name (in package name and content) :

$ ./vendor/bin/plugin-release
Do you want to build version 2.0.0? [Yes/no] Yes
Building glpi-useditemexport-2.0.0...
Archiving GIT tag 2.0.0
Adding vendor libraries

Bad archive package name :

$ ls -la dist/
total 16332
drwxrwxr-x 2 francois francois     4096 mai   11 08:45 .
drwxr-xr-x 9 francois francois     4096 mai   11 08:45 ..
-rw-rw-r-- 1 francois francois 16707592 mai   11 08:45 glpi-useditemexport-2.0.0.tar.bz2
-rw-rw-r-- 1 francois francois      833 mai   11 08:45 glpi-useditemexport-2.0.0.tar.bz2.asc

Bad archive package content :

$ tar -jtvf dist/glpi-useditemexport-2.0.0.tar.bz2 
drwxrwxr-x francois/francois 0 2018-05-11 08:45 useditemexport/
drwxrwxr-x francois/francois 0 2018-02-20 15:05 useditemexport/screenshots/
-rw-rw-r-- francois/francois 64560 2018-02-20 15:05 useditemexport/screenshots/fr_useditemsexport-tab.png
-rw-rw-r-- francois/francois   348 2018-02-20 15:05 useditemexport/README.md
-rw-rw-r-- francois/francois  3501 2018-02-20 15:05 useditemexport/setup.php
-rw-rw-r-- francois/francois 18046 2018-02-20 15:05 useditemexport/LICENSE
-rw-rw-r-- francois/francois   263 2018-02-20 15:05 useditemexport/composer.json
drwxrwxr-x francois/francois     0 2018-02-20 15:05 useditemexport/locales/
-rw-rw-r-- francois/francois  1465 2018-05-11 08:45 useditemexport/locales/en_GB.mo
-rw-rw-r-- francois/francois  2440 2018-02-20 15:05 useditemexport/locales/fr_FR.po
[...]

CSS/JS Minifying

Tools relies on Robo features to provide JS and CSS files minification. Recently, has bug has been discovered in GLPI core, (see glpi-project/glpi#7393); so we can no longer use it.

I did not find anything suitabe in already used languages, nowadays, all JS minifiers seems to be written in Javascrit or Java.

Windows 10 Python 3.[WinError 2] The system cannot find the file specified

OS: Windows 10
python version: 3.9.11
glpi-project/tools tag: 0.4.5
plugin-release version: 1.0.5 (not helpful)

Note: plugin-release script version has not changed since glpi-project/tools tag 0.1.7. The plugin-release script version is still 1.0.5, despite numerous modifications to fix issues with python version compatibility.

All occurrences of subprocess.Popen in tools/plugin-release require additional argument shell=True otherwise we get the following error below on Windows with python 3.9.x.

Adding vendor libraries
Traceback (most recent call last):
  File "C:\Users\105061136\Documents\GitHub\ldapcomputers\vendor\glpi-project\tools\tools\plugin-release", line 754, in <module>
    main()
  File "C:\Users\105061136\Documents\GitHub\ldapcomputers\vendor\glpi-project\tools\tools\plugin-release", line 751, in main
    _do_build(repo, buildver)
  File "C:\Users\105061136\Documents\GitHub\ldapcomputers\vendor\glpi-project\tools\tools\plugin-release", line 320, in _do_build
    prepare(plugin_name, archive)
  File "C:\Users\105061136\Documents\GitHub\ldapcomputers\vendor\glpi-project\tools\tools\plugin-release", line 417, in prepare
    p1 = subprocess.Popen(
  File "C:\Users\105061136\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 951, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "C:\Users\105061136\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 1420, in _execute_child
    hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.