mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-08 23:18:10 -05:00
Python cleanups and updates. (#10447)
Signed-off-by: Satadru Pramanik <satadru@gmail.com>
This commit is contained in:
committed by
GitHub
parent
af1711dda6
commit
28a4d9867d
@@ -1,13 +1,13 @@
|
||||
/usr/local/include/python3.12/greenlet/greenlet.h
|
||||
/usr/local/lib/python3.12/site-packages/greenlet-3.0.3.dist-info/AUTHORS
|
||||
/usr/local/lib/python3.12/site-packages/greenlet-3.0.3.dist-info/INSTALLER
|
||||
/usr/local/lib/python3.12/site-packages/greenlet-3.0.3.dist-info/LICENSE
|
||||
/usr/local/lib/python3.12/site-packages/greenlet-3.0.3.dist-info/LICENSE.PSF
|
||||
/usr/local/lib/python3.12/site-packages/greenlet-3.0.3.dist-info/METADATA
|
||||
/usr/local/lib/python3.12/site-packages/greenlet-3.0.3.dist-info/RECORD
|
||||
/usr/local/lib/python3.12/site-packages/greenlet-3.0.3.dist-info/REQUESTED
|
||||
/usr/local/lib/python3.12/site-packages/greenlet-3.0.3.dist-info/WHEEL
|
||||
/usr/local/lib/python3.12/site-packages/greenlet-3.0.3.dist-info/top_level.txt
|
||||
/usr/local/lib/python3.12/site-packages/greenlet-3.1.0.dist-info/AUTHORS
|
||||
/usr/local/lib/python3.12/site-packages/greenlet-3.1.0.dist-info/INSTALLER
|
||||
/usr/local/lib/python3.12/site-packages/greenlet-3.1.0.dist-info/LICENSE
|
||||
/usr/local/lib/python3.12/site-packages/greenlet-3.1.0.dist-info/LICENSE.PSF
|
||||
/usr/local/lib/python3.12/site-packages/greenlet-3.1.0.dist-info/METADATA
|
||||
/usr/local/lib/python3.12/site-packages/greenlet-3.1.0.dist-info/RECORD
|
||||
/usr/local/lib/python3.12/site-packages/greenlet-3.1.0.dist-info/REQUESTED
|
||||
/usr/local/lib/python3.12/site-packages/greenlet-3.1.0.dist-info/WHEEL
|
||||
/usr/local/lib/python3.12/site-packages/greenlet-3.1.0.dist-info/top_level.txt
|
||||
/usr/local/lib/python3.12/site-packages/greenlet/TBrokenGreenlet.cpp
|
||||
/usr/local/lib/python3.12/site-packages/greenlet/TExceptionState.cpp
|
||||
/usr/local/lib/python3.12/site-packages/greenlet/TGreenlet.cpp
|
||||
@@ -57,6 +57,7 @@
|
||||
/usr/local/lib/python3.12/site-packages/greenlet/platform/switch_ppc_unix.h
|
||||
/usr/local/lib/python3.12/site-packages/greenlet/platform/switch_riscv_unix.h
|
||||
/usr/local/lib/python3.12/site-packages/greenlet/platform/switch_s390_unix.h
|
||||
/usr/local/lib/python3.12/site-packages/greenlet/platform/switch_sh_gcc.h
|
||||
/usr/local/lib/python3.12/site-packages/greenlet/platform/switch_sparc_sun_gcc.h
|
||||
/usr/local/lib/python3.12/site-packages/greenlet/platform/switch_x32_unix.h
|
||||
/usr/local/lib/python3.12/site-packages/greenlet/platform/switch_x64_masm.asm
|
||||
|
||||
@@ -139,15 +139,15 @@
|
||||
/usr/local/lib/python3.12/site-packages/_pytest/warning_types.py
|
||||
/usr/local/lib/python3.12/site-packages/_pytest/warnings.py
|
||||
/usr/local/lib/python3.12/site-packages/py.py
|
||||
/usr/local/lib/python3.12/site-packages/pytest-8.3.2.dist-info/AUTHORS
|
||||
/usr/local/lib/python3.12/site-packages/pytest-8.3.2.dist-info/INSTALLER
|
||||
/usr/local/lib/python3.12/site-packages/pytest-8.3.2.dist-info/LICENSE
|
||||
/usr/local/lib/python3.12/site-packages/pytest-8.3.2.dist-info/METADATA
|
||||
/usr/local/lib/python3.12/site-packages/pytest-8.3.2.dist-info/RECORD
|
||||
/usr/local/lib/python3.12/site-packages/pytest-8.3.2.dist-info/REQUESTED
|
||||
/usr/local/lib/python3.12/site-packages/pytest-8.3.2.dist-info/WHEEL
|
||||
/usr/local/lib/python3.12/site-packages/pytest-8.3.2.dist-info/entry_points.txt
|
||||
/usr/local/lib/python3.12/site-packages/pytest-8.3.2.dist-info/top_level.txt
|
||||
/usr/local/lib/python3.12/site-packages/pytest-8.3.3.dist-info/AUTHORS
|
||||
/usr/local/lib/python3.12/site-packages/pytest-8.3.3.dist-info/INSTALLER
|
||||
/usr/local/lib/python3.12/site-packages/pytest-8.3.3.dist-info/LICENSE
|
||||
/usr/local/lib/python3.12/site-packages/pytest-8.3.3.dist-info/METADATA
|
||||
/usr/local/lib/python3.12/site-packages/pytest-8.3.3.dist-info/RECORD
|
||||
/usr/local/lib/python3.12/site-packages/pytest-8.3.3.dist-info/REQUESTED
|
||||
/usr/local/lib/python3.12/site-packages/pytest-8.3.3.dist-info/WHEEL
|
||||
/usr/local/lib/python3.12/site-packages/pytest-8.3.3.dist-info/entry_points.txt
|
||||
/usr/local/lib/python3.12/site-packages/pytest-8.3.3.dist-info/top_level.txt
|
||||
/usr/local/lib/python3.12/site-packages/pytest/__init__.py
|
||||
/usr/local/lib/python3.12/site-packages/pytest/__main__.py
|
||||
/usr/local/lib/python3.12/site-packages/pytest/__pycache__/__init__.cpython-312.pyc
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
/usr/local/include/python3.12/greenlet/greenlet.h
|
||||
/usr/local/lib/python3.12/site-packages/greenlet-3.0.3.dist-info/AUTHORS
|
||||
/usr/local/lib/python3.12/site-packages/greenlet-3.0.3.dist-info/INSTALLER
|
||||
/usr/local/lib/python3.12/site-packages/greenlet-3.0.3.dist-info/LICENSE
|
||||
/usr/local/lib/python3.12/site-packages/greenlet-3.0.3.dist-info/LICENSE.PSF
|
||||
/usr/local/lib/python3.12/site-packages/greenlet-3.0.3.dist-info/METADATA
|
||||
/usr/local/lib/python3.12/site-packages/greenlet-3.0.3.dist-info/RECORD
|
||||
/usr/local/lib/python3.12/site-packages/greenlet-3.0.3.dist-info/REQUESTED
|
||||
/usr/local/lib/python3.12/site-packages/greenlet-3.0.3.dist-info/WHEEL
|
||||
/usr/local/lib/python3.12/site-packages/greenlet-3.0.3.dist-info/top_level.txt
|
||||
/usr/local/lib/python3.12/site-packages/greenlet-3.1.0.dist-info/AUTHORS
|
||||
/usr/local/lib/python3.12/site-packages/greenlet-3.1.0.dist-info/INSTALLER
|
||||
/usr/local/lib/python3.12/site-packages/greenlet-3.1.0.dist-info/LICENSE
|
||||
/usr/local/lib/python3.12/site-packages/greenlet-3.1.0.dist-info/LICENSE.PSF
|
||||
/usr/local/lib/python3.12/site-packages/greenlet-3.1.0.dist-info/METADATA
|
||||
/usr/local/lib/python3.12/site-packages/greenlet-3.1.0.dist-info/RECORD
|
||||
/usr/local/lib/python3.12/site-packages/greenlet-3.1.0.dist-info/REQUESTED
|
||||
/usr/local/lib/python3.12/site-packages/greenlet-3.1.0.dist-info/WHEEL
|
||||
/usr/local/lib/python3.12/site-packages/greenlet-3.1.0.dist-info/top_level.txt
|
||||
/usr/local/lib/python3.12/site-packages/greenlet/TBrokenGreenlet.cpp
|
||||
/usr/local/lib/python3.12/site-packages/greenlet/TExceptionState.cpp
|
||||
/usr/local/lib/python3.12/site-packages/greenlet/TGreenlet.cpp
|
||||
@@ -57,6 +57,7 @@
|
||||
/usr/local/lib/python3.12/site-packages/greenlet/platform/switch_ppc_unix.h
|
||||
/usr/local/lib/python3.12/site-packages/greenlet/platform/switch_riscv_unix.h
|
||||
/usr/local/lib/python3.12/site-packages/greenlet/platform/switch_s390_unix.h
|
||||
/usr/local/lib/python3.12/site-packages/greenlet/platform/switch_sh_gcc.h
|
||||
/usr/local/lib/python3.12/site-packages/greenlet/platform/switch_sparc_sun_gcc.h
|
||||
/usr/local/lib/python3.12/site-packages/greenlet/platform/switch_x32_unix.h
|
||||
/usr/local/lib/python3.12/site-packages/greenlet/platform/switch_x64_masm.asm
|
||||
|
||||
@@ -139,15 +139,15 @@
|
||||
/usr/local/lib/python3.12/site-packages/_pytest/warning_types.py
|
||||
/usr/local/lib/python3.12/site-packages/_pytest/warnings.py
|
||||
/usr/local/lib/python3.12/site-packages/py.py
|
||||
/usr/local/lib/python3.12/site-packages/pytest-8.3.2.dist-info/AUTHORS
|
||||
/usr/local/lib/python3.12/site-packages/pytest-8.3.2.dist-info/INSTALLER
|
||||
/usr/local/lib/python3.12/site-packages/pytest-8.3.2.dist-info/LICENSE
|
||||
/usr/local/lib/python3.12/site-packages/pytest-8.3.2.dist-info/METADATA
|
||||
/usr/local/lib/python3.12/site-packages/pytest-8.3.2.dist-info/RECORD
|
||||
/usr/local/lib/python3.12/site-packages/pytest-8.3.2.dist-info/REQUESTED
|
||||
/usr/local/lib/python3.12/site-packages/pytest-8.3.2.dist-info/WHEEL
|
||||
/usr/local/lib/python3.12/site-packages/pytest-8.3.2.dist-info/entry_points.txt
|
||||
/usr/local/lib/python3.12/site-packages/pytest-8.3.2.dist-info/top_level.txt
|
||||
/usr/local/lib/python3.12/site-packages/pytest-8.3.3.dist-info/AUTHORS
|
||||
/usr/local/lib/python3.12/site-packages/pytest-8.3.3.dist-info/INSTALLER
|
||||
/usr/local/lib/python3.12/site-packages/pytest-8.3.3.dist-info/LICENSE
|
||||
/usr/local/lib/python3.12/site-packages/pytest-8.3.3.dist-info/METADATA
|
||||
/usr/local/lib/python3.12/site-packages/pytest-8.3.3.dist-info/RECORD
|
||||
/usr/local/lib/python3.12/site-packages/pytest-8.3.3.dist-info/REQUESTED
|
||||
/usr/local/lib/python3.12/site-packages/pytest-8.3.3.dist-info/WHEEL
|
||||
/usr/local/lib/python3.12/site-packages/pytest-8.3.3.dist-info/entry_points.txt
|
||||
/usr/local/lib/python3.12/site-packages/pytest-8.3.3.dist-info/top_level.txt
|
||||
/usr/local/lib/python3.12/site-packages/pytest/__init__.py
|
||||
/usr/local/lib/python3.12/site-packages/pytest/__main__.py
|
||||
/usr/local/lib/python3.12/site-packages/pytest/__pycache__/__init__.cpython-312.pyc
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
/usr/local/include/python3.12/greenlet/greenlet.h
|
||||
/usr/local/lib64/python3.12/site-packages/greenlet-3.0.3.dist-info/AUTHORS
|
||||
/usr/local/lib64/python3.12/site-packages/greenlet-3.0.3.dist-info/INSTALLER
|
||||
/usr/local/lib64/python3.12/site-packages/greenlet-3.0.3.dist-info/LICENSE
|
||||
/usr/local/lib64/python3.12/site-packages/greenlet-3.0.3.dist-info/LICENSE.PSF
|
||||
/usr/local/lib64/python3.12/site-packages/greenlet-3.0.3.dist-info/METADATA
|
||||
/usr/local/lib64/python3.12/site-packages/greenlet-3.0.3.dist-info/RECORD
|
||||
/usr/local/lib64/python3.12/site-packages/greenlet-3.0.3.dist-info/REQUESTED
|
||||
/usr/local/lib64/python3.12/site-packages/greenlet-3.0.3.dist-info/WHEEL
|
||||
/usr/local/lib64/python3.12/site-packages/greenlet-3.0.3.dist-info/top_level.txt
|
||||
/usr/local/lib64/python3.12/site-packages/greenlet-3.1.0.dist-info/AUTHORS
|
||||
/usr/local/lib64/python3.12/site-packages/greenlet-3.1.0.dist-info/INSTALLER
|
||||
/usr/local/lib64/python3.12/site-packages/greenlet-3.1.0.dist-info/LICENSE
|
||||
/usr/local/lib64/python3.12/site-packages/greenlet-3.1.0.dist-info/LICENSE.PSF
|
||||
/usr/local/lib64/python3.12/site-packages/greenlet-3.1.0.dist-info/METADATA
|
||||
/usr/local/lib64/python3.12/site-packages/greenlet-3.1.0.dist-info/RECORD
|
||||
/usr/local/lib64/python3.12/site-packages/greenlet-3.1.0.dist-info/REQUESTED
|
||||
/usr/local/lib64/python3.12/site-packages/greenlet-3.1.0.dist-info/WHEEL
|
||||
/usr/local/lib64/python3.12/site-packages/greenlet-3.1.0.dist-info/top_level.txt
|
||||
/usr/local/lib64/python3.12/site-packages/greenlet/TBrokenGreenlet.cpp
|
||||
/usr/local/lib64/python3.12/site-packages/greenlet/TExceptionState.cpp
|
||||
/usr/local/lib64/python3.12/site-packages/greenlet/TGreenlet.cpp
|
||||
@@ -57,6 +57,7 @@
|
||||
/usr/local/lib64/python3.12/site-packages/greenlet/platform/switch_ppc_unix.h
|
||||
/usr/local/lib64/python3.12/site-packages/greenlet/platform/switch_riscv_unix.h
|
||||
/usr/local/lib64/python3.12/site-packages/greenlet/platform/switch_s390_unix.h
|
||||
/usr/local/lib64/python3.12/site-packages/greenlet/platform/switch_sh_gcc.h
|
||||
/usr/local/lib64/python3.12/site-packages/greenlet/platform/switch_sparc_sun_gcc.h
|
||||
/usr/local/lib64/python3.12/site-packages/greenlet/platform/switch_x32_unix.h
|
||||
/usr/local/lib64/python3.12/site-packages/greenlet/platform/switch_x64_masm.asm
|
||||
|
||||
@@ -139,15 +139,15 @@
|
||||
/usr/local/lib/python3.12/site-packages/_pytest/warning_types.py
|
||||
/usr/local/lib/python3.12/site-packages/_pytest/warnings.py
|
||||
/usr/local/lib/python3.12/site-packages/py.py
|
||||
/usr/local/lib/python3.12/site-packages/pytest-8.3.2.dist-info/AUTHORS
|
||||
/usr/local/lib/python3.12/site-packages/pytest-8.3.2.dist-info/INSTALLER
|
||||
/usr/local/lib/python3.12/site-packages/pytest-8.3.2.dist-info/LICENSE
|
||||
/usr/local/lib/python3.12/site-packages/pytest-8.3.2.dist-info/METADATA
|
||||
/usr/local/lib/python3.12/site-packages/pytest-8.3.2.dist-info/RECORD
|
||||
/usr/local/lib/python3.12/site-packages/pytest-8.3.2.dist-info/REQUESTED
|
||||
/usr/local/lib/python3.12/site-packages/pytest-8.3.2.dist-info/WHEEL
|
||||
/usr/local/lib/python3.12/site-packages/pytest-8.3.2.dist-info/entry_points.txt
|
||||
/usr/local/lib/python3.12/site-packages/pytest-8.3.2.dist-info/top_level.txt
|
||||
/usr/local/lib/python3.12/site-packages/pytest-8.3.3.dist-info/AUTHORS
|
||||
/usr/local/lib/python3.12/site-packages/pytest-8.3.3.dist-info/INSTALLER
|
||||
/usr/local/lib/python3.12/site-packages/pytest-8.3.3.dist-info/LICENSE
|
||||
/usr/local/lib/python3.12/site-packages/pytest-8.3.3.dist-info/METADATA
|
||||
/usr/local/lib/python3.12/site-packages/pytest-8.3.3.dist-info/RECORD
|
||||
/usr/local/lib/python3.12/site-packages/pytest-8.3.3.dist-info/REQUESTED
|
||||
/usr/local/lib/python3.12/site-packages/pytest-8.3.3.dist-info/WHEEL
|
||||
/usr/local/lib/python3.12/site-packages/pytest-8.3.3.dist-info/entry_points.txt
|
||||
/usr/local/lib/python3.12/site-packages/pytest-8.3.3.dist-info/top_level.txt
|
||||
/usr/local/lib/python3.12/site-packages/pytest/__init__.py
|
||||
/usr/local/lib/python3.12/site-packages/pytest/__main__.py
|
||||
/usr/local/lib/python3.12/site-packages/pytest/__pycache__/__init__.cpython-312.pyc
|
||||
|
||||
@@ -3,7 +3,7 @@ require 'package'
|
||||
class Core < Package
|
||||
description 'Core Chromebrew Packages.'
|
||||
homepage 'https://github.com/chromebrew/chromebrew'
|
||||
version '2.7'
|
||||
version '2.8'
|
||||
license 'GPL-3+'
|
||||
compatibility 'all'
|
||||
|
||||
@@ -82,6 +82,8 @@ class Core < Package
|
||||
depends_on 'ruby_concurrent_ruby'
|
||||
# For use in ruby prompts.
|
||||
depends_on 'ruby_highline'
|
||||
# crew check -V breaks without this.
|
||||
depends_on 'ruby_ruby_libversion'
|
||||
# This contains the debugger config files.
|
||||
depends_on 'ruby_pry'
|
||||
depends_on 'slang'
|
||||
|
||||
@@ -21,8 +21,6 @@ class Py3_devedeng < Python
|
||||
depends_on 'py3_pygobject'
|
||||
depends_on 'gtk3'
|
||||
|
||||
no_source_build
|
||||
|
||||
python_install_extras do
|
||||
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/bin"
|
||||
FileUtils.ln_s "#{CREW_PREFIX}/bin/devede_ng.py", "#{CREW_DEST_PREFIX}/bin/devede"
|
||||
|
||||
@@ -3,17 +3,17 @@ require 'buildsystems/pip'
|
||||
class Py3_greenlet < Pip
|
||||
description 'Greenlet provides lightweight in-process concurrent programming.'
|
||||
homepage 'https://greenlet.readthedocs.io/'
|
||||
version '3.0.3-py3.12'
|
||||
version '3.1.0-py3.12'
|
||||
license 'MIT'
|
||||
compatibility 'all'
|
||||
source_url 'SKIP'
|
||||
binary_compression 'tar.zst'
|
||||
|
||||
binary_sha256({
|
||||
aarch64: '121f47fd65b5c2848a8d76e2a6e3b9eedd3984edce665982b02508da5e981433',
|
||||
armv7l: '121f47fd65b5c2848a8d76e2a6e3b9eedd3984edce665982b02508da5e981433',
|
||||
i686: 'f820171ae93ed40ac6ed144dec475f074fa5db0517709141a749f485be147d2f',
|
||||
x86_64: '89d562600c573954e61e41536f6291916f0a4b5dd31b06fed0991bc51a16c3e4'
|
||||
aarch64: 'bbbbe875271df36fb53cea0ee1d73a25b96d62b851c919e0812fe8e11adaabdc',
|
||||
armv7l: 'bbbbe875271df36fb53cea0ee1d73a25b96d62b851c919e0812fe8e11adaabdc',
|
||||
i686: '55128e14f3bf4692025639fd9496c35e35486cdc1fd0e1e59471c3a55c52dd75',
|
||||
x86_64: '3350e5a95c18998e099bff279a8af3985d05fd7f405b270825bdb75c70d1f277'
|
||||
})
|
||||
|
||||
depends_on 'gcc_lib' # R
|
||||
|
||||
@@ -3,17 +3,17 @@ require 'buildsystems/pip'
|
||||
class Py3_pytest < Pip
|
||||
description 'Pytest is simple powerful testing with Python.'
|
||||
homepage 'https://pytest.org/'
|
||||
version '8.3.2-py3.12'
|
||||
version '8.3.3-py3.12'
|
||||
license 'MIT'
|
||||
compatibility 'all'
|
||||
source_url 'SKIP'
|
||||
binary_compression 'tar.zst'
|
||||
|
||||
binary_sha256({
|
||||
aarch64: 'b7fa4f12353a410ead3080ceb0cb793a49db3d7a82c6773b961ddbfcdc5961b3',
|
||||
armv7l: 'b7fa4f12353a410ead3080ceb0cb793a49db3d7a82c6773b961ddbfcdc5961b3',
|
||||
i686: 'ca93a4515d6354566fe5d9c18e375a093d64da218deebd106c6fa8f9cde172ae',
|
||||
x86_64: 'ab8baec5f7694de8cdb61f745bfddbffc49f1c48bc9832356d584a1a05ca128a'
|
||||
aarch64: 'e90653cbfd8934bedb4655355de94f9df049d758049ca7001f76385ce79fb5af',
|
||||
armv7l: 'e90653cbfd8934bedb4655355de94f9df049d758049ca7001f76385ce79fb5af',
|
||||
i686: 'd21d1cc1dddda071b61e9ce5aa9515e44a3c39220f2c44d64b38adbbbe1b9859',
|
||||
x86_64: '0b610d1b2fcb8fbb0b2cc1d048657f0e6bf51133c53926e1174ac7f5bdcf3507'
|
||||
})
|
||||
|
||||
depends_on 'py3_py'
|
||||
|
||||
12
packages/ruby_ruby_libversion.rb
Normal file
12
packages/ruby_ruby_libversion.rb
Normal file
@@ -0,0 +1,12 @@
|
||||
require 'buildsystems/ruby'
|
||||
|
||||
class Ruby_ruby_libversion < RUBY
|
||||
description 'Ruby bindings for libversion.'
|
||||
homepage 'https://github.com/Zopolis4/ruby-libversion'
|
||||
version '1.0.0-ruby-3.3'
|
||||
license 'MIT'
|
||||
compatibility 'all'
|
||||
source_url 'SKIP'
|
||||
|
||||
no_compile_needed
|
||||
end
|
||||
@@ -3,7 +3,7 @@ require 'buildsystems/pip'
|
||||
class Sqlmap < Pip
|
||||
description 'sqlmap is an open source penetration testing tool that automates the process of detecting and exploiting SQL injection flaws and taking over of database servers.'
|
||||
homepage 'https://sqlmap.org/'
|
||||
version '1.8.8-py3.12'
|
||||
version '1.8.9-py3.12'
|
||||
license 'GPL-2'
|
||||
compatibility 'all'
|
||||
source_url 'SKIP'
|
||||
|
||||
@@ -150,6 +150,7 @@ ruby_highline
|
||||
ruby_mdl
|
||||
ruby_pry
|
||||
ruby_rubocop
|
||||
ruby_ruby_libversion
|
||||
ruby_yaml_lint
|
||||
samurai
|
||||
sed
|
||||
|
||||
@@ -7906,6 +7906,11 @@ url: https://github.com/rubocop/rubocop/releases
|
||||
activity: medium
|
||||
---
|
||||
kind: url
|
||||
name: ruby_ruby_libversion
|
||||
url: https://github.com/Zopolis4/ruby-libversion/tags
|
||||
activity: medium
|
||||
---
|
||||
kind: url
|
||||
name: ruby_webrick
|
||||
url: https://github.com/ruby/webrick/releases
|
||||
activity: medium
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env ruby
|
||||
# update_python_pip_packages version 1.0 (for Chromebrew)
|
||||
# update_python_pip_packages version 1.1 (for Chromebrew)
|
||||
# Author: Satadru Pramanik (satmandu) satadru at gmail dot com
|
||||
# Usage in packages dir: ../tools/update_python_pip_packages.rb
|
||||
require 'parallel'
|
||||
@@ -9,7 +9,7 @@ py3_files = Dir['py3_*.rb']
|
||||
pip_files = `grep -l "^require 'buildsystems/pip'" *.rb`.chomp.split
|
||||
relevant_pip_files = (py3_files + pip_files).uniq!
|
||||
Parallel.map(relevant_pip_files) do |package|
|
||||
pip_name = package.gsub('.rb', '').gsub('py3_', '').gsub('_', '-')
|
||||
pip_name = package.gsub('.rb', '').sub('py3_', '').gsub('_', '-')
|
||||
pip_version = `python -m pip index versions #{pip_name} 2>/dev/null | head -n 1 | awk '{print $2}'`.chomp.delete('()')
|
||||
puts "#{pip_name} version is #{pip_version}"
|
||||
if pip_version.empty?
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
#!/usr/bin/env ruby
|
||||
# update_ruby_gem_packages version 1.1 (for Chromebrew)
|
||||
# update_ruby_gem_packages version 1.2 (for Chromebrew)
|
||||
# Author: Satadru Pramanik (satmandu) satadru at gmail dot com
|
||||
# Usage in packages dir: ../tools/update_ruby_gem_packages.rb
|
||||
require 'parallel'
|
||||
|
||||
Parallel.map(Dir['ruby_*.rb']) do |package|
|
||||
gem_name = package.gsub('.rb', '').gsub('ruby_', '').gsub('_', '-')
|
||||
gem_name = package.gsub('.rb', '').sub('ruby_', '').gsub('_', '-')
|
||||
gem_version = Gem.latest_spec_for(gem_name).version.to_s
|
||||
puts "Updating #{gem_name} package file #{package} to #{gem_version}"
|
||||
system "sed -i \"s,^\ \ version\ .*,\ \ version '#{gem_version}-ruby-#{RUBY_VERSION.slice(/(?:.*(?=\.))/)}',\" #{package}"
|
||||
|
||||
Reference in New Issue
Block a user