This commit is contained in:
saltedcoffii
2021-05-08 21:36:25 -04:00
parent ec2eaa91ad
commit 0357ee9c23
3 changed files with 72 additions and 0 deletions

22
packages/py3_attrs.rb Normal file
View File

@@ -0,0 +1,22 @@
require 'package'
class Py3_attrs < Package
description 'Attrs removes the need to implement object protocols in classes.'
homepage 'https://www.attrs.org/'
@_ver = '21.2.0'
version @_ver
license 'MIT'
compatibility 'all'
source_url 'https://github.com/python-attrs/attrs.git'
git_hashtag @_ver
depends_on 'py3_setuptools' => :build
def self.build
system "python3 setup.py build #{PY3_SETUP_BUILD_OPTIONS}"
end
def self.install
system "python3 setup.py install #{PY_SETUP_INSTALL_OPTIONS}"
end
end

22
packages/py3_iniconfig.rb Normal file
View File

@@ -0,0 +1,22 @@
require 'package'
class Py3_iniconfig < Package
description 'Iniconfig provides simple config-ini parsing.'
homepage 'https://github.com/pytest-dev/iniconfig/'
@_ver = '1.1.1'
version @_ver
license 'MIT'
compatibility 'all'
source_url 'https://github.com/pytest-dev/iniconfig.git'
git_hashtag 'v' + @_ver
depends_on 'py3_setuptools' => :build
def self.build
system "python3 setup.py build #{PY3_SETUP_BUILD_OPTIONS}"
end
def self.install
system "python3 setup.py install #{PY_SETUP_INSTALL_OPTIONS}"
end
end

28
packages/py3_pytest.rb Normal file
View File

@@ -0,0 +1,28 @@
require 'package'
class Py3_pytest < Package
description 'Pytest is simple powerful testing with Python.'
homepage 'https://pytest.org/'
@_ver = '6.2.4'
version @_ver
license 'MIT'
compatibility 'all'
source_url 'https://github.com/pytest-dev/pytest.git'
git_hashtag @_ver
depends_on 'py3_py'
depends_on 'py3_toml'
depends_on 'py3_packaging'
depends_on 'py3_attrs'
depends_on 'py3_pluggy'
depends_on 'py3_iniconfig'
depends_on 'py3_setuptools' => :build
def self.build
system "python3 setup.py build #{PY3_SETUP_BUILD_OPTIONS}"
end
def self.install
system "python3 setup.py install #{PY_SETUP_INSTALL_OPTIONS}"
end
end