/.cache/
/.tox/
-/remove_old_files.egg-info/
+/ppu.egg-info/
/build/
/data/
/dist/
-Broytman remove-old-files, Copyright (C) 2017 PhiloSoft Design
+Broytman Portable Python Utilities, Copyright (C) 2017 PhiloSoft Design
Author: Oleg Broytman <phd@phdru.name>
License: GPL
Remove old files. It's a portable replacement for
`find start_dir -type f -mtime +31 -delete`.
-Home Page: http://phdru.name/Software/Python/remove-old-files/
-Documentation: http://phdru.name/Software/Python/remove-old-files/docs/
-Git repo: http://git.phdru.name/remove-old-files.git/
-GitHub repo: https://github.com/phdru/remove-old-files
-Issue tracker: https://github.com/phdru/remove-old-files/issues
+Home Page: http://phdru.name/Software/Python/ppu/
+Documentation: http://phdru.name/Software/Python/ppu/docs/
+Git repo: http://git.phdru.name/ppu.git/
+GitHub repo: https://github.com/phdru/ppu
+Issue tracker: https://github.com/phdru/ppu/issues
-Rename to "Portable Utilities".
-
-
Add cmp.py and rm.py.
PyPI.
-Extend find.py: add options to limit files or to exclude files by name, extension, path.
+Extend find.py: add options to find files by name, extension, path.
-<a href="http://phdru.name/Software/Python/remove-old-files/">Broytman remove-old-files</a>
+<a href="http://phdru.name/Software/Python/ppu/">Portable Python Utilities</a>
# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = sphinx-build
-SPHINXPROJ = remove-old-files
+SPHINXPROJ = ppu
SOURCEDIR = .
BUILDDIR = _build
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
-# remove-old-files documentation build configuration file, created by
+# ppu documentation build configuration file, created by
# sphinx-quickstart on Sat Apr 15 20:37:34 2017.
#
# This file is execfile()d with the current directory set to its
master_doc = 'index'
# General information about the project.
-project = 'remove-old-files'
+project = 'Portable Python Utilities'
copyright = '2017, Oleg Broytman'
author = 'Oleg Broytman'
# -- Options for HTMLHelp output ------------------------------------------
# Output file base name for HTML help builder.
-htmlhelp_basename = 'remove-old-filesdoc'
+htmlhelp_basename = 'ppudoc'
# -- Options for LaTeX output ---------------------------------------------
# (source start file, target name, title,
# author, documentclass [howto, manual, or own class]).
latex_documents = [
- (master_doc, 'remove-old-files.tex', 'remove-old-files Documentation',
+ (master_doc, 'ppu.tex', 'Portable Python Utilities Documentation',
'Oleg Broytman', 'manual'),
]
# One entry per manual page. List of tuples
# (source start file, name, description, authors, manual section).
man_pages = [
- (master_doc, 'remove-old-files', 'remove-old-files Documentation',
+ (master_doc, 'ppu', 'Portable Python Utilities Documentation',
[author], 1)
]
# (source start file, target name, title, author,
# dir menu entry, description, category)
texinfo_documents = [
- (master_doc, 'remove-old-files', 'remove-old-files Documentation',
- author, 'remove-old-files', 'One line description of project.',
+ (master_doc, 'ppu', 'Portable Python Utilities Documentation',
+ author, 'ppu', 'Portable Python Utilities.',
'Miscellaneous'),
]
cd "`dirname $0`"/.. &&
exec sphinx-apidoc --separate --module-first --suffix=rst --force \
- --output-dir=docs/api remove-old-files
+ --output-dir=docs/api ppu
-.. remove-old-files documentation master file, created by
+.. ppu documentation master file, created by
sphinx-quickstart on Sat Apr 15 20:37:34 2017.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
-Welcome to remove-old-files's documentation!
-============================================
-
-Remove old files. It's a portable replacement for
-`find start_dir -type f -mtime +31 -delete`.
+Portable Python Utilities
+=========================
.. toctree::
:maxdepth: 2
remove-old-files.py
~~~~~~~~~~~~~~~~~~~
+Remove old files. It's a portable replacement for
+`find start_dir -type f -mtime +31 -delete`.
+
Usage::
- remove-old-files.py -o days start_dir
+ remove-old-files.py [-e] -o days start_dir
Options::
::
- sudo pip install --find-links=http://phdru.name/Software/Python/ --no-index --install-option='-O2' remove-old-files
+ sudo pip install --find-links=http://phdru.name/Software/Python/ --no-index --install-option='-O2' ppu
User mode
---------
::
- pip install --find-links=http://phdru.name/Software/Python/ --no-index --install-option='-O2' --user remove-old-files
+ pip install --find-links=http://phdru.name/Software/Python/ --no-index --install-option='-O2' --user ppu
For Python 2.6 the command is easy_install.
python setup.py install -O2 --user
-Option '--user' installs script remove-old-files.py into $HOME/.local/bin;
+Option '--user' installs scripts into $HOME/.local/bin;
add the directory to your $PATH or move the script to a directory in your
$PATH.
umask 022 &&
-git archive --format=tar --prefix=remove-old-files/ "${1:-HEAD}" |
+git archive --format=tar --prefix=ppu/ "${1:-HEAD}" |
(cd "$HOME/tmp" && exec tar xf -) &&
-cp -ap docs "$HOME/tmp/remove-old-files" &&
+cp -ap docs "$HOME/tmp/ppu" &&
-cd "$HOME/tmp/remove-old-files" &&
+cd "$HOME/tmp/ppu" &&
chmod -R u=rwX,go=rX docs &&
python setup.py sdist --formats=bztar &&
-cd dist && mv remove-old-files-*.tar.bz2 ../.. && cd ../.. && exec rm -rf remove-old-files
+cd dist && mv ppu-*.tar.bz2 ../.. && cd ../.. && exec rm -rf ppu
except ImportError:
from distutils.core import setup
-setup(name='remove-old-files',
+setup(name='ppu',
version='0.2.0',
- description='Broytman remove-old-files',
+ description='Broytman Portable Python Utilities',
long_description=open('README.txt', 'rU').read(),
author='Oleg Broytman',
author_email='phd@phdru.name',
- url='http://phdru.name/Software/Python/remove-old-files/',
+ url='http://phdru.name/Software/Python/ppu/',
license='GPL',
platforms=['any'],
keywords=[''],
.PHONY: all
all:
- PYTHONPATH=.. pytest
+ pytest