mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
crit: Use same version as criu
Name collision with an abandoned project named 'crit' in pypi causes pip to show crit (CRiu Image Tool) as outdated. This patch updates crit to use the same version and license as criu. Fixes #1878 Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
This commit is contained in:
parent
f522adec4a
commit
ff92731690
2 changed files with 16 additions and 1 deletions
1
Makefile
1
Makefile
|
|
@ -418,6 +418,7 @@ lint:
|
|||
flake8 --config=scripts/flake8.cfg test/others/rpc/config_file.py
|
||||
flake8 --config=scripts/flake8.cfg lib/py/images/pb2dict.py
|
||||
flake8 --config=scripts/flake8.cfg scripts/criu-ns
|
||||
flake8 --config=scripts/flake8.cfg scripts/crit-setup.py
|
||||
flake8 --config=scripts/flake8.cfg coredump/
|
||||
shellcheck --version
|
||||
shellcheck scripts/*.sh
|
||||
|
|
|
|||
|
|
@ -1,10 +1,24 @@
|
|||
import os
|
||||
from distutils.core import setup
|
||||
|
||||
criu_version = "0.0.1"
|
||||
env = os.environ
|
||||
|
||||
if 'CRIU_VERSION_MAJOR' in env and 'CRIU_VERSION_MINOR' in env:
|
||||
criu_version = '{}.{}'.format(
|
||||
env['CRIU_VERSION_MAJOR'],
|
||||
env['CRIU_VERSION_MINOR']
|
||||
)
|
||||
|
||||
if 'CRIU_VERSION_SUBLEVEL' in env and env['CRIU_VERSION_SUBLEVEL']:
|
||||
criu_version += '.' + env['CRIU_VERSION_SUBLEVEL']
|
||||
|
||||
setup(name="crit",
|
||||
version="0.0.1",
|
||||
version=criu_version,
|
||||
description="CRiu Image Tool",
|
||||
author="CRIU team",
|
||||
author_email="criu@openvz.org",
|
||||
license="GPLv2",
|
||||
url="https://github.com/checkpoint-restore/criu",
|
||||
package_dir={'pycriu': 'lib/py'},
|
||||
packages=["pycriu", "pycriu.images"],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue