[arch-commits] Commit in python-setuptools/repos (testing-any testing-any/PKGBUILD)

2020-12-21 Thread Felix Yan via arch-commits
Date: Monday, December 21, 2020 @ 18:07:54
  Author: felixonmars
Revision: 404739

archrelease: copy trunk to testing-any

Added:
  python-setuptools/repos/testing-any/
  python-setuptools/repos/testing-any/PKGBUILD
(from rev 404738, python-setuptools/trunk/PKGBUILD)

--+
 PKGBUILD |   87 +
 1 file changed, 87 insertions(+)

Copied: python-setuptools/repos/testing-any/PKGBUILD (from rev 404738, 
python-setuptools/trunk/PKGBUILD)
===
--- testing-any/PKGBUILD(rev 0)
+++ testing-any/PKGBUILD2020-12-21 18:07:54 UTC (rev 404739)
@@ -0,0 +1,87 @@
+# Maintainer: Angel Velasquez 
+# Maintainer: Felix Yan 
+# Contributor: Eli Schwartz 
+
+pkgname=python-setuptools
+pkgver=51.1.0
+pkgrel=1
+epoch=1
+pkgdesc="Easily download, build, install, upgrade, and uninstall Python 
packages"
+arch=('any')
+license=('PSF')
+url="https://pypi.org/project/setuptools/;
+depends=('python-appdirs' 'python-packaging' 'python-ordered-set')
+makedepends=('git')
+checkdepends=('python-jaraco.envs' 'python-mock' 'python-pip' 
'python-pytest-fixture-config'
+  'python-pytest-flake8' 'python-pytest-virtualenv' 'python-wheel' 
'python-paver'
+  'python-pytest-cov')
+provides=('python-distribute')
+replaces=('python-distribute')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/pypa/setuptools/archive/v$pkgver.tar.gz;)
+sha512sums=('a1aab18b5056ed99d848bb6d70fbfdc7c93134ff247b09167ec8230a76935f5e21f4d267e593141378f00f3ca2d022eb90acf962bed54262c603665cabb9f45a')
+
+export SETUPTOOLS_INSTALL_WINDOWS_SPECIFIC_FILES=0
+
+prepare() {
+  rm -r setuptools-$pkgver/{pkg_resources,setuptools}/{extern,_vendor}
+
+  # Upstream devendoring logic is badly broken, see:
+  # https://bugs.archlinux.org/task/58670
+  # https://github.com/pypa/pip/issues/5429
+  # https://github.com/pypa/setuptools/issues/1383
+  # The simplest fix is to simply rewrite import paths to use the canonical
+  # location in the first place
+  for _module in setuptools pkg_resources '' ; do
+  find setuptools-$pkgver -name \*.py -exec sed -i \
+  -e 's/from '$_module.extern' import/import/' \
+  -e 's/from '$_module.extern'./from /' \
+  -e 's/import '$_module.extern'./import /' \
+  -e "s/__import__('$_module.extern./__import__('/" \
+  {} +
+  done
+
+  # 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' \
+  -e '/tag_date = 1/d' \
+  -i setuptools-$pkgver/setup.cfg
+
+  # 'Clean' installation is expected to fail since we removed bundled packages
+  sed -i '/^def test_clean_env_install/i @pytest.mark.xfail' 
setuptools-$pkgver/setuptools/tests/test_virtualenv.py
+
+  # Tests failed. Importing an unbundled new setuptools in a virtualenv does 
not work, but this won't
+  # affect normal virtualenv usage (which don't have to import the unbundled 
setuptools in *current*
+  # dir.
+  sed -e '/^def test_pip_upgrade_from_source/i @pytest.mark.xfail' \
+  -e '/^def test_test_command_install_requirements/i @pytest.mark.xfail' \
+  -e '/^def test_no_missing_dependencies/i @pytest.mark.xfail' \
+  -i setuptools-$pkgver/setuptools/tests/test_virtualenv.py
+  
+  cd "$srcdir"/setuptools-$pkgver
+  sed -i -e "s|^#\!.*/usr/bin/env python|#!/usr/bin/env python3|" 
setuptools/command/easy_install.py
+}
+
+build() {
+  cd setuptools-$pkgver
+  python bootstrap.py
+  python setup.py build
+}
+
+check() { (
+  # Workaround UTF-8 tests by setting LC_CTYPE
+  export LC_CTYPE=en_US.UTF-8
+
+  # https://github.com/pypa/setuptools/pull/810
+  export PYTHONDONTWRITEBYTECODE=1
+
+  cd setuptools-$pkgver
+  python -m pytest --deselect setuptools/tests/test_distutils_adoption.py
+)}
+
+package() {
+  cd setuptools-$pkgver
+  python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 
--skip-build
+}


[arch-commits] Commit in python-setuptools/repos (testing-any testing-any/PKGBUILD)

2020-12-07 Thread Felix Yan via arch-commits
Date: Monday, December 7, 2020 @ 20:58:08
  Author: felixonmars
Revision: 403089

archrelease: copy trunk to testing-any

Added:
  python-setuptools/repos/testing-any/
  python-setuptools/repos/testing-any/PKGBUILD
(from rev 403088, python-setuptools/trunk/PKGBUILD)

--+
 PKGBUILD |   87 +
 1 file changed, 87 insertions(+)

Copied: python-setuptools/repos/testing-any/PKGBUILD (from rev 403088, 
python-setuptools/trunk/PKGBUILD)
===
--- testing-any/PKGBUILD(rev 0)
+++ testing-any/PKGBUILD2020-12-07 20:58:08 UTC (rev 403089)
@@ -0,0 +1,87 @@
+# Maintainer: Angel Velasquez 
+# Maintainer: Felix Yan 
+# Contributor: Eli Schwartz 
+
+pkgname=python-setuptools
+pkgver=51.0.0
+pkgrel=1
+epoch=1
+pkgdesc="Easily download, build, install, upgrade, and uninstall Python 
packages"
+arch=('any')
+license=('PSF')
+url="https://pypi.org/project/setuptools/;
+depends=('python-appdirs' 'python-packaging' 'python-ordered-set')
+makedepends=('git')
+checkdepends=('python-jaraco.envs' 'python-mock' 'python-pip' 
'python-pytest-fixture-config'
+  'python-pytest-flake8' 'python-pytest-virtualenv' 'python-wheel' 
'python-paver'
+  'python-pytest-cov')
+provides=('python-distribute')
+replaces=('python-distribute')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/pypa/setuptools/archive/v$pkgver.tar.gz;)
+sha512sums=('8374f94a409a1e4ac80fcb413cacfa7e9aa40946060ebef4ea2d7d6e4f8635c027f7cd904e2bf3b626e918a55304df4567c702e5cf62c95563f9a0604307bcff')
+
+export SETUPTOOLS_INSTALL_WINDOWS_SPECIFIC_FILES=0
+
+prepare() {
+  rm -r setuptools-$pkgver/{pkg_resources,setuptools}/{extern,_vendor}
+
+  # Upstream devendoring logic is badly broken, see:
+  # https://bugs.archlinux.org/task/58670
+  # https://github.com/pypa/pip/issues/5429
+  # https://github.com/pypa/setuptools/issues/1383
+  # The simplest fix is to simply rewrite import paths to use the canonical
+  # location in the first place
+  for _module in setuptools pkg_resources '' ; do
+  find setuptools-$pkgver -name \*.py -exec sed -i \
+  -e 's/from '$_module.extern' import/import/' \
+  -e 's/from '$_module.extern'./from /' \
+  -e 's/import '$_module.extern'./import /' \
+  -e "s/__import__('$_module.extern./__import__('/" \
+  {} +
+  done
+
+  # 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' \
+  -e '/tag_date = 1/d' \
+  -i setuptools-$pkgver/setup.cfg
+
+  # 'Clean' installation is expected to fail since we removed bundled packages
+  sed -i '/^def test_clean_env_install/i @pytest.mark.xfail' 
setuptools-$pkgver/setuptools/tests/test_virtualenv.py
+
+  # Tests failed. Importing an unbundled new setuptools in a virtualenv does 
not work, but this won't
+  # affect normal virtualenv usage (which don't have to import the unbundled 
setuptools in *current*
+  # dir.
+  sed -e '/^def test_pip_upgrade_from_source/i @pytest.mark.xfail' \
+  -e '/^def test_test_command_install_requirements/i @pytest.mark.xfail' \
+  -e '/^def test_no_missing_dependencies/i @pytest.mark.xfail' \
+  -i setuptools-$pkgver/setuptools/tests/test_virtualenv.py
+  
+  cd "$srcdir"/setuptools-$pkgver
+  sed -i -e "s|^#\!.*/usr/bin/env python|#!/usr/bin/env python3|" 
setuptools/command/easy_install.py
+}
+
+build() {
+  cd setuptools-$pkgver
+  python bootstrap.py
+  python setup.py build
+}
+
+check() { (
+  # Workaround UTF-8 tests by setting LC_CTYPE
+  export LC_CTYPE=en_US.UTF-8
+
+  # https://github.com/pypa/setuptools/pull/810
+  export PYTHONDONTWRITEBYTECODE=1
+
+  cd setuptools-$pkgver
+  python -m pytest --deselect setuptools/tests/test_distutils_adoption.py
+)}
+
+package() {
+  cd setuptools-$pkgver
+  python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 
--skip-build
+}


[arch-commits] Commit in python-setuptools/repos (testing-any testing-any/PKGBUILD)

2020-09-01 Thread Felix Yan via arch-commits
Date: Tuesday, September 1, 2020 @ 09:26:53
  Author: felixonmars
Revision: 395034

archrelease: copy trunk to testing-any

Added:
  python-setuptools/repos/testing-any/
  python-setuptools/repos/testing-any/PKGBUILD
(from rev 395033, python-setuptools/trunk/PKGBUILD)

--+
 PKGBUILD |   86 +
 1 file changed, 86 insertions(+)

Copied: python-setuptools/repos/testing-any/PKGBUILD (from rev 395033, 
python-setuptools/trunk/PKGBUILD)
===
--- testing-any/PKGBUILD(rev 0)
+++ testing-any/PKGBUILD2020-09-01 09:26:53 UTC (rev 395034)
@@ -0,0 +1,86 @@
+# Maintainer: Angel Velasquez 
+# Maintainer: Felix Yan 
+# Contributor: Eli Schwartz 
+
+pkgname=python-setuptools
+pkgver=50.0.0
+pkgrel=1
+epoch=1
+pkgdesc="Easily download, build, install, upgrade, and uninstall Python 
packages"
+arch=('any')
+license=('PSF')
+url="https://pypi.org/project/setuptools/;
+depends=('python-appdirs' 'python-packaging' 'python-ordered-set')
+makedepends=('git')
+checkdepends=('python-jaraco.envs' 'python-mock' 'python-pip' 
'python-pytest-fixture-config'
+  'python-pytest-flake8' 'python-pytest-virtualenv' 'python-wheel' 
'python-paver'
+  'python-pytest-cov')
+provides=('python-distribute')
+replaces=('python-distribute')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/pypa/setuptools/archive/v$pkgver.tar.gz;)
+sha512sums=('a1974679f5575756b29965385b3860fc68a17f6acca491dc3889a1e80e90349d91a1e581c26504096ea684c1db94ae18d65f4e7d0d831fd2360df636e8957b24')
+
+export SETUPTOOLS_INSTALL_WINDOWS_SPECIFIC_FILES=0
+
+prepare() {
+  rm -r setuptools-$pkgver/{pkg_resources,setuptools}/{extern,_vendor}
+
+  # Upstream devendoring logic is badly broken, see:
+  # https://bugs.archlinux.org/task/58670
+  # https://github.com/pypa/pip/issues/5429
+  # https://github.com/pypa/setuptools/issues/1383
+  # The simplest fix is to simply rewrite import paths to use the canonical
+  # location in the first place
+  for _module in setuptools pkg_resources '' ; do
+  find setuptools-$pkgver -name \*.py -exec sed -i \
+  -e 's/from '$_module.extern' import/import/' \
+  -e 's/from '$_module.extern'./from /' \
+  -e 's/import '$_module.extern'./import /' \
+  -e "s/__import__('$_module.extern./__import__('/" \
+  {} +
+done
+
+  # Fix for flake8
+  sed -i 's/import six, ordered_set/import six\nimport ordered_set/' 
setuptools-$pkgver/setuptools/command/sdist.py
+
+  # Remove post-release tag since we are using stable tags
+  sed -e '/tag_build = .post/d' \
+  -e '/tag_date = 1/d' \
+  -i setuptools-$pkgver/setup.cfg
+
+  # 'Clean' installation is expected to fail since we removed bundled packages
+  sed -i '/^def test_clean_env_install/i @pytest.mark.xfail' 
setuptools-$pkgver/setuptools/tests/test_virtualenv.py
+
+  # Tests failed. Importing an unbundled new setuptools in a virtualenv does 
not work, but this won't
+  # affect normal virtualenv usage (which don't have to import the unbundled 
setuptools in *current*
+  # dir.
+  sed -e '/^def test_pip_upgrade_from_source/i @pytest.mark.xfail' \
+  -e '/^def test_test_command_install_requirements/i @pytest.mark.xfail' \
+  -e '/^def test_no_missing_dependencies/i @pytest.mark.xfail' \
+  -i setuptools-$pkgver/setuptools/tests/test_virtualenv.py
+  
+  cd "$srcdir"/setuptools-$pkgver
+  sed -i -e "s|^#\!.*/usr/bin/env python|#!/usr/bin/env python3|" 
setuptools/command/easy_install.py
+}
+
+build() {
+  cd setuptools-$pkgver
+  python bootstrap.py
+  python setup.py build
+}
+
+check() { (
+  # Workaround UTF-8 tests by setting LC_CTYPE
+  export LC_CTYPE=en_US.UTF-8
+
+  # https://github.com/pypa/setuptools/pull/810
+  export PYTHONDONTWRITEBYTECODE=1
+
+  cd setuptools-$pkgver
+  python -m pytest --deselect setuptools/tests/test_distutils_adoption.py
+)}
+
+package() {
+  cd setuptools-$pkgver
+  python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 
--skip-build
+}


[arch-commits] Commit in python-setuptools/repos (testing-any testing-any/PKGBUILD)

2020-03-09 Thread Felix Yan via arch-commits
Date: Monday, March 9, 2020 @ 10:58:25
  Author: felixonmars
Revision: 377205

archrelease: copy trunk to testing-any

Added:
  python-setuptools/repos/testing-any/
  python-setuptools/repos/testing-any/PKGBUILD
(from rev 377204, python-setuptools/trunk/PKGBUILD)

--+
 PKGBUILD |   85 +
 1 file changed, 85 insertions(+)

Copied: python-setuptools/repos/testing-any/PKGBUILD (from rev 377204, 
python-setuptools/trunk/PKGBUILD)
===
--- testing-any/PKGBUILD(rev 0)
+++ testing-any/PKGBUILD2020-03-09 10:58:25 UTC (rev 377205)
@@ -0,0 +1,85 @@
+# Maintainer: Angel Velasquez 
+# Maintainer: Felix Yan 
+# Contributor: Eli Schwartz 
+
+pkgname=python-setuptools
+pkgver=46.0.0
+pkgrel=1
+epoch=1
+pkgdesc="Easily download, build, install, upgrade, and uninstall Python 
packages"
+arch=('any')
+license=('PSF')
+url="https://pypi.org/project/setuptools/;
+depends=('python-appdirs' 'python-packaging' 'python-ordered-set')
+makedepends=('git')
+checkdepends=('python-mock' 'python-pip' 'python-pytest-fixture-config' 
'python-pytest-flake8'
+  'python-pytest-virtualenv' 'python-wheel' 'python-paver')
+provides=('python-distribute')
+replaces=('python-distribute')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/pypa/setuptools/archive/v$pkgver.tar.gz;)
+sha512sums=('063283879df82fa739df4f356e174a73ae49209e1c868e02e6fa48bd41d3943d290e5e7347955230ee542b4603fa8a9ce0ed630ec04da4c1fd452faa6d8180dd')
+
+export SETUPTOOLS_INSTALL_WINDOWS_SPECIFIC_FILES=0
+
+prepare() {
+  rm -r setuptools-$pkgver/{pkg_resources,setuptools}/{extern,_vendor}
+
+  # Upstream devendoring logic is badly broken, see:
+  # https://bugs.archlinux.org/task/58670
+  # https://github.com/pypa/pip/issues/5429
+  # https://github.com/pypa/setuptools/issues/1383
+  # The simplest fix is to simply rewrite import paths to use the canonical
+  # location in the first place
+  for _module in setuptools pkg_resources '' ; do
+  find setuptools-$pkgver -name \*.py -exec sed -i \
+  -e 's/from '$_module.extern' import/import/' \
+  -e 's/from '$_module.extern'./from /' \
+  -e 's/import '$_module.extern'./import /' \
+  -e "s/__import__('$_module.extern./__import__('/" \
+  {} +
+done
+
+  # Fix for flake8
+  sed -i 's/import six, ordered_set/import six\nimport ordered_set/' 
setuptools-$pkgver/setuptools/command/sdist.py
+
+  # Remove post-release tag since we are using stable tags
+  sed -e '/tag_build = .post/d' \
+  -e '/tag_date = 1/d' \
+  -i setuptools-$pkgver/setup.cfg
+
+  # 'Clean' installation is expected to fail since we removed bundled packages
+  sed -i '/^def test_clean_env_install/i @pytest.mark.xfail' 
setuptools-$pkgver/setuptools/tests/test_virtualenv.py
+
+  # Tests failed. Importing an unbundled new setuptools in a virtualenv does 
not work, but this won't
+  # affect normal virtualenv usage (which don't have to import the unbundled 
setuptools in *current*
+  # dir.
+  sed -e '/^def test_pip_upgrade_from_source/i @pytest.mark.xfail' \
+  -e '/^def test_test_command_install_requirements/i @pytest.mark.xfail' \
+  -e '/^def test_no_missing_dependencies/i @pytest.mark.xfail' \
+  -i setuptools-$pkgver/setuptools/tests/test_virtualenv.py
+
+  cd "$srcdir"/setuptools-$pkgver
+  sed -i -e "s|^#\!.*/usr/bin/env python|#!/usr/bin/env python3|" 
setuptools/command/easy_install.py
+}
+
+build() {
+  cd setuptools-$pkgver
+  python bootstrap.py
+  python setup.py build
+}
+
+check() { (
+  # Workaround UTF-8 tests by setting LC_CTYPE
+  export LC_CTYPE=en_US.UTF-8
+
+  # https://github.com/pypa/setuptools/pull/810
+  export PYTHONDONTWRITEBYTECODE=1
+
+  cd setuptools-$pkgver
+  python -m pytest
+)}
+
+package() {
+  cd setuptools-$pkgver
+  python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 
--skip-build
+}


[arch-commits] Commit in python-setuptools/repos (testing-any testing-any/PKGBUILD)

2020-01-15 Thread Felix Yan via arch-commits
Date: Wednesday, January 15, 2020 @ 16:25:56
  Author: felixonmars
Revision: 373522

archrelease: copy trunk to testing-any

Added:
  python-setuptools/repos/testing-any/
  python-setuptools/repos/testing-any/PKGBUILD
(from rev 373521, python-setuptools/trunk/PKGBUILD)

--+
 PKGBUILD |  105 +
 1 file changed, 105 insertions(+)

Copied: python-setuptools/repos/testing-any/PKGBUILD (from rev 373521, 
python-setuptools/trunk/PKGBUILD)
===
--- testing-any/PKGBUILD(rev 0)
+++ testing-any/PKGBUILD2020-01-15 16:25:56 UTC (rev 373522)
@@ -0,0 +1,105 @@
+# Maintainer: Angel Velasquez 
+# Maintainer: Felix Yan 
+# Contributor: Eli Schwartz 
+
+pkgbase=python-setuptools
+pkgname=('python-setuptools' 'python2-setuptools')
+pkgver=45.0.0
+pkgrel=1
+epoch=1
+pkgdesc="Easily download, build, install, upgrade, and uninstall Python 
packages"
+arch=('any')
+license=('PSF')
+url="https://pypi.org/project/setuptools/;
+_deps=('appdirs' 'packaging' 'ordered-set')
+makedepends=("${_deps[@]/#/python-}" "${_deps[@]/#/python2-}" 'git')
+_checkdeps=('mock' 'pip' 'pytest-fixture-config' 'pytest-flake8'
+'pytest-runner' 'pytest-virtualenv' 'wheel')
+checkdepends=("${_checkdeps[@]/#/python-}" 'python-paver' 'git')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/pypa/setuptools/archive/v$pkgver.tar.gz;)
+sha512sums=('710cb0be5e3ec49ac1e0e7669612861c9c3a133ae7c3aaba9b4adc2559f595dbfa77f75bff1556f3526a41746605c72d9c7f51e1453db3b7fe06052f2faefba2')
+
+export SETUPTOOLS_INSTALL_WINDOWS_SPECIFIC_FILES=0
+
+prepare() {
+  rm -r setuptools-$pkgver/{pkg_resources,setuptools}/{extern,_vendor}
+
+  # Upstream devendoring logic is badly broken, see:
+  # https://bugs.archlinux.org/task/58670
+  # https://github.com/pypa/pip/issues/5429
+  # https://github.com/pypa/setuptools/issues/1383
+  # The simplest fix is to simply rewrite import paths to use the canonical
+  # location in the first place
+  for _module in setuptools pkg_resources '' ; do
+  find setuptools-$pkgver -name \*.py -exec sed -i \
+  -e 's/from '$_module.extern' import/import/' \
+  -e 's/from '$_module.extern'./from /' \
+  -e 's/import '$_module.extern'./import /' \
+  -e "s/__import__('$_module.extern./__import__('/" \
+  {} +
+done
+
+  # Remove post-release tag since we are using stable tags
+  sed -e '/tag_build = .post/d' \
+  -e '/tag_date = 1/d' \
+  -i setuptools-$pkgver/setup.cfg
+
+  # 'Clean' installation is expected to fail since we removed bundled packages
+  sed -i '/^def test_clean_env_install/i import 
pytest\n\n...@pytest.mark.xfail' 
setuptools-$pkgver/setuptools/tests/test_virtualenv.py
+
+  # Tests failed. Importing an unbundled new setuptools in a virtualenv does 
not work, but this won't
+  # affect normal virtualenv usage (which don't have to import the unbundled 
setuptools in *current*
+  # dir.
+  sed -e '/^def test_pip_upgrade_from_source/i @pytest.mark.xfail' \
+  -e '/^def test_test_command_install_requirements/i @pytest.mark.xfail' \
+  -e '/^def test_no_missing_dependencies/i @pytest.mark.xfail' \
+  -i setuptools-$pkgver/setuptools/tests/test_virtualenv.py
+
+  cp -a setuptools-$pkgver{,-py2}
+
+  cd "$srcdir"/setuptools-$pkgver
+  sed -i -e "s|^#\!.*/usr/bin/env python|#!/usr/bin/env python3|" 
setuptools/command/easy_install.py
+
+  cd "$srcdir"/setuptools-$pkgver-py2
+  sed -i -e "s|^#\!.*/usr/bin/env python|#!/usr/bin/env python2|" 
setuptools/command/easy_install.py
+}
+
+build() {
+  cd "$srcdir"/setuptools-$pkgver
+  python bootstrap.py
+  python setup.py build
+
+  cd "$srcdir"/setuptools-$pkgver-py2
+  python2 bootstrap.py
+  python2 setup.py build
+}
+
+check() { (
+  # Workaround UTF-8 tests by setting LC_CTYPE
+  export LC_CTYPE=en_US.UTF-8
+
+  # https://github.com/pypa/setuptools/pull/810
+  export PYTHONDONTWRITEBYTECODE=1
+
+  cd setuptools-$pkgver
+  python setup.py pytest
+)}
+
+package_python-setuptools() {
+  depends=("${_deps[@]/#/python-}")
+  provides=('python-distribute')
+  replaces=('python-distribute')
+
+  cd "$srcdir"/setuptools-$pkgver
+  python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 
--skip-build
+}
+
+package_python2-setuptools() {
+  depends=("${_deps[@]/#/python2-}")
+  provides=('python2-distribute')
+  replaces=('python2-distribute')
+
+  cd "$srcdir"/setuptools-$pkgver-py2
+  python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 
--skip-build
+  rm "$pkgdir"/usr/bin/easy_install
+}


[arch-commits] Commit in python-setuptools/repos (testing-any testing-any/PKGBUILD)

2020-01-08 Thread Felix Yan via arch-commits
Date: Wednesday, January 8, 2020 @ 10:37:40
  Author: felixonmars
Revision: 372821

archrelease: copy trunk to testing-any

Added:
  python-setuptools/repos/testing-any/
  python-setuptools/repos/testing-any/PKGBUILD
(from rev 372820, python-setuptools/trunk/PKGBUILD)

--+
 PKGBUILD |  105 +
 1 file changed, 105 insertions(+)

Copied: python-setuptools/repos/testing-any/PKGBUILD (from rev 372820, 
python-setuptools/trunk/PKGBUILD)
===
--- testing-any/PKGBUILD(rev 0)
+++ testing-any/PKGBUILD2020-01-08 10:37:40 UTC (rev 372821)
@@ -0,0 +1,105 @@
+# Maintainer: Angel Velasquez 
+# Maintainer: Felix Yan 
+# Contributor: Eli Schwartz 
+
+pkgbase=python-setuptools
+pkgname=('python-setuptools' 'python2-setuptools')
+pkgver=44.0.0
+pkgrel=1
+epoch=1
+pkgdesc="Easily download, build, install, upgrade, and uninstall Python 
packages"
+arch=('any')
+license=('PSF')
+url="https://pypi.org/project/setuptools/;
+_deps=('appdirs' 'packaging' 'ordered-set')
+makedepends=("${_deps[@]/#/python-}" "${_deps[@]/#/python2-}" 'git')
+_checkdeps=('mock' 'pip' 'pytest-fixture-config' 'pytest-flake8'
+'pytest-runner' 'pytest-virtualenv' 'wheel')
+checkdepends=("${_checkdeps[@]/#/python-}" 'python-paver' 'git')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/pypa/setuptools/archive/v$pkgver.tar.gz;)
+sha512sums=('48febee840612a56c7f4cb0bc3983bf61a6a08c53dfcb95403f6631061481ba391fc0472d608ea6c0078fda8bcc7bb9f6dd8b73d473f5e4349d6eaeb2ab0050b')
+
+export SETUPTOOLS_INSTALL_WINDOWS_SPECIFIC_FILES=0
+
+prepare() {
+  rm -r setuptools-$pkgver/{pkg_resources,setuptools}/{extern,_vendor}
+
+  # Upstream devendoring logic is badly broken, see:
+  # https://bugs.archlinux.org/task/58670
+  # https://github.com/pypa/pip/issues/5429
+  # https://github.com/pypa/setuptools/issues/1383
+  # The simplest fix is to simply rewrite import paths to use the canonical
+  # location in the first place
+  for _module in setuptools pkg_resources '' ; do
+  find setuptools-$pkgver -name \*.py -exec sed -i \
+  -e 's/from '$_module.extern' import/import/' \
+  -e 's/from '$_module.extern'./from /' \
+  -e 's/import '$_module.extern'./import /' \
+  -e "s/__import__('$_module.extern./__import__('/" \
+  {} +
+done
+
+  # Remove post-release tag since we are using stable tags
+  sed -e '/tag_build = .post/d' \
+  -e '/tag_date = 1/d' \
+  -i setuptools-$pkgver/setup.cfg
+
+  # 'Clean' installation is expected to fail since we removed bundled packages
+  sed -i '/^def test_clean_env_install/i import 
pytest\n\n...@pytest.mark.xfail' 
setuptools-$pkgver/setuptools/tests/test_virtualenv.py
+
+  # Tests failed. Importing an unbundled new setuptools in a virtualenv does 
not work, but this won't
+  # affect normal virtualenv usage (which don't have to import the unbundled 
setuptools in *current*
+  # dir.
+  sed -e '/^def test_pip_upgrade_from_source/i @pytest.mark.xfail' \
+  -e '/^def test_test_command_install_requirements/i @pytest.mark.xfail' \
+  -e '/^def test_no_missing_dependencies/i @pytest.mark.xfail' \
+  -i setuptools-$pkgver/setuptools/tests/test_virtualenv.py
+
+  cp -a setuptools-$pkgver{,-py2}
+
+  cd "$srcdir"/setuptools-$pkgver
+  sed -i -e "s|^#\!.*/usr/bin/env python|#!/usr/bin/env python3|" 
setuptools/command/easy_install.py
+
+  cd "$srcdir"/setuptools-$pkgver-py2
+  sed -i -e "s|^#\!.*/usr/bin/env python|#!/usr/bin/env python2|" 
setuptools/command/easy_install.py
+}
+
+build() {
+  cd "$srcdir"/setuptools-$pkgver
+  python bootstrap.py
+  python setup.py build
+
+  cd "$srcdir"/setuptools-$pkgver-py2
+  python2 bootstrap.py
+  python2 setup.py build
+}
+
+check() { (
+  # Workaround UTF-8 tests by setting LC_CTYPE
+  export LC_CTYPE=en_US.UTF-8
+
+  # https://github.com/pypa/setuptools/pull/810
+  export PYTHONDONTWRITEBYTECODE=1
+
+  cd setuptools-$pkgver
+  python setup.py pytest
+)}
+
+package_python-setuptools() {
+  depends=("${_deps[@]/#/python-}")
+  provides=('python-distribute')
+  replaces=('python-distribute')
+
+  cd "$srcdir"/setuptools-$pkgver
+  python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 
--skip-build
+}
+
+package_python2-setuptools() {
+  depends=("${_deps[@]/#/python2-}")
+  provides=('python2-distribute')
+  replaces=('python2-distribute')
+
+  cd "$srcdir"/setuptools-$pkgver-py2
+  python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 
--skip-build
+  rm "$pkgdir"/usr/bin/easy_install
+}


[arch-commits] Commit in python-setuptools/repos (testing-any testing-any/PKGBUILD)

2020-01-02 Thread Felix Yan via arch-commits
Date: Friday, January 3, 2020 @ 04:47:35
  Author: felixonmars
Revision: 372497

archrelease: copy trunk to testing-any

Added:
  python-setuptools/repos/testing-any/
  python-setuptools/repos/testing-any/PKGBUILD
(from rev 372496, python-setuptools/trunk/PKGBUILD)

--+
 PKGBUILD |  105 +
 1 file changed, 105 insertions(+)

Copied: python-setuptools/repos/testing-any/PKGBUILD (from rev 372496, 
python-setuptools/trunk/PKGBUILD)
===
--- testing-any/PKGBUILD(rev 0)
+++ testing-any/PKGBUILD2020-01-03 04:47:35 UTC (rev 372497)
@@ -0,0 +1,105 @@
+# Maintainer: Angel Velasquez 
+# Maintainer: Felix Yan 
+# Contributor: Eli Schwartz 
+
+pkgbase=python-setuptools
+pkgname=('python-setuptools' 'python2-setuptools')
+pkgver=43.0.0
+pkgrel=1
+epoch=1
+pkgdesc="Easily download, build, install, upgrade, and uninstall Python 
packages"
+arch=('any')
+license=('PSF')
+url="https://pypi.org/project/setuptools/;
+_deps=('appdirs' 'packaging' 'ordered-set')
+makedepends=("${_deps[@]/#/python-}" "${_deps[@]/#/python2-}" 'git')
+_checkdeps=('mock' 'pip' 'pytest-fixture-config' 'pytest-flake8'
+'pytest-runner' 'pytest-virtualenv' 'wheel')
+checkdepends=("${_checkdeps[@]/#/python-}" 'python-paver' 'git')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/pypa/setuptools/archive/v$pkgver.tar.gz;)
+sha512sums=('886a1e2e218da91aed69678f5fd7e8295fac5e65607c9be963f1bfcc59423c221ac02c12dd2b40ad23ab12d3378c2f6b1572fd0718974fe1565820ebb2606680')
+
+export SETUPTOOLS_INSTALL_WINDOWS_SPECIFIC_FILES=0
+
+prepare() {
+  rm -r setuptools-$pkgver/{pkg_resources,setuptools}/{extern,_vendor}
+
+  # Upstream devendoring logic is badly broken, see:
+  # https://bugs.archlinux.org/task/58670
+  # https://github.com/pypa/pip/issues/5429
+  # https://github.com/pypa/setuptools/issues/1383
+  # The simplest fix is to simply rewrite import paths to use the canonical
+  # location in the first place
+  for _module in setuptools pkg_resources '' ; do
+  find setuptools-$pkgver -name \*.py -exec sed -i \
+  -e 's/from '$_module.extern' import/import/' \
+  -e 's/from '$_module.extern'./from /' \
+  -e 's/import '$_module.extern'./import /' \
+  -e "s/__import__('$_module.extern./__import__('/" \
+  {} +
+done
+
+  # Remove post-release tag since we are using stable tags
+  sed -e '/tag_build = .post/d' \
+  -e '/tag_date = 1/d' \
+  -i setuptools-$pkgver/setup.cfg
+
+  # 'Clean' installation is expected to fail since we removed bundled packages
+  sed -i '/^def test_clean_env_install/i import 
pytest\n\n...@pytest.mark.xfail' 
setuptools-$pkgver/setuptools/tests/test_virtualenv.py
+
+  # Tests failed. Importing an unbundled new setuptools in a virtualenv does 
not work, but this won't
+  # affect normal virtualenv usage (which don't have to import the unbundled 
setuptools in *current*
+  # dir.
+  sed -e '/^def test_pip_upgrade_from_source/i @pytest.mark.xfail' \
+  -e '/^def test_test_command_install_requirements/i @pytest.mark.xfail' \
+  -e '/^def test_no_missing_dependencies/i @pytest.mark.xfail' \
+  -i setuptools-$pkgver/setuptools/tests/test_virtualenv.py
+
+  cp -a setuptools-$pkgver{,-py2}
+
+  cd "$srcdir"/setuptools-$pkgver
+  sed -i -e "s|^#\!.*/usr/bin/env python|#!/usr/bin/env python3|" 
setuptools/command/easy_install.py
+
+  cd "$srcdir"/setuptools-$pkgver-py2
+  sed -i -e "s|^#\!.*/usr/bin/env python|#!/usr/bin/env python2|" 
setuptools/command/easy_install.py
+}
+
+build() {
+  cd "$srcdir"/setuptools-$pkgver
+  python bootstrap.py
+  python setup.py build
+
+  cd "$srcdir"/setuptools-$pkgver-py2
+  python2 bootstrap.py
+  python2 setup.py build
+}
+
+check() { (
+  # Workaround UTF-8 tests by setting LC_CTYPE
+  export LC_CTYPE=en_US.UTF-8
+
+  # https://github.com/pypa/setuptools/pull/810
+  export PYTHONDONTWRITEBYTECODE=1
+
+  cd setuptools-$pkgver
+  python setup.py pytest
+)}
+
+package_python-setuptools() {
+  depends=("${_deps[@]/#/python-}")
+  provides=('python-distribute')
+  replaces=('python-distribute')
+
+  cd "$srcdir"/setuptools-$pkgver
+  python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 
--skip-build
+}
+
+package_python2-setuptools() {
+  depends=("${_deps[@]/#/python2-}")
+  provides=('python2-distribute')
+  replaces=('python2-distribute')
+
+  cd "$srcdir"/setuptools-$pkgver-py2
+  python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 
--skip-build
+  rm "$pkgdir"/usr/bin/easy_install
+}


[arch-commits] Commit in python-setuptools/repos (testing-any testing-any/PKGBUILD)

2019-12-11 Thread Felix Yan via arch-commits
Date: Wednesday, December 11, 2019 @ 08:22:05
  Author: felixonmars
Revision: 370653

archrelease: copy trunk to testing-any

Added:
  python-setuptools/repos/testing-any/
  python-setuptools/repos/testing-any/PKGBUILD
(from rev 370652, python-setuptools/trunk/PKGBUILD)

--+
 PKGBUILD |  105 +
 1 file changed, 105 insertions(+)

Copied: python-setuptools/repos/testing-any/PKGBUILD (from rev 370652, 
python-setuptools/trunk/PKGBUILD)
===
--- testing-any/PKGBUILD(rev 0)
+++ testing-any/PKGBUILD2019-12-11 08:22:05 UTC (rev 370653)
@@ -0,0 +1,105 @@
+# Maintainer: Angel Velasquez 
+# Maintainer: Felix Yan 
+# Contributor: Eli Schwartz 
+
+pkgbase=python-setuptools
+pkgname=('python-setuptools' 'python2-setuptools')
+pkgver=42.0.2
+pkgrel=1
+epoch=1
+pkgdesc="Easily download, build, install, upgrade, and uninstall Python 
packages"
+arch=('any')
+license=('PSF')
+url="https://pypi.org/project/setuptools/;
+_deps=('appdirs' 'packaging' 'ordered-set')
+makedepends=("${_deps[@]/#/python-}" "${_deps[@]/#/python2-}" 'git')
+_checkdeps=('mock' 'pip' 'pytest-fixture-config' 'pytest-flake8'
+'pytest-runner' 'pytest-virtualenv' 'wheel')
+checkdepends=("${_checkdeps[@]/#/python-}" 'python-paver' 'git')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/pypa/setuptools/archive/v$pkgver.tar.gz;)
+sha512sums=('3ef85e38e02e7d4178f4ca1e84577392a5682e569bdba40fc4b87440d8a4a7769fa4eca5b3f457febf1cf16de0cdc7ddb8d1ddedc92fd4af0bae3b15abe2b7bc')
+
+export SETUPTOOLS_INSTALL_WINDOWS_SPECIFIC_FILES=0
+
+prepare() {
+  rm -r setuptools-$pkgver/{pkg_resources,setuptools}/{extern,_vendor}
+
+  # Upstream devendoring logic is badly broken, see:
+  # https://bugs.archlinux.org/task/58670
+  # https://github.com/pypa/pip/issues/5429
+  # https://github.com/pypa/setuptools/issues/1383
+  # The simplest fix is to simply rewrite import paths to use the canonical
+  # location in the first place
+  for _module in setuptools pkg_resources '' ; do
+  find setuptools-$pkgver -name \*.py -exec sed -i \
+  -e 's/from '$_module.extern' import/import/' \
+  -e 's/from '$_module.extern'./from /' \
+  -e 's/import '$_module.extern'./import /' \
+  -e "s/__import__('$_module.extern./__import__('/" \
+  {} +
+done
+
+  # Remove post-release tag since we are using stable tags
+  sed -e '/tag_build = .post/d' \
+  -e '/tag_date = 1/d' \
+  -i setuptools-$pkgver/setup.cfg
+
+  # 'Clean' installation is expected to fail since we removed bundled packages
+  sed -i '/^def test_clean_env_install/i import 
pytest\n\n...@pytest.mark.xfail' 
setuptools-$pkgver/setuptools/tests/test_virtualenv.py
+
+  # Tests failed. Importing an unbundled new setuptools in a virtualenv does 
not work, but this won't
+  # affect normal virtualenv usage (which don't have to import the unbundled 
setuptools in *current*
+  # dir.
+  sed -e '/^def test_pip_upgrade_from_source/i @pytest.mark.xfail' \
+  -e '/^def test_test_command_install_requirements/i @pytest.mark.xfail' \
+  -e '/^def test_no_missing_dependencies/i @pytest.mark.xfail' \
+  -i setuptools-$pkgver/setuptools/tests/test_virtualenv.py
+
+  cp -a setuptools-$pkgver{,-py2}
+
+  cd "$srcdir"/setuptools-$pkgver
+  sed -i -e "s|^#\!.*/usr/bin/env python|#!/usr/bin/env python3|" 
setuptools/command/easy_install.py
+
+  cd "$srcdir"/setuptools-$pkgver-py2
+  sed -i -e "s|^#\!.*/usr/bin/env python|#!/usr/bin/env python2|" 
setuptools/command/easy_install.py
+}
+
+build() {
+  cd "$srcdir"/setuptools-$pkgver
+  python bootstrap.py
+  python setup.py build
+
+  cd "$srcdir"/setuptools-$pkgver-py2
+  python2 bootstrap.py
+  python2 setup.py build
+}
+
+check() { (
+  # Workaround UTF-8 tests by setting LC_CTYPE
+  export LC_CTYPE=en_US.UTF-8
+
+  # https://github.com/pypa/setuptools/pull/810
+  export PYTHONDONTWRITEBYTECODE=1
+
+  cd setuptools-$pkgver
+  python setup.py pytest
+)}
+
+package_python-setuptools() {
+  depends=("${_deps[@]/#/python-}")
+  provides=('python-distribute')
+  replaces=('python-distribute')
+
+  cd "$srcdir"/setuptools-$pkgver
+  python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 
--skip-build
+}
+
+package_python2-setuptools() {
+  depends=("${_deps[@]/#/python2-}")
+  provides=('python2-distribute')
+  replaces=('python2-distribute')
+
+  cd "$srcdir"/setuptools-$pkgver-py2
+  python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 
--skip-build
+  rm "$pkgdir"/usr/bin/easy_install
+}


[arch-commits] Commit in python-setuptools/repos (testing-any testing-any/PKGBUILD)

2019-11-19 Thread Felix Yan via arch-commits
Date: Wednesday, November 20, 2019 @ 05:24:22
  Author: felixonmars
Revision: 369459

archrelease: copy trunk to testing-any

Added:
  python-setuptools/repos/testing-any/
  python-setuptools/repos/testing-any/PKGBUILD
(from rev 369458, python-setuptools/trunk/PKGBUILD)

--+
 PKGBUILD |  105 +
 1 file changed, 105 insertions(+)

Copied: python-setuptools/repos/testing-any/PKGBUILD (from rev 369458, 
python-setuptools/trunk/PKGBUILD)
===
--- testing-any/PKGBUILD(rev 0)
+++ testing-any/PKGBUILD2019-11-20 05:24:22 UTC (rev 369459)
@@ -0,0 +1,105 @@
+# Maintainer: Angel Velasquez 
+# Maintainer: Felix Yan 
+# Contributor: Eli Schwartz 
+
+pkgbase=python-setuptools
+pkgname=('python-setuptools' 'python2-setuptools')
+pkgver=41.4.0
+pkgrel=1
+epoch=1
+pkgdesc="Easily download, build, install, upgrade, and uninstall Python 
packages"
+arch=('any')
+license=('PSF')
+url="https://pypi.org/project/setuptools/;
+_deps=('appdirs' 'packaging' 'ordered-set')
+makedepends=("${_deps[@]/#/python-}" "${_deps[@]/#/python2-}" 'git')
+_checkdeps=('mock' 'pip' 'pytest-fixture-config' 'pytest-flake8'
+'pytest-runner' 'pytest-virtualenv' 'wheel')
+checkdepends=("${_checkdeps[@]/#/python-}" 'python-paver' 'git')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/pypa/setuptools/archive/v$pkgver.tar.gz;)
+sha512sums=('399512d01788a669248a68b1f1eccf940b9255a7ccdbfc0575abcbe9866477c2850260fd8fe8fc946cdb2687bbbcc493d963aa48e38b22e4264a1f2b68ed648c')
+
+export SETUPTOOLS_INSTALL_WINDOWS_SPECIFIC_FILES=0
+
+prepare() {
+  rm -r setuptools-$pkgver/{pkg_resources,setuptools}/{extern,_vendor}
+
+  # Upstream devendoring logic is badly broken, see:
+  # https://bugs.archlinux.org/task/58670
+  # https://github.com/pypa/pip/issues/5429
+  # https://github.com/pypa/setuptools/issues/1383
+  # The simplest fix is to simply rewrite import paths to use the canonical
+  # location in the first place
+  for _module in setuptools pkg_resources '' ; do
+  find setuptools-$pkgver -name \*.py -exec sed -i \
+  -e 's/from '$_module.extern' import/import/' \
+  -e 's/from '$_module.extern'./from /' \
+  -e 's/import '$_module.extern'./import /' \
+  -e "s/__import__('$_module.extern./__import__('/" \
+  {} +
+done
+
+  # Remove post-release tag since we are using stable tags
+  sed -e '/tag_build = .post/d' \
+  -e '/tag_date = 1/d' \
+  -i setuptools-$pkgver/setup.cfg
+
+  # 'Clean' installation is expected to fail since we removed bundled packages
+  sed -i '/^def test_clean_env_install/i import 
pytest\n\n...@pytest.mark.xfail' 
setuptools-$pkgver/setuptools/tests/test_virtualenv.py
+
+  # Tests failed. Importing an unbundled new setuptools in a virtualenv does 
not work, but this won't
+  # affect normal virtualenv usage (which don't have to import the unbundled 
setuptools in *current*
+  # dir.
+  sed -e '/^def test_pip_upgrade_from_source/i @pytest.mark.xfail' \
+  -e '/^def test_test_command_install_requirements/i @pytest.mark.xfail' \
+  -e '/^def test_no_missing_dependencies/i @pytest.mark.xfail' \
+  -i setuptools-$pkgver/setuptools/tests/test_virtualenv.py
+
+  cp -a setuptools-$pkgver{,-py2}
+
+  cd "$srcdir"/setuptools-$pkgver
+  sed -i -e "s|^#\!.*/usr/bin/env python|#!/usr/bin/env python3|" 
setuptools/command/easy_install.py
+
+  cd "$srcdir"/setuptools-$pkgver-py2
+  sed -i -e "s|^#\!.*/usr/bin/env python|#!/usr/bin/env python2|" 
setuptools/command/easy_install.py
+}
+
+build() {
+  cd "$srcdir"/setuptools-$pkgver
+  python bootstrap.py
+  python setup.py build
+
+  cd "$srcdir"/setuptools-$pkgver-py2
+  python2 bootstrap.py
+  python2 setup.py build
+}
+
+check() { (
+  # Workaround UTF-8 tests by setting LC_CTYPE
+  export LC_CTYPE=en_US.UTF-8
+
+  # https://github.com/pypa/setuptools/pull/810
+  export PYTHONDONTWRITEBYTECODE=1
+
+  cd setuptools-$pkgver
+  python setup.py pytest
+)}
+
+package_python-setuptools() {
+  depends=("${_deps[@]/#/python-}")
+  provides=('python-distribute')
+  replaces=('python-distribute')
+
+  cd "$srcdir"/setuptools-$pkgver
+  python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 
--skip-build
+}
+
+package_python2-setuptools() {
+  depends=("${_deps[@]/#/python2-}")
+  provides=('python2-distribute')
+  replaces=('python2-distribute')
+
+  cd "$srcdir"/setuptools-$pkgver-py2
+  python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 
--skip-build
+  rm "$pkgdir"/usr/bin/easy_install
+}


[arch-commits] Commit in python-setuptools/repos (testing-any testing-any/PKGBUILD)

2019-08-13 Thread Felix Yan via arch-commits
Date: Wednesday, August 14, 2019 @ 04:28:57
  Author: felixonmars
Revision: 359800

archrelease: copy trunk to testing-any

Added:
  python-setuptools/repos/testing-any/
  python-setuptools/repos/testing-any/PKGBUILD
(from rev 359799, python-setuptools/trunk/PKGBUILD)

--+
 PKGBUILD |  109 +
 1 file changed, 109 insertions(+)

Copied: python-setuptools/repos/testing-any/PKGBUILD (from rev 359799, 
python-setuptools/trunk/PKGBUILD)
===
--- testing-any/PKGBUILD(rev 0)
+++ testing-any/PKGBUILD2019-08-14 04:28:57 UTC (rev 359800)
@@ -0,0 +1,109 @@
+# Maintainer: Angel Velasquez 
+# Maintainer: Felix Yan 
+# Contributor: Eli Schwartz 
+
+pkgbase=python-setuptools
+pkgname=('python-setuptools' 'python2-setuptools')
+pkgver=41.1.0
+pkgrel=1
+epoch=1
+pkgdesc="Easily download, build, install, upgrade, and uninstall Python 
packages"
+arch=('any')
+license=('PSF')
+url="https://pypi.org/project/setuptools/;
+_deps=('appdirs' 'packaging')
+makedepends=("${_deps[@]/#/python-}" "${_deps[@]/#/python2-}" 'git')
+_checkdeps=('mock' 'pip' 'pytest-fixture-config' 'pytest-flake8'
+'pytest-runner' 'pytest-virtualenv' 'wheel')
+checkdepends=("${_checkdeps[@]/#/python-}" "${_checkdeps[@]/#/python2-}" 
'python-paver'
+  'python2-futures' 'git')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/pypa/setuptools/archive/v$pkgver.tar.gz;)
+sha512sums=('1dd7e6ef05e837c3645b0e9cef182a5e1e9488061c0fb5e9c750e8ec8aab963dd1c0972642556774c3d217587310b073750cbf6d4b9053bda13e044741e69a99')
+
+export SETUPTOOLS_INSTALL_WINDOWS_SPECIFIC_FILES=0
+
+prepare() {
+  rm -r setuptools-$pkgver/{pkg_resources,setuptools}/{extern,_vendor}
+
+  # Upstream devendoring logic is badly broken, see:
+  # https://bugs.archlinux.org/task/58670
+  # https://github.com/pypa/pip/issues/5429
+  # https://github.com/pypa/setuptools/issues/1383
+  # The simplest fix is to simply rewrite import paths to use the canonical
+  # location in the first place
+  for _module in setuptools pkg_resources '' ; do
+  find setuptools-$pkgver -name \*.py -exec sed -i \
+  -e 's/from '$_module.extern' import/import/' \
+  -e 's/from '$_module.extern'./from /' \
+  -e 's/import '$_module.extern'./import /' \
+  -e "s/__import__('$_module.extern./__import__('/" \
+  {} +
+done
+
+  # Remove post-release tag since we are using stable tags
+  sed -e '/tag_build = .post/d' \
+  -e '/tag_date = 1/d' \
+  -i setuptools-$pkgver/setup.cfg
+
+  # 'Clean' installation is expected to fail since we removed bundled packages
+  sed -i '/^def test_clean_env_install/i import 
pytest\n\n...@pytest.mark.xfail' 
setuptools-$pkgver/setuptools/tests/test_virtualenv.py
+
+  # Tests failed. Importing an unbundled new setuptools in a virtualenv does 
not work, but this won't
+  # affect normal virtualenv usage (which don't have to import the unbundled 
setuptools in *current*
+  # dir.
+  sed -e '/^def test_pip_upgrade_from_source/i @pytest.mark.xfail' \
+  -e '/^def test_test_command_install_requirements/i @pytest.mark.xfail' \
+  -e '/^def test_no_missing_dependencies/i @pytest.mark.xfail' \
+  -i setuptools-$pkgver/setuptools/tests/test_virtualenv.py
+
+  cp -a setuptools-$pkgver{,-py2}
+
+  cd "$srcdir"/setuptools-$pkgver
+  sed -i -e "s|^#\!.*/usr/bin/env python|#!/usr/bin/env python3|" 
setuptools/command/easy_install.py
+
+  cd "$srcdir"/setuptools-$pkgver-py2
+  sed -i -e "s|^#\!.*/usr/bin/env python|#!/usr/bin/env python2|" 
setuptools/command/easy_install.py
+}
+
+build() {
+  cd "$srcdir"/setuptools-$pkgver
+  python bootstrap.py
+  python setup.py build
+
+  cd "$srcdir"/setuptools-$pkgver-py2
+  python2 bootstrap.py
+  python2 setup.py build
+}
+
+check() { (
+  # Workaround UTF-8 tests by setting LC_CTYPE
+  export LC_CTYPE=en_US.UTF-8
+
+  # https://github.com/pypa/setuptools/pull/810
+  export PYTHONDONTWRITEBYTECODE=1
+
+  cd "$srcdir"/setuptools-$pkgver
+  python setup.py pytest
+
+  cd "$srcdir"/setuptools-$pkgver-py2
+  python2 setup.py pytest
+)}
+
+package_python-setuptools() {
+  depends=("${_deps[@]/#/python-}")
+  provides=('python-distribute')
+  replaces=('python-distribute')
+
+  cd "$srcdir"/setuptools-$pkgver
+  python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 
--skip-build
+}
+
+package_python2-setuptools() {
+  depends=("${_deps[@]/#/python2-}")
+  provides=('python2-distribute')
+  replaces=('python2-distribute')
+
+  cd "$srcdir"/setuptools-$pkgver-py2
+  python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 
--skip-build
+  rm "$pkgdir"/usr/bin/easy_install
+}


[arch-commits] Commit in python-setuptools/repos (testing-any testing-any/PKGBUILD)

2019-04-06 Thread Felix Yan via arch-commits
Date: Saturday, April 6, 2019 @ 20:53:13
  Author: felixonmars
Revision: 350250

archrelease: copy trunk to testing-any

Added:
  python-setuptools/repos/testing-any/
  python-setuptools/repos/testing-any/PKGBUILD
(from rev 350249, python-setuptools/trunk/PKGBUILD)

--+
 PKGBUILD |  109 +
 1 file changed, 109 insertions(+)

Copied: python-setuptools/repos/testing-any/PKGBUILD (from rev 350249, 
python-setuptools/trunk/PKGBUILD)
===
--- testing-any/PKGBUILD(rev 0)
+++ testing-any/PKGBUILD2019-04-06 20:53:13 UTC (rev 350250)
@@ -0,0 +1,109 @@
+# Maintainer: Angel Velasquez 
+# Maintainer: Felix Yan 
+# Contributor: Eli Schwartz 
+
+pkgbase=python-setuptools
+pkgname=('python-setuptools' 'python2-setuptools')
+pkgver=41.0.0
+pkgrel=1
+epoch=1
+pkgdesc="Easily download, build, install, upgrade, and uninstall Python 
packages"
+arch=('any')
+license=('PSF')
+url="https://pypi.org/project/setuptools/;
+_deps=('appdirs' 'packaging')
+makedepends=("${_deps[@]/#/python-}" "${_deps[@]/#/python2-}" 'git')
+_checkdeps=('mock' 'pip' 'pytest-fixture-config' 'pytest-flake8'
+'pytest-runner' 'pytest-virtualenv' 'wheel')
+checkdepends=("${_checkdeps[@]/#/python-}" "${_checkdeps[@]/#/python2-}" 
'python-paver'
+  'python2-futures' 'git')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/pypa/setuptools/archive/v$pkgver.tar.gz;)
+sha512sums=('cdb4fd37df907594838cc16899060b9a8e052c209557df735770d2514bad2d7e2646452f01431d89d01f853a9e5acf55db60b0cb58f6acf396d48a58489834c9')
+
+export SETUPTOOLS_INSTALL_WINDOWS_SPECIFIC_FILES=0
+
+prepare() {
+  rm -r setuptools-$pkgver/{pkg_resources,setuptools}/{extern,_vendor}
+
+  # Upstream devendoring logic is badly broken, see:
+  # https://bugs.archlinux.org/task/58670
+  # https://github.com/pypa/pip/issues/5429
+  # https://github.com/pypa/setuptools/issues/1383
+  # The simplest fix is to simply rewrite import paths to use the canonical
+  # location in the first place
+  for _module in setuptools pkg_resources '' ; do
+  find setuptools-$pkgver/$_module -name \*.py -exec sed -i \
+  -e 's/from '$_module.extern' import/import/' \
+  -e 's/from '$_module.extern'./from /' \
+  -e 's/import '$_module.extern'./import /' \
+  -e "s/__import__('$_module.extern./__import__('/" \
+  {} +
+done
+
+  # Remove post-release tag since we are using stable tags
+  sed -e '/tag_build = .post/d' \
+  -e '/tag_date = 1/d' \
+  -i setuptools-$pkgver/setup.cfg
+
+  # 'Clean' installation is expected to fail since we removed bundled packages
+  sed -i '/^def test_clean_env_install/i import 
pytest\n\n...@pytest.mark.xfail' 
setuptools-$pkgver/setuptools/tests/test_virtualenv.py
+
+  # Tests failed. Importing an unbundled new setuptools in a virtualenv does 
not work, but this won't
+  # affect normal virtualenv usage (which don't have to import the unbundled 
setuptools in *current*
+  # dir.
+  sed -e '/^def test_pip_upgrade_from_source/i @pytest.mark.xfail' \
+  -e '/^def test_test_command_install_requirements/i @pytest.mark.xfail' \
+  -e '/^def test_no_missing_dependencies/i @pytest.mark.xfail' \
+  -i setuptools-$pkgver/setuptools/tests/test_virtualenv.py
+
+  cp -a setuptools-$pkgver{,-py2}
+
+  cd "$srcdir"/setuptools-$pkgver
+  sed -i -e "s|^#\!.*/usr/bin/env python|#!/usr/bin/env python3|" 
setuptools/command/easy_install.py
+
+  cd "$srcdir"/setuptools-$pkgver-py2
+  sed -i -e "s|^#\!.*/usr/bin/env python|#!/usr/bin/env python2|" 
setuptools/command/easy_install.py
+}
+
+build() {
+  cd "$srcdir"/setuptools-$pkgver
+  python bootstrap.py
+  python setup.py build
+
+  cd "$srcdir"/setuptools-$pkgver-py2
+  python2 bootstrap.py
+  python2 setup.py build
+}
+
+check() { (
+  # Workaround UTF-8 tests by setting LC_CTYPE
+  export LC_CTYPE=en_US.UTF-8
+
+  # https://github.com/pypa/setuptools/pull/810
+  export PYTHONDONTWRITEBYTECODE=1
+
+  cd "$srcdir"/setuptools-$pkgver
+  python setup.py pytest
+
+  cd "$srcdir"/setuptools-$pkgver-py2
+  python2 setup.py pytest
+)}
+
+package_python-setuptools() {
+  depends=("${_deps[@]/#/python-}")
+  provides=('python-distribute')
+  replaces=('python-distribute')
+
+  cd "$srcdir"/setuptools-$pkgver
+  python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 
--skip-build
+}
+
+package_python2-setuptools() {
+  depends=("${_deps[@]/#/python2-}")
+  provides=('python2-distribute')
+  replaces=('python2-distribute')
+
+  cd "$srcdir"/setuptools-$pkgver-py2
+  python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 
--skip-build
+  rm "$pkgdir"/usr/bin/easy_install
+}


[arch-commits] Commit in python-setuptools/repos (testing-any testing-any/PKGBUILD)

2018-08-17 Thread Felix Yan via arch-commits
Date: Friday, August 17, 2018 @ 19:43:36
  Author: felixonmars
Revision: 332121

archrelease: copy trunk to testing-any

Added:
  python-setuptools/repos/testing-any/
  python-setuptools/repos/testing-any/PKGBUILD
(from rev 332120, python-setuptools/trunk/PKGBUILD)

--+
 PKGBUILD |  108 +
 1 file changed, 108 insertions(+)

Copied: python-setuptools/repos/testing-any/PKGBUILD (from rev 332120, 
python-setuptools/trunk/PKGBUILD)
===
--- testing-any/PKGBUILD(rev 0)
+++ testing-any/PKGBUILD2018-08-17 19:43:36 UTC (rev 332121)
@@ -0,0 +1,108 @@
+# $Id$
+# Maintainer: Angel Velasquez 
+# Maintainer: Felix Yan 
+# Contributor: Eli Schwartz 
+
+pkgbase=python-setuptools
+pkgname=('python-setuptools' 'python2-setuptools')
+pkgver=40.1.0
+pkgrel=1
+epoch=1
+pkgdesc="Easily download, build, install, upgrade, and uninstall Python 
packages"
+arch=('any')
+license=('PSF')
+url="https://pypi.org/project/setuptools/;
+_deps=('appdirs' 'packaging')
+makedepends=("${_deps[@]/#/python-}" "${_deps[@]/#/python2-}" 'git')
+_checkdeps=('mock' 'pip' 'pytest-fixture-config' 'pytest-flake8'
+'pytest-runner' 'pytest-virtualenv' 'wheel')
+checkdepends=("${_checkdeps[@]/#/python-}" "${_checkdeps[@]/#/python2-}" 
'python-paver' 'git')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/pypa/setuptools/archive/v$pkgver.tar.gz;)
+sha512sums=('b9d9c6752aac5879a128054394c764fe14900114a0922153a09d8cf3d7492526dde3faac52482e250493573b2898e395868ec4577d8418ab81567dcab2974f0a')
+
+export SETUPTOOLS_INSTALL_WINDOWS_SPECIFIC_FILES=0
+
+prepare() {
+  rm -r setuptools-$pkgver/{pkg_resources,setuptools}/{extern,_vendor}
+
+  # Upstream devendoring logic is badly broken, see:
+  # https://bugs.archlinux.org/task/58670
+  # https://github.com/pypa/pip/issues/5429
+  # https://github.com/pypa/setuptools/issues/1383
+  # The simplest fix is to simply rewrite import paths to use the canonical
+  # location in the first place
+  for _module in setuptools pkg_resources '' ; do
+  find setuptools-$pkgver/$_module -name \*.py -exec sed -i \
+  -e 's/from '$_module.extern' import/import/' \
+  -e 's/from '$_module.extern'./from /' \
+  -e 's/import '$_module.extern'./import /' \
+  -e "s/__import__('$_module.extern./__import__('/" \
+  {} +
+done
+
+  # Remove post-release tag since we are using stable tags
+  sed -e '/tag_build = .post/d' \
+  -e '/tag_date = 1/d' \
+  -i setuptools-$pkgver/setup.cfg
+
+  # 'Clean' installation is expected to fail since we removed bundled packages
+  sed -i '/^def test_clean_env_install/i import 
pytest\n\n...@pytest.mark.xfail' 
setuptools-$pkgver/setuptools/tests/test_virtualenv.py
+
+  # Tests failed. Importing an unbundled new setuptools in a virtualenv does 
not work, but this won't
+  # affect normal virtualenv usage (which don't have to import the unbundled 
setuptools in *current*
+  # dir.
+  sed -e '/^def test_pip_upgrade_from_source/i @pytest.mark.xfail' \
+  -e '/^def test_test_command_install_requirements/i @pytest.mark.xfail' \
+  -i setuptools-$pkgver/setuptools/tests/test_virtualenv.py
+
+  cp -a setuptools-$pkgver{,-py2}
+
+  cd "$srcdir"/setuptools-$pkgver
+  sed -i -e "s|^#\!.*/usr/bin/env python|#!/usr/bin/env python3|" 
setuptools/command/easy_install.py
+
+  cd "$srcdir"/setuptools-$pkgver-py2
+  sed -i -e "s|^#\!.*/usr/bin/env python|#!/usr/bin/env python2|" 
setuptools/command/easy_install.py
+}
+
+build() {
+  cd "$srcdir"/setuptools-$pkgver
+  python bootstrap.py
+  python setup.py build
+
+  cd "$srcdir"/setuptools-$pkgver-py2
+  python2 bootstrap.py
+  python2 setup.py build
+}
+
+check() { (
+  # Workaround UTF-8 tests by setting LC_CTYPE
+  export LC_CTYPE=en_US.UTF-8
+
+  # https://github.com/pypa/setuptools/pull/810
+  export PYTHONDONTWRITEBYTECODE=1
+
+  cd "$srcdir"/setuptools-$pkgver
+  python setup.py pytest
+
+  cd "$srcdir"/setuptools-$pkgver-py2
+  python2 setup.py pytest
+)}
+
+package_python-setuptools() {
+  depends=("${_deps[@]/#/python-}")
+  provides=('python-distribute')
+  replaces=('python-distribute')
+
+  cd "$srcdir"/setuptools-$pkgver
+  python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 
--skip-build
+}
+
+package_python2-setuptools() {
+  depends=("${_deps[@]/#/python2-}")
+  provides=('python2-distribute')
+  replaces=('python2-distribute')
+
+  cd "$srcdir"/setuptools-$pkgver-py2
+  python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 
--skip-build
+  rm "$pkgdir"/usr/bin/easy_install
+}


[arch-commits] Commit in python-setuptools/repos (testing-any testing-any/PKGBUILD)

2017-10-12 Thread Felix Yan
Date: Thursday, October 12, 2017 @ 14:20:56
  Author: felixonmars
Revision: 307545

archrelease: copy trunk to testing-any

Added:
  python-setuptools/repos/testing-any/
  python-setuptools/repos/testing-any/PKGBUILD
(from rev 307544, python-setuptools/trunk/PKGBUILD)

--+
 PKGBUILD |   97 +
 1 file changed, 97 insertions(+)

Copied: python-setuptools/repos/testing-any/PKGBUILD (from rev 307544, 
python-setuptools/trunk/PKGBUILD)
===
--- testing-any/PKGBUILD(rev 0)
+++ testing-any/PKGBUILD2017-10-12 14:20:56 UTC (rev 307545)
@@ -0,0 +1,97 @@
+# $Id$
+# Maintainer: Angel Velasquez 
+# Maintainer: Felix Yan 
+
+pkgbase=python-setuptools
+pkgname=('python-setuptools' 'python2-setuptools')
+pkgver=36.6.0
+pkgrel=1
+epoch=1
+pkgdesc="Easily download, build, install, upgrade, and uninstall Python 
packages"
+arch=('any')
+license=('PSF')
+url="http://pypi.python.org/pypi/setuptools;
+makedepends=('python-packaging' 'python2-packaging' 'python-appdirs' 
'python2-appdirs' 'python-pip'
+ 'python2-pip')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner' 
'python-pytest-flake8'
+  'python2-pytest-flake8' 'python-mock' 'python2-mock' 
'python-pytest-fixture-config'
+  'python2-pytest-fixture-config' 'python-pytest-virtualenv' 
'python2-pytest-virtualenv'
+  'python-wheel' 'python2-wheel' 'git')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/pypa/setuptools/archive/v$pkgver.tar.gz;)
+sha512sums=('e3fce485f770e0c9642c3242fd21d64333fa460359f687193543084e32cef344020f5528f56288b76a0df76faa451b52bcc7c872c645b59d3f89874df28bda81')
+
+prepare() {
+  # Don't download and install deps
+  sed -i '/pip.main(args)/d' setuptools-$pkgver/bootstrap.py
+
+  rm -r setuptools-$pkgver/pkg_resources/_vendor
+
+  # Remove post-release tag since we are using stable tags
+  sed -e '/tag_build = .post/d' \
+  -e '/tag_date = 1/d' \
+  -i setuptools-$pkgver/setup.cfg
+
+  # 'Clean' installation is expected to fail since we removed bundled packages
+  sed -i '/^def test_clean_env_install/i import 
pytest\n\n...@pytest.mark.xfail' 
setuptools-$pkgver/setuptools/tests/test_virtualenv.py
+
+  # Tests failed. Importing an unbundled new setuptools in a virtualenv does 
not work, but this won't
+  # affect normal virtualenv usage (which don't have to import the unbundled 
setuptools in *current*
+  # dir.
+  sed -e '/^def test_pip_upgrade_from_source/i @pytest.mark.xfail' \
+  -e '/^def test_test_command_install_requirements/i @pytest.mark.xfail' \
+  -i setuptools-$pkgver/setuptools/tests/test_virtualenv.py
+
+  cp -a setuptools-$pkgver{,-py2}
+
+  cd "$srcdir"/setuptools-$pkgver
+  sed -i -e "s|^#\!.*/usr/bin/env python|#!/usr/bin/env python3|" 
setuptools/command/easy_install.py
+
+  cd "$srcdir"/setuptools-$pkgver-py2
+  sed -i -e "s|^#\!.*/usr/bin/env python|#!/usr/bin/env python2|" 
setuptools/command/easy_install.py
+  sed -i -e "s|'pip'|'pip2'|" 
setuptools/tests/{test_develop.py,test_namespaces.py}
+
+  export SETUPTOOLS_INSTALL_WINDOWS_SPECIFIC_FILES=0
+}
+
+build() {
+  cd "$srcdir"/setuptools-$pkgver
+  python bootstrap.py
+  python setup.py build
+
+  cd "$srcdir"/setuptools-$pkgver-py2
+  python2 bootstrap.py
+  python2 setup.py build
+}
+
+check() { (
+  # Workaround UTF-8 tests by setting LC_CTYPE
+  export LC_CTYPE=en_US.UTF-8
+
+  # https://github.com/pypa/setuptools/pull/810
+  export PYTHONDONTWRITEBYTECODE=1
+
+  cd "$srcdir"/setuptools-$pkgver
+  python setup.py pytest
+
+  cd "$srcdir"/setuptools-$pkgver-py2
+  python2 setup.py pytest
+)}
+
+package_python-setuptools() {
+  depends=('python-packaging' 'python-appdirs')
+  provides=('python-distribute')
+  replaces=('python-distribute')
+
+  cd "$srcdir"/setuptools-$pkgver
+  python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 
--skip-build
+}
+
+package_python2-setuptools() {
+  depends=('python2-packaging' 'python2-appdirs')
+  provides=('python2-distribute')
+  replaces=('python2-distribute')
+
+  cd "$srcdir"/setuptools-$pkgver-py2
+  python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 
--skip-build
+  rm "$pkgdir"/usr/bin/easy_install
+}


[arch-commits] Commit in python-setuptools/repos (testing-any testing-any/PKGBUILD)

2017-09-15 Thread Felix Yan
Date: Friday, September 15, 2017 @ 19:34:03
  Author: felixonmars
Revision: 305620

archrelease: copy trunk to testing-any

Added:
  python-setuptools/repos/testing-any/
  python-setuptools/repos/testing-any/PKGBUILD
(from rev 305619, python-setuptools/trunk/PKGBUILD)

--+
 PKGBUILD |   97 +
 1 file changed, 97 insertions(+)

Copied: python-setuptools/repos/testing-any/PKGBUILD (from rev 305619, 
python-setuptools/trunk/PKGBUILD)
===
--- testing-any/PKGBUILD(rev 0)
+++ testing-any/PKGBUILD2017-09-15 19:34:03 UTC (rev 305620)
@@ -0,0 +1,97 @@
+# $Id$
+# Maintainer: Angel Velasquez 
+# Maintainer: Felix Yan 
+
+pkgbase=python-setuptools
+pkgname=('python-setuptools' 'python2-setuptools')
+pkgver=36.5.0
+pkgrel=1
+epoch=1
+pkgdesc="Easily download, build, install, upgrade, and uninstall Python 
packages"
+arch=('any')
+license=('PSF')
+url="http://pypi.python.org/pypi/setuptools;
+makedepends=('python-packaging' 'python2-packaging' 'python-appdirs' 
'python2-appdirs' 'python-pip'
+ 'python2-pip')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner' 
'python-pytest-flake8'
+  'python2-pytest-flake8' 'python-mock' 'python2-mock' 
'python-pytest-fixture-config'
+  'python2-pytest-fixture-config' 'python-pytest-virtualenv' 
'python2-pytest-virtualenv'
+  'git')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/pypa/setuptools/archive/v$pkgver.tar.gz;)
+sha512sums=('34579579c21ff68f4ff71eeb1140dca4d4308756b4ce5c58dd1ddd25c004c6390c4b45feda83e505380685a8dce4b7dbdbd2d83c3fb3a89879df945c5a5342a6')
+
+prepare() {
+  # Don't download and install deps
+  sed -i '/pip.main(args)/d' setuptools-$pkgver/bootstrap.py
+
+  rm -r setuptools-$pkgver/pkg_resources/_vendor
+
+  # Remove post-release tag since we are using stable tags
+  sed -e '/tag_build = .post/d' \
+  -e '/tag_date = 1/d' \
+  -i setuptools-$pkgver/setup.cfg
+
+  # 'Clean' installation is expected to fail since we removed bundled packages
+  sed -i '/^def test_clean_env_install/i import 
pytest\n\n...@pytest.mark.xfail' 
setuptools-$pkgver/setuptools/tests/test_virtualenv.py
+
+  # Tests failed. Importing an unbundled new setuptools in a virtualenv does 
not work, but this won't
+  # affect normal virtualenv usage (which don't have to import the unbundled 
setuptools in *current*
+  # dir.
+  sed -e '/^def test_pip_upgrade_from_source/i @pytest.mark.xfail' \
+  -e '/^def test_test_command_install_requirements/i @pytest.mark.xfail' \
+  -i setuptools-$pkgver/setuptools/tests/test_virtualenv.py
+
+  cp -a setuptools-$pkgver{,-py2}
+
+  cd "$srcdir"/setuptools-$pkgver
+  sed -i -e "s|^#\!.*/usr/bin/env python|#!/usr/bin/env python3|" 
setuptools/command/easy_install.py
+
+  cd "$srcdir"/setuptools-$pkgver-py2
+  sed -i -e "s|^#\!.*/usr/bin/env python|#!/usr/bin/env python2|" 
setuptools/command/easy_install.py
+  sed -i -e "s|'pip'|'pip2'|" 
setuptools/tests/{test_develop.py,test_namespaces.py}
+
+  export SETUPTOOLS_INSTALL_WINDOWS_SPECIFIC_FILES=0
+}
+
+build() {
+  cd "$srcdir"/setuptools-$pkgver
+  python bootstrap.py
+  python setup.py build
+
+  cd "$srcdir"/setuptools-$pkgver-py2
+  python2 bootstrap.py
+  python2 setup.py build
+}
+
+check() { (
+  # Workaround UTF-8 tests by setting LC_CTYPE
+  export LC_CTYPE=en_US.UTF-8
+
+  # https://github.com/pypa/setuptools/pull/810
+  export PYTHONDONTWRITEBYTECODE=1
+
+  cd "$srcdir"/setuptools-$pkgver
+  python setup.py pytest
+
+  cd "$srcdir"/setuptools-$pkgver-py2
+  python2 setup.py pytest
+)}
+
+package_python-setuptools() {
+  depends=('python-packaging' 'python-appdirs')
+  provides=('python-distribute')
+  replaces=('python-distribute')
+
+  cd "$srcdir"/setuptools-$pkgver
+  python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 
--skip-build
+}
+
+package_python2-setuptools() {
+  depends=('python2-packaging' 'python2-appdirs')
+  provides=('python2-distribute')
+  replaces=('python2-distribute')
+
+  cd "$srcdir"/setuptools-$pkgver-py2
+  python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 
--skip-build
+  rm "$pkgdir"/usr/bin/easy_install
+}


[arch-commits] Commit in python-setuptools/repos (testing-any testing-any/PKGBUILD)

2017-09-03 Thread Felix Yan
Date: Monday, September 4, 2017 @ 00:49:55
  Author: felixonmars
Revision: 304628

archrelease: copy trunk to testing-any

Added:
  python-setuptools/repos/testing-any/
  python-setuptools/repos/testing-any/PKGBUILD
(from rev 304627, python-setuptools/trunk/PKGBUILD)

--+
 PKGBUILD |   97 +
 1 file changed, 97 insertions(+)

Copied: python-setuptools/repos/testing-any/PKGBUILD (from rev 304627, 
python-setuptools/trunk/PKGBUILD)
===
--- testing-any/PKGBUILD(rev 0)
+++ testing-any/PKGBUILD2017-09-04 00:49:55 UTC (rev 304628)
@@ -0,0 +1,97 @@
+# $Id$
+# Maintainer: Angel Velasquez 
+# Maintainer: Felix Yan 
+
+pkgbase=python-setuptools
+pkgname=('python-setuptools' 'python2-setuptools')
+pkgver=36.4.0
+pkgrel=1
+epoch=1
+pkgdesc="Easily download, build, install, upgrade, and uninstall Python 
packages"
+arch=('any')
+license=('PSF')
+url="http://pypi.python.org/pypi/setuptools;
+makedepends=('python-packaging' 'python2-packaging' 'python-appdirs' 
'python2-appdirs' 'python-pip'
+ 'python2-pip')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner' 
'python-pytest-flake8'
+  'python2-pytest-flake8' 'python-mock' 'python2-mock' 
'python-pytest-fixture-config'
+  'python2-pytest-fixture-config' 'python-pytest-virtualenv' 
'python2-pytest-virtualenv'
+  'git')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/pypa/setuptools/archive/v$pkgver.tar.gz;)
+sha512sums=('86bad0c16b7bde4c0a37867db04d76a90a7c968a8926611f4ad26f3d9185b33aa040072ecd7d23540a1434d19a742db3667387d4df975de489b494103b2df0e9')
+
+prepare() {
+  # Don't download and install deps
+  sed -i '/pip.main(args)/d' setuptools-$pkgver/bootstrap.py
+
+  rm -r setuptools-$pkgver/pkg_resources/_vendor
+
+  # Remove post-release tag since we are using stable tags
+  sed -e '/tag_build = .post/d' \
+  -e '/tag_date = 1/d' \
+  -i setuptools-$pkgver/setup.cfg
+
+  # 'Clean' installation is expected to fail since we removed bundled packages
+  sed -i '/^def test_clean_env_install/i import 
pytest\n\n...@pytest.mark.xfail' 
setuptools-$pkgver/setuptools/tests/test_virtualenv.py
+
+  # Tests failed. Importing an unbundled new setuptools in a virtualenv does 
not work, but this won't
+  # affect normal virtualenv usage (which don't have to import the unbundled 
setuptools in *current*
+  # dir.
+  sed -e '/^def test_pip_upgrade_from_source/i @pytest.mark.xfail' \
+  -e '/^def test_test_command_install_requirements/i @pytest.mark.xfail' \
+  -i setuptools-$pkgver/setuptools/tests/test_virtualenv.py
+
+  cp -a setuptools-$pkgver{,-py2}
+
+  cd "$srcdir"/setuptools-$pkgver
+  sed -i -e "s|^#\!.*/usr/bin/env python|#!/usr/bin/env python3|" 
setuptools/command/easy_install.py
+
+  cd "$srcdir"/setuptools-$pkgver-py2
+  sed -i -e "s|^#\!.*/usr/bin/env python|#!/usr/bin/env python2|" 
setuptools/command/easy_install.py
+  sed -i -e "s|'pip'|'pip2'|" 
setuptools/tests/{test_develop.py,test_namespaces.py}
+
+  export SETUPTOOLS_INSTALL_WINDOWS_SPECIFIC_FILES=0
+}
+
+build() {
+  cd "$srcdir"/setuptools-$pkgver
+  python bootstrap.py
+  python setup.py build
+
+  cd "$srcdir"/setuptools-$pkgver-py2
+  python2 bootstrap.py
+  python2 setup.py build
+}
+
+check() { (
+  # Workaround UTF-8 tests by setting LC_CTYPE
+  export LC_CTYPE=en_US.UTF-8
+
+  # https://github.com/pypa/setuptools/pull/810
+  export PYTHONDONTWRITEBYTECODE=1
+
+  cd "$srcdir"/setuptools-$pkgver
+  python setup.py pytest
+
+  cd "$srcdir"/setuptools-$pkgver-py2
+  python2 setup.py pytest
+)}
+
+package_python-setuptools() {
+  depends=('python-packaging' 'python-appdirs')
+  provides=('python-distribute')
+  replaces=('python-distribute')
+
+  cd "$srcdir"/setuptools-$pkgver
+  python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 
--skip-build
+}
+
+package_python2-setuptools() {
+  depends=('python2-packaging' 'python2-appdirs')
+  provides=('python2-distribute')
+  replaces=('python2-distribute')
+
+  cd "$srcdir"/setuptools-$pkgver-py2
+  python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 
--skip-build
+  rm "$pkgdir"/usr/bin/easy_install
+}


[arch-commits] Commit in python-setuptools/repos (testing-any testing-any/PKGBUILD)

2017-08-28 Thread Felix Yan
Date: Monday, August 28, 2017 @ 19:34:08
  Author: felixonmars
Revision: 304307

archrelease: copy trunk to testing-any

Added:
  python-setuptools/repos/testing-any/
  python-setuptools/repos/testing-any/PKGBUILD
(from rev 304306, python-setuptools/trunk/PKGBUILD)

--+
 PKGBUILD |   97 +
 1 file changed, 97 insertions(+)

Copied: python-setuptools/repos/testing-any/PKGBUILD (from rev 304306, 
python-setuptools/trunk/PKGBUILD)
===
--- testing-any/PKGBUILD(rev 0)
+++ testing-any/PKGBUILD2017-08-28 19:34:08 UTC (rev 304307)
@@ -0,0 +1,97 @@
+# $Id$
+# Maintainer: Angel Velasquez 
+# Maintainer: Felix Yan 
+
+pkgbase=python-setuptools
+pkgname=('python-setuptools' 'python2-setuptools')
+pkgver=36.3.0
+pkgrel=1
+epoch=1
+pkgdesc="Easily download, build, install, upgrade, and uninstall Python 
packages"
+arch=('any')
+license=('PSF')
+url="http://pypi.python.org/pypi/setuptools;
+makedepends=('python-packaging' 'python2-packaging' 'python-appdirs' 
'python2-appdirs' 'python-pip'
+ 'python2-pip')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner' 
'python-pytest-flake8'
+  'python2-pytest-flake8' 'python-mock' 'python2-mock' 
'python-pytest-fixture-config'
+  'python2-pytest-fixture-config' 'python-pytest-virtualenv' 
'python2-pytest-virtualenv'
+  'git')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/pypa/setuptools/archive/v$pkgver.tar.gz;)
+sha512sums=('22527410ea30cbc9788e058753c6ebe9c7c9f36b16d783c004fd3f0b6849c6955f4b5b221e5bc31a6503011324f51cec5679dc6188272382d02ac043b03d4993')
+
+prepare() {
+  # Don't download and install deps
+  sed -i '/pip.main(args)/d' setuptools-$pkgver/bootstrap.py
+
+  rm -r setuptools-$pkgver/pkg_resources/_vendor
+
+  # Remove post-release tag since we are using stable tags
+  sed -e '/tag_build = .post/d' \
+  -e '/tag_date = 1/d' \
+  -i setuptools-$pkgver/setup.cfg
+
+  # 'Clean' installation is expected to fail since we removed bundled packages
+  sed -i '/^def test_clean_env_install/i import 
pytest\n\n...@pytest.mark.xfail' 
setuptools-$pkgver/setuptools/tests/test_virtualenv.py
+
+  # Tests failed. Importing an unbundled new setuptools in a virtualenv does 
not work, but this won't
+  # affect normal virtualenv usage (which don't have to import the unbundled 
setuptools in *current*
+  # dir.
+  sed -e '/^def test_pip_upgrade_from_source/i @pytest.mark.xfail' \
+  -e '/^def test_test_command_install_requirements/i @pytest.mark.xfail' \
+  -i setuptools-$pkgver/setuptools/tests/test_virtualenv.py
+
+  cp -a setuptools-$pkgver{,-py2}
+
+  cd "$srcdir"/setuptools-$pkgver
+  sed -i -e "s|^#\!.*/usr/bin/env python|#!/usr/bin/env python3|" 
setuptools/command/easy_install.py
+
+  cd "$srcdir"/setuptools-$pkgver-py2
+  sed -i -e "s|^#\!.*/usr/bin/env python|#!/usr/bin/env python2|" 
setuptools/command/easy_install.py
+  sed -i -e "s|'pip'|'pip2'|" 
setuptools/tests/{test_develop.py,test_namespaces.py}
+
+  export SETUPTOOLS_INSTALL_WINDOWS_SPECIFIC_FILES=0
+}
+
+build() {
+  cd "$srcdir"/setuptools-$pkgver
+  python bootstrap.py
+  python setup.py build
+
+  cd "$srcdir"/setuptools-$pkgver-py2
+  python2 bootstrap.py
+  python2 setup.py build
+}
+
+check() { (
+  # Workaround UTF-8 tests by setting LC_CTYPE
+  export LC_CTYPE=en_US.UTF-8
+
+  # https://github.com/pypa/setuptools/pull/810
+  export PYTHONDONTWRITEBYTECODE=1
+
+  cd "$srcdir"/setuptools-$pkgver
+  python setup.py pytest
+
+  cd "$srcdir"/setuptools-$pkgver-py2
+  python2 setup.py pytest
+)}
+
+package_python-setuptools() {
+  depends=('python-packaging' 'python-appdirs')
+  provides=('python-distribute')
+  replaces=('python-distribute')
+
+  cd "$srcdir"/setuptools-$pkgver
+  python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 
--skip-build
+}
+
+package_python2-setuptools() {
+  depends=('python2-packaging' 'python2-appdirs')
+  provides=('python2-distribute')
+  replaces=('python2-distribute')
+
+  cd "$srcdir"/setuptools-$pkgver-py2
+  python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 
--skip-build
+  rm "$pkgdir"/usr/bin/easy_install
+}


[arch-commits] Commit in python-setuptools/repos (testing-any testing-any/PKGBUILD)

2016-12-01 Thread Felix Yan
Date: Friday, December 2, 2016 @ 02:20:08
  Author: felixonmars
Revision: 282507

archrelease: copy trunk to testing-any

Added:
  python-setuptools/repos/testing-any/
  python-setuptools/repos/testing-any/PKGBUILD
(from rev 282506, python-setuptools/trunk/PKGBUILD)

--+
 PKGBUILD |   82 +
 1 file changed, 82 insertions(+)

Copied: python-setuptools/repos/testing-any/PKGBUILD (from rev 282506, 
python-setuptools/trunk/PKGBUILD)
===
--- testing-any/PKGBUILD(rev 0)
+++ testing-any/PKGBUILD2016-12-02 02:20:08 UTC (rev 282507)
@@ -0,0 +1,82 @@
+# $Id$
+# Maintainer: Angel Velasquez 
+# Maintainer: Felix Yan 
+
+pkgbase=python-setuptools
+pkgname=('python-setuptools' 'python2-setuptools')
+pkgver=30.0.0
+pkgrel=1
+epoch=1
+pkgdesc="Easily download, build, install, upgrade, and uninstall Python 
packages"
+arch=('any')
+license=('PSF')
+url="http://pypi.python.org/pypi/setuptools;
+makedepends=('python-packaging' 'python2-packaging' 'python-mock' 
'python2-mock' 'python-appdirs'
+ 'python2-appdirs' 'git')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner' 
'python-pytest-flake8'
+  'python2-pytest-flake8' 'python-pip' 'git')
+source=("git+https://github.com/pypa/setuptools.git#tag=v$pkgver;)
+sha512sums=('SKIP')
+
+prepare() {
+  # Remove vendored packages
+  rm -rv setuptools/pkg_resources/_vendor
+
+  # Remove post-release tag since we are using stable tags
+  sed -e '/tag_build = .post/d' \
+  -e '/tag_date = 1/d' \
+  -i setuptools/setup.cfg
+
+  cp -a setuptools{,-py2}
+
+  cd "$srcdir"/setuptools
+  sed -i -e "s|^#\!.*/usr/bin/env python|#!/usr/bin/env python3|" 
setuptools/command/easy_install.py
+
+  cd "$srcdir"/setuptools-py2
+  sed -i -e "s|^#\!.*/usr/bin/env python|#!/usr/bin/env python2|" 
setuptools/command/easy_install.py
+
+  export SETUPTOOLS_INSTALL_WINDOWS_SPECIFIC_FILES=0
+}
+
+build() {
+  cd "$srcdir"/setuptools
+  python bootstrap.py
+  python setup.py build
+
+  cd "$srcdir"/setuptools-py2
+  python2 bootstrap.py
+  python2 setup.py build
+}
+
+check() {
+  # Workaround UTF-8 tests by setting LC_CTYPE
+  export LC_CTYPE=en_US.utf8
+
+  # https://github.com/pypa/setuptools/pull/810
+  export PYTHONDONTWRITEBYTECODE=1
+
+  cd "$srcdir"/setuptools
+  python setup.py ptr
+
+  cd "$srcdir"/setuptools-py2
+  python2 setup.py ptr
+}
+ 
+package_python-setuptools() {
+  depends=('python-packaging' 'python-appdirs')
+  provides=('python-distribute')
+  replaces=('python-distribute')
+
+  cd "$srcdir"/setuptools
+  python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 
--skip-build
+}
+ 
+package_python2-setuptools() {
+  depends=('python2-packaging' 'python2-appdirs')
+  provides=('python2-distribute')
+  replaces=('python2-distribute')
+
+  cd "$srcdir"/setuptools-py2
+  python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 
--skip-build
+  rm "$pkgdir"/usr/bin/easy_install
+}


[arch-commits] Commit in python-setuptools/repos (testing-any testing-any/PKGBUILD)

2016-10-16 Thread Felix Yan
Date: Monday, October 17, 2016 @ 03:09:25
  Author: felixonmars
Revision: 278866

archrelease: copy trunk to testing-any

Added:
  python-setuptools/repos/testing-any/
  python-setuptools/repos/testing-any/PKGBUILD
(from rev 278865, python-setuptools/trunk/PKGBUILD)

--+
 PKGBUILD |   83 +
 1 file changed, 83 insertions(+)

Copied: python-setuptools/repos/testing-any/PKGBUILD (from rev 278865, 
python-setuptools/trunk/PKGBUILD)
===
--- testing-any/PKGBUILD(rev 0)
+++ testing-any/PKGBUILD2016-10-17 03:09:25 UTC (rev 278866)
@@ -0,0 +1,83 @@
+# $Id$
+# Maintainer: Angel Velasquez 
+# Maintainer: Felix Yan 
+
+pkgbase=python-setuptools
+pkgname=('python-setuptools' 'python2-setuptools')
+pkgver=28.6.0
+pkgrel=1
+epoch=1
+pkgdesc="Easily download, build, install, upgrade, and uninstall Python 
packages"
+arch=('any')
+license=('PSF')
+url="http://pypi.python.org/pypi/setuptools;
+makedepends=('python-packaging' 'python2-packaging' 'python-mock' 
'python2-mock' 'python-appdirs'
+ 'python2-appdirs' 'git')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner' 
'python-pytest-flake8'
+  'python2-pytest-flake8' 'git')
+source=("git+https://github.com/pypa/setuptools.git#tag=v$pkgver;)
+sha512sums=('SKIP')
+
+prepare() {
+  # Remove vendored packages
+  rm -rv setuptools/pkg_resources/_vendor
+
+  # Remove post-release tag since we are using stable tags
+  sed -e '/tag_build = .post/d' \
+  -e '/tag_date = 1/d' \
+  -i setuptools/setup.cfg
+
+  cp -a setuptools{,-py2}
+
+  cd "$srcdir"/setuptools
+  sed -i -e "s|^#\!.*/usr/bin/env python|#!/usr/bin/env python3|" 
setuptools/command/easy_install.py
+
+  cd "$srcdir"/setuptools-py2
+  sed -i -e "s|^#\!.*/usr/bin/env python|#!/usr/bin/env python2|" 
setuptools/command/easy_install.py
+}
+
+build() {
+  cd "$srcdir"/setuptools
+  python bootstrap.py
+  python setup.py build
+
+  cd "$srcdir"/setuptools-py2
+  python2 bootstrap.py
+  python2 setup.py build
+}
+
+check() {
+  # Workaround UTF-8 tests by setting LC_CTYPE
+  export LC_CTYPE=en_US.utf8
+
+  # https://github.com/pypa/setuptools/pull/810
+  export PYTHONDONTWRITEBYTECODE=1
+
+  (
+  cd "$srcdir"/setuptools
+  python setup.py ptr
+
+  cd "$srcdir"/setuptools-py2
+  python2 setup.py ptr
+  ) || warning "Tests failed"
+  # https://github.com/pypa/setuptools/issues/816
+}
+ 
+package_python-setuptools() {
+  depends=('python-packaging' 'python-appdirs')
+  provides=('python-distribute')
+  replaces=('python-distribute')
+
+  cd "$srcdir"/setuptools
+  python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 
--skip-build
+}
+ 
+package_python2-setuptools() {
+  depends=('python2-packaging' 'python2-appdirs')
+  provides=('python2-distribute')
+  replaces=('python2-distribute')
+
+  cd "$srcdir"/setuptools-py2
+  python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 
--skip-build
+  rm "$pkgdir"/usr/bin/easy_install
+}


[arch-commits] Commit in python-setuptools/repos (testing-any testing-any/PKGBUILD)

2014-06-01 Thread Felix Yan
Date: Monday, June 2, 2014 @ 05:24:33
  Author: fyan
Revision: 214035

archrelease: copy trunk to testing-any

Added:
  python-setuptools/repos/testing-any/
  python-setuptools/repos/testing-any/PKGBUILD
(from rev 214034, python-setuptools/trunk/PKGBUILD)

--+
 PKGBUILD |   69 +
 1 file changed, 69 insertions(+)

Copied: python-setuptools/repos/testing-any/PKGBUILD (from rev 214034, 
python-setuptools/trunk/PKGBUILD)
===
--- testing-any/PKGBUILD(rev 0)
+++ testing-any/PKGBUILD2014-06-02 03:24:33 UTC (rev 214035)
@@ -0,0 +1,69 @@
+# $Id$
+# Maintainer: Angel Velasquez an...@archlinux.org
+# Maintainer: Felix Yan felixonm...@gmail.com
+
+pkgbase=python-setuptools
+pkgname=('python-setuptools' 'python2-setuptools')
+pkgver=4.0
+pkgrel=1
+pkgdesc=Easily download, build, install, upgrade, and uninstall Python 
packages
+arch=('any')
+license=('PSF')
+url=http://pypi.python.org/pypi/setuptools;
+makedepends=('python' 'python2')
+checkdepends=('python-pytest' 'python2-pytest')
+source=(http://pypi.python.org/packages/source/s/setuptools/setuptools-${pkgver}.tar.gz;)
+sha512sums=('a8236ecaa875d05c5c4b55ac8e39e864d0436f6c186405ab479afb38b4e6cc0b4fb142a8d071f236fdd5d4a363a7bc6bb0d8c9ceae48b8666c0feec5d4f5bf24')
+
+check() {
+  # Workaround UTF-8 tests by setting LC_CTYPE
+
+  # Check python3 module
+  cd ${srcdir}/setuptools-${pkgver}
+  LC_CTYPE=en_US.utf8 python3 setup.py test
+
+  # Check python2 module
+  cd ${srcdir}/setuptools-${pkgver}-python2
+  LC_CTYPE=en_US.utf8 python2 setup.py test
+}
+ 
+prepare() {
+  cp -a setuptools-${pkgver}{,-python2}
+
+  cd ${srcdir}/setuptools-${pkgver}
+  sed -i -e s|^#\!.*/usr/bin/python|#!/usr/bin/python3| 
setuptools/tests/test_resources.py
+  sed -i -e s|^#\!.*/usr/bin/env python|#!/usr/bin/env python3| 
setuptools/command/easy_install.py
+
+  cd ${srcdir}/setuptools-${pkgver}-python2
+  sed -i -e s|^#\!.*/usr/bin/python|#!/usr/bin/python2| 
setuptools/tests/test_resources.py
+  sed -i -e s|^#\!.*/usr/bin/env python|#!/usr/bin/env python2| 
setuptools/command/easy_install.py
+}
+
+build() {
+  # Build python 3 module
+  cd ${srcdir}/setuptools-${pkgver}
+  python3 setup.py build
+
+  # Build python 2 module
+  cd ${srcdir}/setuptools-${pkgver}-python2
+  python2 setup.py build
+}
+ 
+package_python-setuptools() {
+  depends=('python=3.4')
+  provides=('python-distribute')
+  replaces=('python-distribute')
+
+  cd ${srcdir}/setuptools-${pkgver}
+  python3 setup.py install --prefix=/usr --root=${pkgdir} --optimize=1 
--skip-build
+}
+ 
+package_python2-setuptools() {
+  depends=('python2=2.7')
+  provides=('python2-distribute' 'setuptools')
+  replaces=('python2-distribute' 'setuptools')
+
+  cd ${srcdir}/setuptools-${pkgver}-python2
+  python2 setup.py install --prefix=/usr --root=${pkgdir} --optimize=1 
--skip-build
+  rm ${pkgdir}/usr/bin/easy_install
+}



[arch-commits] Commit in python-setuptools/repos (testing-any testing-any/PKGBUILD)

2014-03-30 Thread Felix Yan
Date: Sunday, March 30, 2014 @ 16:23:23
  Author: fyan
Revision: 209242

archrelease: copy trunk to testing-any

Added:
  python-setuptools/repos/testing-any/
  python-setuptools/repos/testing-any/PKGBUILD
(from rev 209241, python-setuptools/trunk/PKGBUILD)

--+
 PKGBUILD |   68 +
 1 file changed, 68 insertions(+)

Copied: python-setuptools/repos/testing-any/PKGBUILD (from rev 209241, 
python-setuptools/trunk/PKGBUILD)
===
--- testing-any/PKGBUILD(rev 0)
+++ testing-any/PKGBUILD2014-03-30 14:23:23 UTC (rev 209242)
@@ -0,0 +1,68 @@
+# $Id$
+# Maintainer: Angel Velasquez an...@archlinux.org
+# Maintainer: Felix Yan felixonm...@gmail.com
+
+pkgbase=python-setuptools
+pkgname=('python-setuptools' 'python2-setuptools')
+pkgver=3.4
+pkgrel=1
+pkgdesc=Easily download, build, install, upgrade, and uninstall Python 
packages
+arch=('any')
+license=('PSF')
+url=http://pypi.python.org/pypi/setuptools;
+makedepends=('python' 'python2')
+checkdepends=('python-pytest' 'python2-pytest')
+source=(http://pypi.python.org/packages/source/s/setuptools/setuptools-${pkgver}.tar.gz;)
+md5sums=('30dd95909a50284a95e5241a9bad6e02')
+
+check() {
+  # Disabled tests for 3.4: 
https://bitbucket.org/pypa/setuptools/issue/180/34-release-fails-tests
+  # Check python3 module
+  cd ${srcdir}/setuptools-${pkgver}
+  #python3 setup.py test -r 'unittest:TextTestRunner'
+
+  # Check python2 module
+  cd ${srcdir}/setuptools-${pkgver}-python2
+  #python2 setup.py test -r 'unittest:TextTestRunner'
+}
+ 
+prepare() {
+  cp -a setuptools-${pkgver}{,-python2}
+
+  cd ${srcdir}/setuptools-${pkgver}
+  sed -i -e s|^#\!.*/usr/bin/python|#!/usr/bin/python3| 
setuptools/tests/test_resources.py
+  sed -i -e s|^#\!.*/usr/bin/env python|#!/usr/bin/env python3| 
setuptools/command/easy_install.py
+
+  cd ${srcdir}/setuptools-${pkgver}-python2
+  sed -i -e s|^#\!.*/usr/bin/python|#!/usr/bin/python2| 
setuptools/tests/test_resources.py
+  sed -i -e s|^#\!.*/usr/bin/env python|#!/usr/bin/env python2| 
setuptools/command/easy_install.py
+}
+
+build() {
+  # Build python 3 module
+  cd ${srcdir}/setuptools-${pkgver}
+  python3 setup.py build
+
+  # Build python 2 module
+  cd ${srcdir}/setuptools-${pkgver}-python2
+  python2 setup.py build
+}
+ 
+package_python-setuptools() {
+  depends=('python=3.3')
+  provides=('python-distribute')
+  replaces=('python-distribute')
+
+  cd ${srcdir}/setuptools-${pkgver}
+  python3 setup.py install --prefix=/usr --root=${pkgdir} --optimize=1 
--skip-build
+}
+ 
+package_python2-setuptools() {
+  depends=('python2=2.7')
+  provides=('python2-distribute' 'setuptools')
+  replaces=('python2-distribute' 'setuptools')
+
+  cd ${srcdir}/setuptools-${pkgver}-python2
+  python2 setup.py install --prefix=/usr --root=${pkgdir} --optimize=1 
--skip-build
+  rm ${pkgdir}/usr/bin/easy_install
+}



[arch-commits] Commit in python-setuptools/repos (testing-any testing-any/PKGBUILD)

2014-01-07 Thread Felix Yan
Date: Wednesday, January 8, 2014 @ 03:51:24
  Author: fyan
Revision: 203325

archrelease: copy trunk to testing-any

Added:
  python-setuptools/repos/testing-any/
  python-setuptools/repos/testing-any/PKGBUILD
(from rev 203324, python-setuptools/trunk/PKGBUILD)

--+
 PKGBUILD |   71 +
 1 file changed, 71 insertions(+)

Copied: python-setuptools/repos/testing-any/PKGBUILD (from rev 203324, 
python-setuptools/trunk/PKGBUILD)
===
--- testing-any/PKGBUILD(rev 0)
+++ testing-any/PKGBUILD2014-01-08 02:51:24 UTC (rev 203325)
@@ -0,0 +1,71 @@
+# $Id$
+# Maintainer: Angel Velasquez an...@archlinux.org
+# Maintainer: Felix Yan felixonm...@gmail.com
+
+pkgbase=python-setuptools
+pkgname=('python-setuptools' 'python2-setuptools')
+pkgver=2.1
+pkgrel=1
+pkgdesc=Easily download, build, install, upgrade, and uninstall Python 
packages
+arch=('any')
+license=('PSF')
+url=http://pypi.python.org/pypi/setuptools;
+makedepends=('python' 'python2')
+source=(http://pypi.python.org/packages/source/s/setuptools/setuptools-${pkgver}.tar.gz)
+md5sums=('2044725530450d0517393882dc4b7508')
+
+#check() {
+#   # Check python3 module
+#   cd ${srcdir}/setuptools-${pkgver}
+#   python3 setup.py test
+#
+#   # Check python2 module
+#   cd ${srcdir}/setuptools-${pkgver}-python2
+#   python2 setup.py test
+#}
+ 
+prepare() {
+   cd ${srcdir}
+ 
+   pushd setuptools-${pkgver}
+   popd
+ 
+   cp -a setuptools-${pkgver}{,-python2}
+ 
+   cd ${srcdir}/setuptools-${pkgver}
+   sed -i -e s|^#\!.*/usr/bin/python|#!/usr/bin/python3| 
setuptools/tests/test_resources.py
+   sed -i -e s|^#\!.*/usr/bin/env python|#!/usr/bin/env python3| 
setuptools/command/easy_install.py
+ 
+   cd ../setuptools-${pkgver}-python2
+   sed -i -e s|^#\!.*/usr/bin/python|#!/usr/bin/python2| 
setuptools/tests/test_resources.py
+   sed -i -e s|^#\!.*/usr/bin/env python|#!/usr/bin/env python2| 
setuptools/command/easy_install.py
+}
+
+build() {
+   # Build python 3 module
+   cd ${srcdir}/setuptools-${pkgver}
+   python3 setup.py build
+ 
+   # Build python 2 module
+   cd ../setuptools-${pkgver}-python2
+   python2 setup.py build
+}
+ 
+package_python-setuptools() {
+   depends=('python=3.3')
+   provides=('python-distribute')
+   replaces=('python-distribute')
+ 
+   cd ${srcdir}/setuptools-${pkgver}
+   python3 setup.py install --prefix=/usr --root=${pkgdir} --optimize=1 
--skip-build
+}
+ 
+package_python2-setuptools() {
+   depends=('python2=2.7')
+   provides=('python2-distribute' 'setuptools')
+   replaces=('python2-distribute' 'setuptools')
+ 
+   cd ${srcdir}/setuptools-${pkgver}-python2
+   python2 setup.py install --prefix=/usr --root=${pkgdir} --optimize=1 
--skip-build
+   rm ${pkgdir}/usr/bin/easy_install
+}



[arch-commits] Commit in python-setuptools/repos (testing-any testing-any/PKGBUILD)

2013-12-18 Thread Felix Yan
Date: Thursday, December 19, 2013 @ 03:33:24
  Author: fyan
Revision: 202191

archrelease: copy trunk to testing-any

Added:
  python-setuptools/repos/testing-any/
  python-setuptools/repos/testing-any/PKGBUILD
(from rev 202190, python-setuptools/trunk/PKGBUILD)

--+
 PKGBUILD |   69 +
 1 file changed, 69 insertions(+)

Copied: python-setuptools/repos/testing-any/PKGBUILD (from rev 202190, 
python-setuptools/trunk/PKGBUILD)
===
--- testing-any/PKGBUILD(rev 0)
+++ testing-any/PKGBUILD2013-12-19 02:33:24 UTC (rev 202191)
@@ -0,0 +1,69 @@
+# $Id$
+# Maintainer: Angel Velasquez an...@archlinux.org
+# Maintainer: Felix Yan felixonm...@gmail.com
+
+pkgbase=python-setuptools
+pkgname=('python-setuptools' 'python2-setuptools')
+pkgver=2.0.1
+pkgrel=1
+pkgdesc=Easily download, build, install, upgrade, and uninstall Python 
packages
+arch=('any')
+license=('PSF')
+url=http://pypi.python.org/pypi/setuptools;
+makedepends=('python' 'python2')
+source=(http://pypi.python.org/packages/source/s/setuptools/setuptools-${pkgver}.tar.gz)
+md5sums=('04aedc705644fda5848b7b428774e5ff')
+
+#check() {
+#   # Check python3 module
+#   cd ${srcdir}/setuptools-${pkgver}
+#   python3 setup.py test
+#
+#   # Check python2 module
+#   cd ${srcdir}/setuptools-${pkgver}-python2
+#   python2 setup.py test
+#}
+ 
+prepare() {
+   cd ${srcdir}
+ 
+   pushd setuptools-${pkgver}
+   popd
+ 
+   cp -a setuptools-${pkgver}{,-python2}
+ 
+   cd ${srcdir}/setuptools-${pkgver}
+   sed -i -e s|^#\!.*/usr/bin/python|#!/usr/bin/python3| 
setuptools/tests/test_resources.py
+ 
+   cd ../setuptools-${pkgver}-python2
+   sed -i -e s|^#\!.*/usr/bin/python|#!/usr/bin/python2| 
setuptools/tests/test_resources.py
+}
+
+build() {
+   # Build python 3 module
+   cd ${srcdir}/setuptools-${pkgver}
+   python3 setup.py build
+ 
+   # Build python 2 module
+   cd ../setuptools-${pkgver}-python2
+   python2 setup.py build
+}
+ 
+package_python-setuptools() {
+   depends=('python=3.3')
+   provides=('python-distribute')
+   replaces=('python-distribute')
+ 
+   cd ${srcdir}/setuptools-${pkgver}
+   python3 setup.py install --prefix=/usr --root=${pkgdir} --optimize=1 
--skip-build
+}
+ 
+package_python2-setuptools() {
+   depends=('python2=2.7')
+   provides=('python2-distribute' 'setuptools')
+   replaces=('python2-distribute' 'setuptools')
+ 
+   cd ${srcdir}/setuptools-${pkgver}-python2
+   python2 setup.py install --prefix=/usr --root=${pkgdir} --optimize=1 
--skip-build
+   rm ${pkgdir}/usr/bin/easy_install
+}



[arch-commits] Commit in python-setuptools/repos (testing-any testing-any/PKGBUILD)

2013-12-14 Thread Ángel Velásquez
Date: Sunday, December 15, 2013 @ 04:51:08
  Author: angvp
Revision: 201553

archrelease: copy trunk to testing-any

Added:
  python-setuptools/repos/testing-any/
  python-setuptools/repos/testing-any/PKGBUILD
(from rev 201552, python-setuptools/trunk/PKGBUILD)

--+
 PKGBUILD |   67 +
 1 file changed, 67 insertions(+)

Copied: python-setuptools/repos/testing-any/PKGBUILD (from rev 201552, 
python-setuptools/trunk/PKGBUILD)
===
--- testing-any/PKGBUILD(rev 0)
+++ testing-any/PKGBUILD2013-12-15 03:51:08 UTC (rev 201553)
@@ -0,0 +1,67 @@
+# $Id$
+# Maintainer: Angel Velasquez an...@archlinux.org
+pkgbase=python-setuptools
+pkgname=('python-setuptools' 'python2-setuptools')
+pkgver=2.0
+pkgrel=1
+pkgdesc=Easily download, build, install, upgrade, and uninstall Python 
packages
+arch=('any')
+license=('PSF')
+url=http://pypi.python.org/pypi/setuptools;
+makedepends=('python' 'python2')
+source=(http://pypi.python.org/packages/source/s/setuptools/setuptools-${pkgver}.tar.gz)
+md5sums=('887cdf417bc5d25326c66bb98c0dd160')
+
+#check() {
+#   # Check python3 module
+#   cd ${srcdir}/setuptools-${pkgver}
+#   python3 setup.py test
+#
+#   # Check python2 module
+#   cd ${srcdir}/setuptools-${pkgver}-python2
+#   python2 setup.py test
+#}
+ 
+prepare() {
+   cd ${srcdir}
+ 
+   pushd setuptools-${pkgver}
+   popd
+ 
+   cp -a setuptools-${pkgver}{,-python2}
+ 
+   cd ${srcdir}/setuptools-${pkgver}
+   sed -i -e s|^#\!.*/usr/bin/python|#!/usr/bin/python3| 
setuptools/tests/test_resources.py
+ 
+   cd ../setuptools-${pkgver}-python2
+   sed -i -e s|^#\!.*/usr/bin/python|#!/usr/bin/python2| 
setuptools/tests/test_resources.py
+}
+
+build() {
+   # Build python 3 module
+   cd ${srcdir}/setuptools-${pkgver}
+   python3 setup.py build
+ 
+   # Build python 2 module
+   cd ../setuptools-${pkgver}-python2
+   python2 setup.py build
+}
+ 
+package_python-setuptools() {
+   depends=('python=3.3')
+   provides=('python-distribute')
+   replaces=('python-distribute')
+ 
+   cd ${srcdir}/setuptools-${pkgver}
+   python3 setup.py install --prefix=/usr --root=${pkgdir} --optimize=1 
--skip-build
+}
+ 
+package_python2-setuptools() {
+   depends=('python2=2.7')
+   provides=('python2-distribute' 'setuptools')
+   replaces=('python2-distribute' 'setuptools')
+ 
+   cd ${srcdir}/setuptools-${pkgver}-python2
+   python2 setup.py install --prefix=/usr --root=${pkgdir} --optimize=1 
--skip-build
+   rm ${pkgdir}/usr/bin/easy_install
+}



[arch-commits] Commit in python-setuptools/repos (testing-any testing-any/PKGBUILD)

2013-12-04 Thread Ángel Velásquez
Date: Thursday, December 5, 2013 @ 01:24:54
  Author: angvp
Revision: 200779

archrelease: copy trunk to testing-any

Added:
  python-setuptools/repos/testing-any/
  python-setuptools/repos/testing-any/PKGBUILD
(from rev 200778, python-setuptools/trunk/PKGBUILD)

--+
 PKGBUILD |   67 +
 1 file changed, 67 insertions(+)

Copied: python-setuptools/repos/testing-any/PKGBUILD (from rev 200778, 
python-setuptools/trunk/PKGBUILD)
===
--- testing-any/PKGBUILD(rev 0)
+++ testing-any/PKGBUILD2013-12-05 00:24:54 UTC (rev 200779)
@@ -0,0 +1,67 @@
+# $Id$
+# Maintainer: Angel Velasquez an...@archlinux.org
+pkgbase=python-setuptools
+pkgname=('python-setuptools' 'python2-setuptools')
+pkgver=1.4.2
+pkgrel=1
+pkgdesc=Easily download, build, install, upgrade, and uninstall Python 
packages
+arch=('any')
+license=('PSF')
+url=http://pypi.python.org/pypi/setuptools;
+makedepends=('python' 'python2')
+source=(http://pypi.python.org/packages/source/s/setuptools/setuptools-${pkgver}.tar.gz)
+md5sums=('13951be6711438073fbe50843e7f141f')
+
+#check() {
+#   # Check python3 module
+#   cd ${srcdir}/setuptools-${pkgver}
+#   python3 setup.py test
+#
+#   # Check python2 module
+#   cd ${srcdir}/setuptools-${pkgver}-python2
+#   python2 setup.py test
+#}
+ 
+prepare() {
+   cd ${srcdir}
+ 
+   pushd setuptools-${pkgver}
+   popd
+ 
+   cp -a setuptools-${pkgver}{,-python2}
+ 
+   cd ${srcdir}/setuptools-${pkgver}
+   sed -i -e s|^#\!.*/usr/bin/python|#!/usr/bin/python3| 
setuptools/tests/test_resources.py
+ 
+   cd ../setuptools-${pkgver}-python2
+   sed -i -e s|^#\!.*/usr/bin/python|#!/usr/bin/python2| 
setuptools/tests/test_resources.py
+}
+
+build() {
+   # Build python 3 module
+   cd ${srcdir}/setuptools-${pkgver}
+   python3 setup.py build
+ 
+   # Build python 2 module
+   cd ../setuptools-${pkgver}-python2
+   python2 setup.py build
+}
+ 
+package_python-setuptools() {
+   depends=('python=3.3')
+   provides=('python-distribute')
+   replaces=('python-distribute')
+ 
+   cd ${srcdir}/setuptools-${pkgver}
+   python3 setup.py install --prefix=/usr --root=${pkgdir} --optimize=1 
--skip-build
+}
+ 
+package_python2-setuptools() {
+   depends=('python2=2.7')
+   provides=('python2-distribute' 'setuptools')
+   replaces=('python2-distribute' 'setuptools')
+ 
+   cd ${srcdir}/setuptools-${pkgver}-python2
+   python2 setup.py install --prefix=/usr --root=${pkgdir} --optimize=1 
--skip-build
+   rm ${pkgdir}/usr/bin/easy_install
+}



[arch-commits] Commit in python-setuptools/repos (testing-any testing-any/PKGBUILD)

2013-11-29 Thread Ángel Velásquez
Date: Friday, November 29, 2013 @ 16:15:43
  Author: angvp
Revision: 200586

archrelease: copy trunk to testing-any

Added:
  python-setuptools/repos/testing-any/
  python-setuptools/repos/testing-any/PKGBUILD
(from rev 200585, python-setuptools/trunk/PKGBUILD)

--+
 PKGBUILD |   67 +
 1 file changed, 67 insertions(+)

Copied: python-setuptools/repos/testing-any/PKGBUILD (from rev 200585, 
python-setuptools/trunk/PKGBUILD)
===
--- testing-any/PKGBUILD(rev 0)
+++ testing-any/PKGBUILD2013-11-29 15:15:43 UTC (rev 200586)
@@ -0,0 +1,67 @@
+# $Id$
+# Maintainer: Angel Velasquez an...@archlinux.org
+pkgbase=python-setuptools
+pkgname=('python-setuptools' 'python2-setuptools')
+pkgver=1.3.2
+pkgrel=1
+pkgdesc=Easily download, build, install, upgrade, and uninstall Python 
packages
+arch=('any')
+license=('PSF')
+url=http://pypi.python.org/pypi/setuptools;
+makedepends=('python' 'python2')
+source=(http://pypi.python.org/packages/source/s/setuptools/setuptools-${pkgver}.tar.gz)
+md5sums=('441f2e58c0599d31597622a7b9eb605f')
+
+#check() {
+#   # Check python3 module
+#   cd ${srcdir}/setuptools-${pkgver}
+#   python3 setup.py test
+#
+#   # Check python2 module
+#   cd ${srcdir}/setuptools-${pkgver}-python2
+#   python2 setup.py test
+#}
+ 
+prepare() {
+   cd ${srcdir}
+ 
+   pushd setuptools-${pkgver}
+   popd
+ 
+   cp -a setuptools-${pkgver}{,-python2}
+ 
+   cd ${srcdir}/setuptools-${pkgver}
+   sed -i -e s|^#\!.*/usr/bin/python|#!/usr/bin/python3| 
setuptools/tests/test_resources.py
+ 
+   cd ../setuptools-${pkgver}-python2
+   sed -i -e s|^#\!.*/usr/bin/python|#!/usr/bin/python2| 
setuptools/tests/test_resources.py
+}
+
+build() {
+   # Build python 3 module
+   cd ${srcdir}/setuptools-${pkgver}
+   python3 setup.py build
+ 
+   # Build python 2 module
+   cd ../setuptools-${pkgver}-python2
+   python2 setup.py build
+}
+ 
+package_python-setuptools() {
+   depends=('python=3.3')
+   provides=('python-distribute')
+   replaces=('python-distribute')
+ 
+   cd ${srcdir}/setuptools-${pkgver}
+   python3 setup.py install --prefix=/usr --root=${pkgdir} --optimize=1 
--skip-build
+}
+ 
+package_python2-setuptools() {
+   depends=('python2=2.7')
+   provides=('python2-distribute' 'setuptools')
+   replaces=('python2-distribute' 'setuptools')
+ 
+   cd ${srcdir}/setuptools-${pkgver}-python2
+   python2 setup.py install --prefix=/usr --root=${pkgdir} --optimize=1 
--skip-build
+   rm ${pkgdir}/usr/bin/easy_install
+}



[arch-commits] Commit in python-setuptools/repos (testing-any testing-any/PKGBUILD)

2013-09-15 Thread Ángel Velásquez
Date: Monday, September 16, 2013 @ 07:04:06
  Author: angvp
Revision: 194402

archrelease: copy trunk to testing-any

Added:
  python-setuptools/repos/testing-any/
  python-setuptools/repos/testing-any/PKGBUILD
(from rev 194401, python-setuptools/trunk/PKGBUILD)

--+
 PKGBUILD |   67 +
 1 file changed, 67 insertions(+)

Copied: python-setuptools/repos/testing-any/PKGBUILD (from rev 194401, 
python-setuptools/trunk/PKGBUILD)
===
--- testing-any/PKGBUILD(rev 0)
+++ testing-any/PKGBUILD2013-09-16 05:04:06 UTC (rev 194402)
@@ -0,0 +1,67 @@
+# $Id$
+# Maintainer: Angel Velasquez an...@archlinux.org
+pkgbase=python-setuptools
+pkgname=('python-setuptools' 'python2-setuptools')
+pkgver=1.1
+pkgrel=1
+pkgdesc=Easily download, build, install, upgrade, and uninstall Python 
packages
+arch=('any')
+license=('PSF')
+url=http://pypi.python.org/pypi/setuptools;
+makedepends=('python' 'python2')
+source=(http://pypi.python.org/packages/source/s/setuptools/setuptools-${pkgver}.tar.gz)
+md5sums=('84062633c3818c912af76d54a40d11a7')
+
+#check() {
+#   # Check python3 module
+#   cd ${srcdir}/setuptools-${pkgver}
+#   python3 setup.py test
+#
+#   # Check python2 module
+#   cd ${srcdir}/setuptools-${pkgver}-python2
+#   python2 setup.py test
+#}
+ 
+prepare() {
+   cd ${srcdir}
+ 
+   pushd setuptools-${pkgver}
+   popd
+ 
+   cp -a setuptools-${pkgver}{,-python2}
+ 
+   cd ${srcdir}/setuptools-${pkgver}
+   sed -i -e s|^#\!.*/usr/bin/python|#!/usr/bin/python3| 
setuptools/tests/test_resources.py
+ 
+   cd ../setuptools-${pkgver}-python2
+   sed -i -e s|^#\!.*/usr/bin/python|#!/usr/bin/python2| 
setuptools/tests/test_resources.py
+}
+
+build() {
+   # Build python 3 module
+   cd ${srcdir}/setuptools-${pkgver}
+   python3 setup.py build
+ 
+   # Build python 2 module
+   cd ../setuptools-${pkgver}-python2
+   python2 setup.py build
+}
+ 
+package_python-setuptools() {
+   depends=('python=3.3')
+   provides=('python-distribute')
+   replaces=('python-distribute')
+ 
+   cd ${srcdir}/setuptools-${pkgver}
+   python3 setup.py install --prefix=/usr --root=${pkgdir} --optimize=1 
--skip-build
+}
+ 
+package_python2-setuptools() {
+   depends=('python2=2.7')
+   provides=('python2-distribute' 'setuptools')
+   replaces=('python2-distribute' 'setuptools')
+ 
+   cd ${srcdir}/setuptools-${pkgver}-python2
+   python2 setup.py install --prefix=/usr --root=${pkgdir} --optimize=1 
--skip-build
+   rm ${pkgdir}/usr/bin/easy_install
+}



[arch-commits] Commit in python-setuptools/repos (testing-any testing-any/PKGBUILD)

2013-08-20 Thread Ángel Velásquez
Date: Tuesday, August 20, 2013 @ 08:42:33
  Author: angvp
Revision: 193427

archrelease: copy trunk to testing-any

Added:
  python-setuptools/repos/testing-any/
  python-setuptools/repos/testing-any/PKGBUILD
(from rev 193426, python-setuptools/trunk/PKGBUILD)

--+
 PKGBUILD |   67 +
 1 file changed, 67 insertions(+)

Copied: python-setuptools/repos/testing-any/PKGBUILD (from rev 193426, 
python-setuptools/trunk/PKGBUILD)
===
--- testing-any/PKGBUILD(rev 0)
+++ testing-any/PKGBUILD2013-08-20 06:42:33 UTC (rev 193427)
@@ -0,0 +1,67 @@
+# $Id$
+# Maintainer: Angel Velasquez an...@archlinux.org
+pkgbase=python-setuptools
+pkgname=('python-setuptools' 'python2-setuptools')
+pkgver=1.0
+pkgrel=1
+pkgdesc=Easily download, build, install, upgrade, and uninstall Python 
packages
+arch=('any')
+license=('PSF')
+url=http://pypi.python.org/pypi/setuptools;
+makedepends=('python' 'python2')
+source=(http://pypi.python.org/packages/source/s/setuptools/setuptools-${pkgver}.tar.gz)
+md5sums=('3d196ffb6e5e4425daddbb4fe42a4a74')
+
+#check() {
+#   # Check python3 module
+#   cd ${srcdir}/setuptools-${pkgver}
+#   python3 setup.py test
+#
+#   # Check python2 module
+#   cd ${srcdir}/setuptools-${pkgver}-python2
+#   python2 setup.py test
+#}
+ 
+prepare() {
+   cd ${srcdir}
+ 
+   pushd setuptools-${pkgver}
+   popd
+ 
+   cp -a setuptools-${pkgver}{,-python2}
+ 
+   cd ${srcdir}/setuptools-${pkgver}
+   sed -i -e s|^#\!.*/usr/bin/python|#!/usr/bin/python3| 
setuptools/tests/test_resources.py
+ 
+   cd ../setuptools-${pkgver}-python2
+   sed -i -e s|^#\!.*/usr/bin/python|#!/usr/bin/python2| 
setuptools/tests/test_resources.py
+}
+
+build() {
+   # Build python 3 module
+   cd ${srcdir}/setuptools-${pkgver}
+   python3 setup.py build
+ 
+   # Build python 2 module
+   cd ../setuptools-${pkgver}-python2
+   python2 setup.py build
+}
+ 
+package_python-setuptools() {
+   depends=('python=3.3')
+   provides=('python-distribute')
+   replaces=('python-distribute')
+ 
+   cd ${srcdir}/setuptools-${pkgver}
+   python3 setup.py install --prefix=/usr --root=${pkgdir} --optimize=1 
--skip-build
+}
+ 
+package_python2-setuptools() {
+   depends=('python2=2.7')
+   provides=('python2-distribute' 'setuptools')
+   replaces=('python2-distribute' 'setuptools')
+ 
+   cd ${srcdir}/setuptools-${pkgver}-python2
+   python2 setup.py install --prefix=/usr --root=${pkgdir} --optimize=1 
--skip-build
+   rm ${pkgdir}/usr/bin/easy_install
+}



[arch-commits] Commit in python-setuptools/repos (testing-any testing-any/PKGBUILD)

2013-08-17 Thread Ángel Velásquez
Date: Saturday, August 17, 2013 @ 09:55:31
  Author: angvp
Revision: 193135

archrelease: copy trunk to testing-any

Added:
  python-setuptools/repos/testing-any/
  python-setuptools/repos/testing-any/PKGBUILD
(from rev 193134, python-setuptools/trunk/PKGBUILD)

--+
 PKGBUILD |   67 +
 1 file changed, 67 insertions(+)

Copied: python-setuptools/repos/testing-any/PKGBUILD (from rev 193134, 
python-setuptools/trunk/PKGBUILD)
===
--- testing-any/PKGBUILD(rev 0)
+++ testing-any/PKGBUILD2013-08-17 07:55:31 UTC (rev 193135)
@@ -0,0 +1,67 @@
+# $Id$
+# Maintainer: Angel Velasquez an...@archlinux.org
+pkgbase=python-setuptools
+pkgname=('python-setuptools' 'python2-setuptools')
+pkgver=0.9.8
+pkgrel=1
+pkgdesc=Easily download, build, install, upgrade, and uninstall Python 
packages
+arch=('any')
+license=('PSF')
+url=http://pypi.python.org/pypi/setuptools;
+makedepends=('python' 'python2')
+source=(http://pypi.python.org/packages/source/s/setuptools/setuptools-${pkgver}.tar.gz)
+sha256sums=('42bf629a4b3a4933bb3cfacf6005c95b7494fd88cd62a7bad1a8c3e64647eb0c')
+
+#check() {
+#   # Check python3 module
+#   cd ${srcdir}/setuptools-${pkgver}
+#   python3 setup.py test
+#
+#   # Check python2 module
+#   cd ${srcdir}/setuptools-${pkgver}-python2
+#   python2 setup.py test
+#}
+ 
+prepare() {
+   cd ${srcdir}
+ 
+   pushd setuptools-${pkgver}
+   popd
+ 
+   cp -a setuptools-${pkgver}{,-python2}
+ 
+   cd ${srcdir}/setuptools-${pkgver}
+   sed -i -e s|^#\!.*/usr/bin/python|#!/usr/bin/python3| 
setuptools/tests/test_resources.py
+ 
+   cd ../setuptools-${pkgver}-python2
+   sed -i -e s|^#\!.*/usr/bin/python|#!/usr/bin/python2| 
setuptools/tests/test_resources.py
+}
+
+build() {
+   # Build python 3 module
+   cd ${srcdir}/setuptools-${pkgver}
+   python3 setup.py build
+ 
+   # Build python 2 module
+   cd ../setuptools-${pkgver}-python2
+   python2 setup.py build
+}
+ 
+package_python-setuptools() {
+   depends=('python=3.3')
+   provides=('python-distribute')
+   replaces=('python-distribute')
+ 
+   cd ${srcdir}/setuptools-${pkgver}
+   python3 setup.py install --prefix=/usr --root=${pkgdir} --optimize=1 
--skip-build
+}
+ 
+package_python2-setuptools() {
+   depends=('python2=2.7')
+   provides=('python2-distribute' 'setuptools')
+   replaces=('python2-distribute' 'setuptools')
+ 
+   cd ${srcdir}/setuptools-${pkgver}-python2
+   python2 setup.py install --prefix=/usr --root=${pkgdir} --optimize=1 
--skip-build
+   rm ${pkgdir}/usr/bin/easy_install
+}