mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-10 07:57:59 -05:00
* add py3_ruff to py3_codespell * Add py3_ruff, modify pip logic to exclude extra packages * add py3_cffi binaries
22 lines
541 B
Ruby
22 lines
541 B
Ruby
require 'buildsystems/pip'
|
|
|
|
class Py3_codespell < Pip
|
|
description 'Fix common misspellings in text files.'
|
|
homepage 'https://github.com/codespell-project/codespell'
|
|
@_ver = '2.2.6'
|
|
version "#{@_ver}-py3.12"
|
|
license 'GPL-2.0'
|
|
compatibility 'all'
|
|
source_url 'SKIP'
|
|
|
|
depends_on 'python3'
|
|
|
|
no_compile_needed
|
|
|
|
def self.remove
|
|
@python_ver = "python#{`python3 -V`[/\d.\d+/]}"
|
|
# Remove data, __pycache__ and tests directories.
|
|
FileUtils.rm_rf "#{CREW_PREFIX}/lib/#{@python_ver}/site-packages/codespell_lib"
|
|
end
|
|
end
|