mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
pytz, bump version (#8790)
This commit is contained in:
@@ -6,9 +6,9 @@ HOMEPAGE="https://pythonhosted.org/pytz/
|
|||||||
https://pypi.org/project/pytz/"
|
https://pypi.org/project/pytz/"
|
||||||
COPYRIGHT="2003-2019 Stuart Bishop"
|
COPYRIGHT="2003-2019 Stuart Bishop"
|
||||||
LICENSE="MIT"
|
LICENSE="MIT"
|
||||||
REVISION="2"
|
REVISION="1"
|
||||||
SOURCE_URI="https://pypi.io/packages/source/${portName:0:1}/$portName/$portName-$portVersion.tar.gz"
|
SOURCE_URI="https://pypi.io/packages/source/${portName:0:1}/$portName/$portName-$portVersion.tar.gz"
|
||||||
CHECKSUM_SHA256="cea221417204f2d1a2aa03ddae3e867921971d0d76f14d87abb4414415bbdcf5"
|
CHECKSUM_SHA256="1d8ce29db189191fb55338ee6d0387d82ab59f3d00eac103412d64e0ebd0c588"
|
||||||
|
|
||||||
ARCHITECTURES="any"
|
ARCHITECTURES="any"
|
||||||
|
|
||||||
@@ -25,6 +25,7 @@ BUILD_REQUIRES="
|
|||||||
|
|
||||||
PYTHON_PACKAGES=(python38 python39 python310)
|
PYTHON_PACKAGES=(python38 python39 python310)
|
||||||
PYTHON_VERSIONS=(3.8 3.9 3.10)
|
PYTHON_VERSIONS=(3.8 3.9 3.10)
|
||||||
|
defaultTestVersion="python39"
|
||||||
for i in "${!PYTHON_PACKAGES[@]}"; do
|
for i in "${!PYTHON_PACKAGES[@]}"; do
|
||||||
pythonPackage=${PYTHON_PACKAGES[i]}
|
pythonPackage=${PYTHON_PACKAGES[i]}
|
||||||
pythonVersion=${PYTHON_VERSIONS[$i]}
|
pythonVersion=${PYTHON_VERSIONS[$i]}
|
||||||
@@ -36,64 +37,49 @@ for i in "${!PYTHON_PACKAGES[@]}"; do
|
|||||||
haiku
|
haiku
|
||||||
cmd:python$pythonVersion
|
cmd:python$pythonVersion
|
||||||
\""
|
\""
|
||||||
BUILD_REQUIRES="$BUILD_REQUIRES
|
BUILD_REQUIRES+="
|
||||||
setuptools_$pythonPackage"
|
setuptools_$pythonPackage
|
||||||
BUILD_PREREQUIRES="$BUILD_PREREQUIRES
|
"
|
||||||
cmd:python$pythonVersion"
|
BUILD_PREREQUIRES+="
|
||||||
|
cmd:python$pythonVersion
|
||||||
|
"
|
||||||
done
|
done
|
||||||
|
|
||||||
BUILD()
|
TEST_REQUIRES="
|
||||||
{
|
pytz_$defaultTestVersion
|
||||||
for i in "${!PYTHON_PACKAGES[@]}"; do
|
cmd:pytest
|
||||||
pythonPackage=${PYTHON_PACKAGES[i]}
|
"
|
||||||
pythonVersion=${PYTHON_VERSIONS[$i]}
|
|
||||||
|
|
||||||
rm -rf "$sourceDir"-$pythonPackage
|
|
||||||
cp -a "$sourceDir" "$sourceDir"-$pythonPackage
|
|
||||||
cd "$sourceDir"-$pythonPackage
|
|
||||||
|
|
||||||
python=python$pythonVersion
|
|
||||||
$python setup.py build
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
INSTALL()
|
INSTALL()
|
||||||
{
|
{
|
||||||
myLicensesDir=$dataDir/licenses/packages/p/pytz
|
myLicensesDir=$dataDir/licenses/packages/pytz
|
||||||
|
|
||||||
for i in "${!PYTHON_PACKAGES[@]}"; do
|
for i in "${!PYTHON_PACKAGES[@]}"; do
|
||||||
pythonPackage=${PYTHON_PACKAGES[i]}
|
pythonPackage=${PYTHON_PACKAGES[i]}
|
||||||
pythonVersion=${PYTHON_VERSIONS[$i]}
|
pythonVersion=${PYTHON_VERSIONS[$i]}
|
||||||
|
|
||||||
cd "$sourceDir"-$pythonPackage
|
|
||||||
|
|
||||||
python=python$pythonVersion
|
python=python$pythonVersion
|
||||||
installLocation=$prefix/lib/$python/vendor-packages/
|
installLocation=$prefix/lib/$python/vendor-packages/
|
||||||
export PYTHONPATH=$installLocation
|
export PYTHONPATH=$installLocation:$PYTHONPATH
|
||||||
mkdir -p "$installLocation"
|
|
||||||
$python setup.py install --root=/ --prefix="$prefix"
|
|
||||||
|
|
||||||
install -m 755 -d "$myLicensesDir"
|
mkdir -p $installLocation
|
||||||
|
rm -rf build
|
||||||
|
|
||||||
|
$python setup.py build install \
|
||||||
|
--root=/ --prefix=$prefix
|
||||||
|
|
||||||
|
install -m 755 -d "$myLicensesDir" "$docDir"
|
||||||
install -m 644 -t "$myLicensesDir" LICENSE.txt
|
install -m 644 -t "$myLicensesDir" LICENSE.txt
|
||||||
|
install -m 644 -t "$docDir" README.rst
|
||||||
|
|
||||||
packageEntries $pythonPackage \
|
packageEntries $pythonPackage \
|
||||||
"$dataDir" \
|
"$dataDir" \
|
||||||
|
"$docDir" \
|
||||||
"$prefix"/lib/$python
|
"$prefix"/lib/$python
|
||||||
done
|
done
|
||||||
|
|
||||||
install -m 755 -d "$myLicensesDir" "$docDir"
|
|
||||||
install -m 644 -t "$myLicensesDir" LICENSE.txt
|
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST()
|
TEST()
|
||||||
{
|
{
|
||||||
for i in "${!PYTHON_PACKAGES[@]}"; do
|
pytest -v
|
||||||
pythonPackage=${PYTHON_PACKAGES[i]}
|
|
||||||
pythonVersion=${PYTHON_VERSIONS[$i]}
|
|
||||||
|
|
||||||
cd "$sourceDir"-$pythonPackage/pytz/tests
|
|
||||||
|
|
||||||
python=python$pythonVersion
|
|
||||||
$python test_tzinfo.py
|
|
||||||
done
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user