Commit 835a5eaf authored by Thomas Goirand's avatar Thomas Goirand

Removed Python 2 support.

parent 756636cb
......@@ -5,6 +5,7 @@ migrate (0.12.0-1) experimental; urgency=medium
[ Thomas Goirand ]
* New upstream release.
* Removed Python 2 support.
-- Thomas Goirand <zigo@debian.org> Tue, 26 Mar 2019 16:10:12 +0100
......
......@@ -9,33 +9,14 @@ Build-Depends:
debhelper (>= 10),
dh-python,
openstack-pkg-tools,
python-all,
python-pbr,
python-setuptools,
python-sphinx,
python3-sphinx,
python3-all,
python3-pbr,
python3-setuptools,
Build-Depends-Indep:
default-mysql-client | mysql-client,
default-mysql-server | mysql-server,
python-coverage,
python-decorator,
python-feedparser,
python-fixtures,
python-ibm-db-sa,
python-mock,
python-mox,
python-mysqldb,
python-psycopg2,
python-scripttest,
python-six,
python-sphinxcontrib.issuetracker,
python-sqlalchemy,
python-sqlparse,
python-tempita,
python-testtools,
python-tz,
python3-coverage,
python3-decorator,
python3-feedparser,
python3-fixtures,
......@@ -52,42 +33,11 @@ Build-Depends-Indep:
python3-tz,
subunit,
testrepository,
Standards-Version: 4.1.0
Standards-Version: 4.3.0
Homepage: https://github.com/openstack/sqlalchemy-migrate
Vcs-Git: https://salsa.debian.org/openstack-team/libs/migrate.git
Vcs-Browser: https://salsa.debian.org/openstack-team/libs/migrate
Package: python-migrate
Architecture: all
Depends:
python-decorator,
python-pbr,
python-six,
python-sqlalchemy,
python-sqlparse,
python-tempita,
${misc:Depends},
${python:Depends},
${sphinxdoc:Depends},
Suggests:
python-migrate-doc,
Description: Database schema migration for SQLAlchemy - Python 2.7
Inspired by Ruby on Rails' migrations, migrate provides a way to deal
with database schema changes in SQLAlchemy projects.
.
SQLAlchemy-migrate is build on top of SQLAlchemy and provides a changeset
and a versioning API for database schemas as well as a script utilizing
these APIs. The database change sets are managed in a file based
repository allowing upgrades and downgrades of database schema versions.
The change sets may consist of Python code facilitating the changeset API
or SQL scripts.
.
SQLAlchemy-migrate has support for MySQL, PostgreSQL, SQLite and Oracle
databases. The support for Oracle is not as well tested as the support for
the other database systems.
.
This package provides the Python 2.7 module.
Package: python-migrate-doc
Section: doc
Architecture: all
......
#!/usr/bin/make -f
PYTHONS:=$(shell pyversions -vr)
PYTHON3S:=$(shell py3versions -vr)
UPSTREAM_GIT := https://github.com/openstack/sqlalchemy-migrate.git
include /usr/share/openstack-pkg-tools/pkgos.make
export OSLO_PACKAGE_VERSION=$(VERSION)
include /usr/share/python/python.mk
LAST_CHANGE = $(shell dpkg-parsechangelog -S Date)
BUILD_DATE = $(shell LC_ALL=C date -u "+%B %d, %Y" -d "$(LAST_CHANGE)")
%:
dh $@ --buildsystem=python_distutils --with python2,python3,sphinxdoc
dh $@ --buildsystem=python_distutils --with python3,sphinxdoc
override_dh_auto_clean:
rm -rf dist build
......@@ -23,23 +16,11 @@ override_dh_auto_clean:
cp debian/test_db.cfg $(CURDIR)
rm -rf .testrepository
override_dh_auto_install:
set -e ; for pyvers in $(PYTHONS); do \
python$$pyvers setup.py install --install-layout=deb \
--root $(CURDIR)/debian/python-migrate; \
done
set -e ; for pyvers in $(PYTHON3S); do \
python$$pyvers setup.py install --install-layout=deb \
--root $(CURDIR)/debian/python3-migrate; \
done
rm -f $(CURDIR)/debian/python*/usr/lib/python*/dist-packages/*.pth
mv $(CURDIR)/debian/python-migrate/usr/bin/migrate $(CURDIR)/debian/python-migrate/usr/bin/python2-migrate
mv $(CURDIR)/debian/python3-migrate/usr/bin/migrate $(CURDIR)/debian/python3-migrate/usr/bin/python3-migrate
mv $(CURDIR)/debian/python-migrate/usr/bin/migrate-repository $(CURDIR)/debian/python-migrate/usr/bin/python2-migrate-repository
mv $(CURDIR)/debian/python3-migrate/usr/bin/migrate-repository $(CURDIR)/debian/python3-migrate/usr/bin/python3-migrate-repository
override_dh_auto_build:
echo "Do nothing..."
override_dh_python3:
dh_python3 --shebang=/usr/bin/python3
override_dh_auto_install:
pkgos-dh_auto_install --no-py2
override_dh_sphinxdoc:
ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
......@@ -77,3 +58,6 @@ ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
rm -rf debian/bin
rm -rf sqlalchemy_migrate-$(VERSION).egg-info
endif
override_dh_python3:
dh_python3 --shebang=/usr/bin/python3
......@@ -50,7 +50,7 @@ echo "===> Doing the unit tests"
rm -rf .testrepository
testr init
TEMP_REZ=`mktemp -t`
PATH=$PATH:`pwd`/debian/bin PYTHONPATH=. testr run --subunit | tee $TEMP_REZ | subunit2pyunit || true
PATH=$PATH:`pwd`/debian/bin PYTHONPATH=. PYTHON=python3 testr run --subunit | tee $TEMP_REZ | subunit2pyunit || true
cat $TEMP_REZ | subunit-filter -s --no-passthrough | subunit-stats || true
rm -f $TEMP_REZ
testr slowest
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment