Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
aports
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
alpine
aports
Commits
09e16ee6
Unverified
Commit
09e16ee6
authored
5 years ago
by
prspkt
Browse files
Options
Downloads
Patches
Plain Diff
community/py-xlsxwriter: drop python2
parent
294ade23
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
community/py3-xlsxwriter/APKBUILD
+9
-27
9 additions, 27 deletions
community/py3-xlsxwriter/APKBUILD
with
9 additions
and
27 deletions
community/py-xlsxwriter/APKBUILD
→
community/py
3
-xlsxwriter/APKBUILD
+
9
−
27
View file @
09e16ee6
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname
=
py-xlsxwriter
pkgname
=
py
3
-xlsxwriter
_pkgname
=
XlsxWriter
pkgver
=
1.1.8
pkgrel
=
1
...
...
@@ -8,43 +8,25 @@ pkgdesc="A Python module for creating Excel XLSX files"
url
=
"https://github.com/jmcnamara/XlsxWriter"
arch
=
"noarch"
license
=
"BSD-2-Clause"
make
depends
=
"py
-setuptools py3-setuptools
"
subpackages
=
"py3-
${
pkgname
/py-/
}
:_py3 py2-
${
pkgname
/py-/
}
:_py2
"
depends
=
"py
thon3
"
makedepends
=
"py3-setuptools
"
source
=
"
$pkgname
-
$pkgver
.tar.gz::https://github.com/jmcnamara/XlsxWriter/archive/RELEASE_
${
pkgver
}
.tar.gz"
builddir
=
"
$srcdir
"
/
$_pkgname
-RELEASE_
$pkgver
replaces
=
py-xlsxwriter
# Backwards compatibility
provides
=
py-xlsxwriter
=
$pkgver
-r
$pkgrel
# Backwards compatibility
build
()
{
python2 setup.py build
python3 setup.py build
}
package
()
{
mkdir
-p
"
$pkgdir
"
}
check
()
{
python2
-m
unittest discover
python3
-m
unittest discover
}
_py
()
{
local
python
=
$1
pkgdesc
=
"
$pkgdesc
-
$python
"
depends
=
"
$depends
$python
"
install_if
=
"
$pkgname
=
$pkgver
-r
$pkgrel
$python
"
cd
"
$builddir
"
$python
setup.py
install
--prefix
=
/usr
--root
=
"
$subpkgdir
"
}
_py2
()
{
_py python2
replaces
=
"
$pkgname
"
}
_py3
()
{
_py python3
package
()
{
python3 setup.py
install
--prefix
=
/usr
--root
=
"
$pkgdir
"
}
sha512sums
=
"760bc14a9325edf0c1030220a2dd89d812bd08c61f07314f6b86a4efea191cdeebf433f39ad28e11776c60be471d1387d5c7f036205aa65f68734e9390f282ee py-xlsxwriter-1.1.8.tar.gz"
sha512sums
=
"760bc14a9325edf0c1030220a2dd89d812bd08c61f07314f6b86a4efea191cdeebf433f39ad28e11776c60be471d1387d5c7f036205aa65f68734e9390f282ee py3-xlsxwriter-1.1.8.tar.gz"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment