Skip to content
This repository has been archived by the owner on May 20, 2023. It is now read-only.

Commit

Permalink
upgpkg: python-setuptools 1:51.0.0-1: add workaround for packaging 20…
Browse files Browse the repository at this point in the history
….5 (pypa/setuptools#2466)

git-svn-id: file:///srv/repos/svn-packages/svn@403088 eb2447ed-0c53-47e4-bac8-5bc4a241df78
  • Loading branch information
felixonmars authored and svntogit committed Dec 7, 2020
1 parent 94ba89f commit a729da3
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions trunk/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
# Contributor: Eli Schwartz <eschwartz@archlinux.org>

pkgname=python-setuptools
pkgver=50.3.2
pkgrel=4
pkgver=51.0.0
pkgrel=1
epoch=1
pkgdesc="Easily download, build, install, upgrade, and uninstall Python packages"
arch=('any')
Expand All @@ -18,7 +18,7 @@ checkdepends=('python-jaraco.envs' 'python-mock' 'python-pip' 'python-pytest-fix
provides=('python-distribute')
replaces=('python-distribute')
source=("$pkgname-$pkgver.tar.gz::https://github.com/pypa/setuptools/archive/v$pkgver.tar.gz")
sha512sums=('f7845856cc563be628753bc875c36905ce75f14ff6e98a8460cfaa42b1afca27873d0ef331f027a6b5f7259043c4a66f4b3b04898e955a865bfed50d13e15514')
sha512sums=('8374f94a409a1e4ac80fcb413cacfa7e9aa40946060ebef4ea2d7d6e4f8635c027f7cd904e2bf3b626e918a55304df4567c702e5cf62c95563f9a0604307bcff')

export SETUPTOOLS_INSTALL_WINDOWS_SPECIFIC_FILES=0

Expand All @@ -40,8 +40,9 @@ prepare() {
{} +
done

# Fix for flake8
sed -i 's/import six, ordered_set/import six\nimport ordered_set/' setuptools-$pkgver/setuptools/command/sdist.py
# https://github.com/pypa/setuptools/issues/2466
sed -i '/ignore:lib2to3 package is deprecated:DeprecationWarning/a \ ignore:Creating a LegacyVersion has been deprecated and will be removed in the next major release:DeprecationWarning' \
setuptools-$pkgver/pytest.ini

# Remove post-release tag since we are using stable tags
sed -e '/tag_build = .post/d' \
Expand Down

0 comments on commit a729da3

Please sign in to comment.