Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion completion/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Here are completion files for `bash`, `zsh` and `fish`
for the use of dotdrop through the bash script `dotdrop.sh`
or through the Python script `dotdrop` (PyPI, snap, setup.py, etc.).
or through the Python script `dotdrop` (PyPI, snap, etc.).

`bash` and `zsh` scripts are generated using
[infi.docopt_completion](https://github.com/Infinidat/infi.docopt_completion).
Expand Down
2 changes: 1 addition & 1 deletion completion/generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ venv="/tmp/dotdrop-venv"
${vbin} -p python3 ${venv}
# shellcheck source=/dev/null
source ${venv}/bin/activate
python setup.py install
pip install .
cd /tmp
docopt-completion dotdrop --manual-zsh
mv ./_dotdrop "${dt_zsh}"
Expand Down
12 changes: 9 additions & 3 deletions packages/arch-dotdrop-git/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ arch=('any')
url="https://github.com/deadc0de6/dotdrop"
license=('GPL')
groups=()
depends=('python' 'python-setuptools' 'python-jinja' 'python-docopt-ng' 'python-ruamel-yaml' 'python-magic' 'python-requests' 'python-packaging' 'python-tomli-w' 'python-distro')
makedepends=('git')
depends=('python' 'python-jinja' 'python-docopt-ng' 'python-ruamel-yaml' 'python-magic' 'python-requests' 'python-packaging' 'python-tomli-w' 'python-distro')
makedepends=('git' 'python-build' 'python-installer' 'python-setuptools')
provides=(dotdrop)
conflicts=(dotdrop)
source=("git+https://github.com/deadc0de6/dotdrop.git")
Expand All @@ -19,9 +19,15 @@ pkgver() {
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//g'
}

build() {
cd "${_pkgname}"
python -m build --wheel --no-isolation
}

package() {
cd "${_pkgname}"
python setup.py install --root="${pkgdir}/" --optimize=1
python -m installer --destdir="${pkgdir}" dist/*.whl

install -Dm644 ${srcdir}/${_pkgname}/completion/dotdrop-completion.bash "${pkgdir}/usr/share/bash-completion/completions/${_pkgname}"
install -Dm644 ${srcdir}/${_pkgname}/completion/_dotdrop-completion.zsh "${pkgdir}/usr/share/zsh/site-functions/_${_pkgname}"
install -Dm644 ${srcdir}/${_pkgname}/completion/dotdrop.fish "${pkgdir}/usr/share/fish/completions/${_pkgname}.fish"
Expand Down
12 changes: 9 additions & 3 deletions packages/arch-dotdrop/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ arch=('any')
url="https://github.com/deadc0de6/dotdrop"
license=('GPL')
groups=()
depends=('python' 'python-setuptools' 'python-jinja' 'python-docopt-ng' 'python-ruamel-yaml' 'python-magic' 'python-requests' 'python-packaging' 'python-tomli-w' 'python-distro')
makedepends=('git')
depends=('python' 'python-jinja' 'python-docopt-ng' 'python-ruamel-yaml' 'python-magic' 'python-requests' 'python-packaging' 'python-tomli-w' 'python-distro')
makedepends=('git' 'python-build' 'python-installer' 'python-setuptools')
source=("git+https://github.com/deadc0de6/dotdrop.git#tag=v${pkgver}")
md5sums=('SKIP')

Expand All @@ -16,9 +16,15 @@ pkgver() {
git describe --abbrev=0 --tags | sed 's/^v//g'
}

build() {
cd "${pkgname}"
python -m build --wheel --no-isolation
}

package() {
cd "${pkgname}"
python setup.py install --root="${pkgdir}/" --optimize=1
python -m installer --destdir="${pkgdir}" dist/*.whl

install -Dm644 ${srcdir}/${pkgname}/completion/dotdrop-completion.bash "${pkgdir}/usr/share/bash-completion/completions/${pkgname}"
install -Dm644 ${srcdir}/${pkgname}/completion/_dotdrop-completion.zsh "${pkgdir}/usr/share/zsh/site-functions/_${pkgname}"
install -Dm644 ${srcdir}/${pkgname}/completion/dotdrop.fish "${pkgdir}/usr/share/fish/completions/${pkgname}.fish"
Expand Down
49 changes: 49 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
[build-system]
requires = ['setuptools']
build-backend = 'setuptools.build_meta'

[project]
name = 'dotdrop'
description = 'Save your dotfiles once, deploy them everywhere'
readme = 'README.md'
authors = [ {name = 'deadc0de6', email = 'deadc0de6@foo.bar'}, ]
license = 'GPL-3.0'
requires-python = ">=3"
classifiers = [
'Development Status :: 5 - Production/Stable',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
]
keywords = ['dotfiles', 'jinja2']
dependencies = [
'Jinja2',
'distro',
'docopt-ng',
'packaging',
'python-magic',
'requests',
'ruamel.yaml',
'tomli; python_version < "3.11"',
'tomli_w',
]
dynamic = ['version']

[project.urls]
Documentation = 'https://dotdrop.readthedocs.io'
Repository = 'https://github.com/deadc0de6/dotdrop'

[project.optional-dependencies]
dev = ['check-manifest']
test = ['coverage', 'pytest', 'pytest-cov']

[project.scripts]
dotdrop = 'dotdrop:main'

[tool.setuptools.dynamic]
version = {attr = 'dotdrop.version.__version__'}

[tool.setuptools.packages.find]
include = ['dotdrop']
66 changes: 0 additions & 66 deletions setup.py

This file was deleted.

Loading