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
6b13bb62
Unverified
Commit
6b13bb62
authored
5 years ago
by
prspkt
Browse files
Options
Downloads
Patches
Plain Diff
community/py-sqlalchemy-migrate: drop python2
parent
3fa218c2
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
community/py3-sqlalchemy-migrate/APKBUILD
+34
-0
34 additions, 0 deletions
community/py3-sqlalchemy-migrate/APKBUILD
with
34 additions
and
0 deletions
community/py-sqlalchemy-migrate/APKBUILD
→
community/py
3
-sqlalchemy-migrate/APKBUILD
+
34
−
0
View file @
6b13bb62
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname
=
py-sqlalchemy-migrate
pkgname
=
py
3
-sqlalchemy-migrate
_pkgname
=
sqlalchemy-migrate
_pkgname
=
sqlalchemy-migrate
pkgver
=
0.12.0
pkgver
=
0.12.0
pkgrel
=
2
pkgrel
=
3
pkgdesc
=
"SQLAlchemy Schema Migration Tools"
pkgdesc
=
"SQLAlchemy Schema Migration Tools"
url
=
"https://github.com/openstack/sqlalchemy-migrate"
url
=
"https://github.com/openstack/sqlalchemy-migrate"
arch
=
"noarch"
arch
=
"noarch"
license
=
"MIT"
license
=
"MIT"
depends
=
"py3-
${
pkgname
#py-
}
py-pbr py-sqlalchemy py-decorator py-six py-sqlparse py-tempita"
depends
=
"py3-decorator py3-pbr py3-six py3-sqlalchemy py3-sqlparse py3-tempita"
makedepends
=
"python2-dev py-setuptools python3-dev"
makedepends
=
"py3-setuptools"
subpackages
=
"py2-
${
pkgname
#py-
}
:_py2 py3-
${
pkgname
#py-
}
:_py3"
source
=
"
$pkgname
-
$pkgver
.tar.gz::https://github.com/openstack/
$_pkgname
/archive/
$pkgver
.tar.gz"
source
=
"
$pkgname
-
$pkgver
.tar.gz::https://github.com/openstack/
$_pkgname
/archive/
$pkgver
.tar.gz"
builddir
=
"
$srcdir
/
$_pkgname
-
$pkgver
"
builddir
=
"
$srcdir
/
$_pkgname
-
$pkgver
"
replaces
=
py-sqlalchemy-migrate
# Backwards compatibility
provides
=
py-sqlalchemy-migrate
=
$pkgver
-r
$pkgrel
# Backwards compatibility
export
PBR_VERSION
=
"
$pkgver
"
build
()
{
build
()
{
cd
"
$builddir
"
python2 setup.py build
python3 setup.py build
python3 setup.py build
}
}
check
()
{
check
()
{
cd
"
$builddir
"
python2 setup.py check
python3 setup.py check
python3 setup.py check
}
}
package
()
{
package
()
{
mkdir
-p
"
$pkgdir
"
/usr/bin
python3 setup.py
install
--prefix
=
/usr
--root
=
"
$pkgdir
"
rm
-rf
"
$pkgdir
"
/usr/lib/python
*
/site-packages/migrate/tests
local
name
;
for
name
in
migrate migrate-repository
;
do
ln
-s
sqlalchemy-
$name
-3
"
$pkgdir
"
/usr/bin/sqlalchemy-
$name
done
}
_py2
()
{
replaces
=
"
$pkgname
"
depends
=
"
${
depends
//py-/py2-
}
"
_py python2
}
_py3
()
{
depends
=
"
${
depends
//py-/py3-
}
"
_py python3
}
_py
()
{
local
python
=
"
$1
"
local
pyver
=
"
${
1
:6:1
}
"
pkgdesc
=
"
$pkgdesc
(for
$python
)"
depends
=
"
$depends
$python
"
install_if
=
"
$pkgname
=
$pkgver
-r
$pkgrel
$python
"
cd
"
$builddir
"
$python
setup.py
install
--prefix
=
/usr
--root
=
"
$subpkgdir
"
cd
"
$subpkgdir
"
/usr/bin
local
file
;
for
file
in
*
;
do
mv
"
$file
"
"sqlalchemy-
$file
-
$pyver
"
||
return
1
done
rm
-Rf
"
$subpkgdir
"
/usr/lib/
$python
*
/site-packages/migrate/tests
}
}
sha512sums
=
"95f3a705bd119ea27b17607c2adfd5f88b979640fe5ed1b309d3aea369b63feb205491e3a8a749a48d62c1b5430aa91658b82faf35f26bd8d95b6c15b2a69fde py-sqlalchemy-migrate-0.12.0.tar.gz"
sha512sums
=
"95f3a705bd119ea27b17607c2adfd5f88b979640fe5ed1b309d3aea369b63feb205491e3a8a749a48d62c1b5430aa91658b82faf35f26bd8d95b6c15b2a69fde py
3
-sqlalchemy-migrate-0.12.0.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