mirror of
https://github.com/instaloader/instaloader.git
synced 2024-11-22 10:12:30 +01:00
Update PyPI and Arch packaging process
This commit is contained in:
parent
f5134ff95e
commit
71ae32c85e
4
.github/workflows/packages.yml
vendored
4
.github/workflows/packages.yml
vendored
@ -23,11 +23,11 @@ jobs:
|
|||||||
run: echo "VERSION=${GITHUB_REF/refs\/tags\/v/}" >> $GITHUB_OUTPUT
|
run: echo "VERSION=${GITHUB_REF/refs\/tags\/v/}" >> $GITHUB_OUTPUT
|
||||||
shell: bash
|
shell: bash
|
||||||
- name: "Install Dependencies"
|
- name: "Install Dependencies"
|
||||||
run: python -m pip install build
|
run: python -m pip install -U setuptools wheel build
|
||||||
- name: "Generate Python Package"
|
- name: "Generate Python Package"
|
||||||
run: python -m build
|
run: python -m build
|
||||||
- name: "Publish Distribution to PyPI"
|
- name: "Publish Distribution to PyPI"
|
||||||
uses: pypa/gh-action-pypi-publish@master
|
uses: pypa/gh-action-pypi-publish@release/v1
|
||||||
with:
|
with:
|
||||||
password: ${{ secrets.PYPI_PASSWORD }}
|
password: ${{ secrets.PYPI_PASSWORD }}
|
||||||
- name: "Publish Distribution to AUR"
|
- name: "Publish Distribution to AUR"
|
||||||
|
@ -8,20 +8,30 @@ arch=('any')
|
|||||||
url="https://instaloader.github.io/"
|
url="https://instaloader.github.io/"
|
||||||
license=('MIT')
|
license=('MIT')
|
||||||
groups=()
|
groups=()
|
||||||
depends=('python>=3.8' 'python-requests>=2.4')
|
depends=(
|
||||||
makedepends=('python-setuptools')
|
python
|
||||||
|
python-requests
|
||||||
|
)
|
||||||
|
makedepends=(
|
||||||
|
python-build
|
||||||
|
python-installer
|
||||||
|
python-setuptools
|
||||||
|
python-wheel
|
||||||
|
)
|
||||||
|
optdepends=(
|
||||||
|
'python-browser-cookie3: Import session cookies from browser'
|
||||||
|
)
|
||||||
options=('!emptydirs')
|
options=('!emptydirs')
|
||||||
source=($pkgname-$pkgver.tar.gz::https://codeload.github.com/instaloader/instaloader/tar.gz/v$pkgver)
|
source=($pkgname-$pkgver.tar.gz::https://codeload.github.com/instaloader/instaloader/tar.gz/v$pkgver)
|
||||||
sha512sums=('{{hash}}')
|
sha512sums=('{{hash}}')
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "$srcdir/$pkgname-$pkgver"
|
cd "$srcdir/$pkgname-$pkgver"
|
||||||
python setup.py clean --all
|
python -m build --wheel --no-isolation
|
||||||
python setup.py build
|
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd "$srcdir/$pkgname-$pkgver"
|
cd "$srcdir/$pkgname-$pkgver"
|
||||||
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
||||||
python setup.py install --root "$pkgdir/" --skip-build
|
python -m installer --destdir="$pkgdir" dist/*.whl
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user