aboutsummaryrefslogblamecommitdiffstats
path: root/testing/poetry/APKBUILD
blob: 419531ee29dcafaf5344501d1b4e0a2b072f4012 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                             
                                                     
                                                    
              

            
                                                            
                               
             
                                                       
                                  

               
                       
                
                  
                     

                    
                             




                        
                   

                      
                   
         

                                                                                            

           
                                                                                    
 

                                                                                            


                                                                                   
 
 
                                                                                                                                                                  
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=poetry
pkgver=1.1.6
pkgrel=0
pkgdesc="Python3 dependency management and packaging system"
url="https://python-poetry.org"
license="MIT"
arch="noarch !ppc64le !mips64" # limited by py3-keyring
options="!check" # TODO: add tests
depends="
	python3
	py3-poetry-core
	py3-cleo
	py3-clikit
	py3-crashtest
	py3-requests
	py3-cachy
	py3-requests-toolbelt
	py3-cachecontrol
	py3-pkginfo
	py3-html5lib
	py3-shellingham
	py3-tomlkit
	py3-pexpect
	py3-packaging
	py3-virtualenv
	py3-keyring
	"
makedepends="py3-pip"
source="$pkgname-$pkgver.tar.gz::https://github.com/sdispater/poetry/archive/$pkgver.tar.gz"

package() {
	pip install --compile --no-deps --no-warn-script-location --root="$pkgdir" .

	# remove conflicts with files owned by py3-poetry-core (direct dependency of poetry)
	# see: https://github.com/python-poetry/poetry/issues/2800
	local sitedir=$(python3 -c "import site; print(site.getsitepackages()[0])")
	rm "$pkgdir/$sitedir"/poetry/__init__.py \
		"$pkgdir/$sitedir"/poetry/__pycache__/__init__.cpython-*.pyc
}

sha512sums="d1e2b6c7c67e3225689eb5be0169ef5a65c53322a905179fee2102133bfd8ea704539e839119d29dcd56128af9e83a41d040b466e049ea884a29ea103ce971ec  poetry-1.1.6.tar.gz"