From: Oleg Broytman Date: Sun, 30 Apr 2017 16:47:40 +0000 (+0300) Subject: Rename the project to Portable Python Utilities X-Git-Tag: 0.2.0~5 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=c3c81973f94f6b4617a2271bbaeef01ecad502bb;p=ppu.git Rename the project to Portable Python Utilities --- diff --git a/.gitignore b/.gitignore index 8d6724d..c8abccb 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,6 @@ /.cache/ /.tox/ -/remove_old_files.egg-info/ +/ppu.egg-info/ /build/ /data/ /dist/ diff --git a/README.txt b/README.txt index cedf362..dcd2eb3 100644 --- a/README.txt +++ b/README.txt @@ -1,12 +1,12 @@ -Broytman remove-old-files, Copyright (C) 2017 PhiloSoft Design +Broytman Portable Python Utilities, Copyright (C) 2017 PhiloSoft Design Author: Oleg Broytman 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 diff --git a/TODO b/TODO index 83ddc4f..12fe7ae 100644 --- a/TODO +++ b/TODO @@ -1,6 +1,3 @@ -Rename to "Portable Utilities". - - Add cmp.py and rm.py. @@ -16,4 +13,4 @@ Rename remove-old-files.py to find.py. Make options more GNU find-like. 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. diff --git a/devscripts/README.html b/devscripts/README.html index 577863e..2a0d902 100644 --- a/devscripts/README.html +++ b/devscripts/README.html @@ -1 +1 @@ -Broytman remove-old-files +Portable Python Utilities diff --git a/docs/Makefile b/docs/Makefile index 3b8c804..cab7304 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -4,7 +4,7 @@ # You can set these variables from the command line. SPHINXOPTS = SPHINXBUILD = sphinx-build -SPHINXPROJ = remove-old-files +SPHINXPROJ = ppu SOURCEDIR = . BUILDDIR = _build diff --git a/docs/conf.py b/docs/conf.py index da4a083..46fe5f2 100755 --- a/docs/conf.py +++ b/docs/conf.py @@ -1,7 +1,7 @@ #!/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 @@ -46,7 +46,7 @@ source_suffix = '.rst' master_doc = 'index' # General information about the project. -project = 'remove-old-files' +project = 'Portable Python Utilities' copyright = '2017, Oleg Broytman' author = 'Oleg Broytman' @@ -100,7 +100,7 @@ html_static_path = ['_static'] # -- Options for HTMLHelp output ------------------------------------------ # Output file base name for HTML help builder. -htmlhelp_basename = 'remove-old-filesdoc' +htmlhelp_basename = 'ppudoc' # -- Options for LaTeX output --------------------------------------------- @@ -127,7 +127,7 @@ latex_elements = { # (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'), ] @@ -137,7 +137,7 @@ latex_documents = [ # 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) ] @@ -148,8 +148,8 @@ man_pages = [ # (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'), ] diff --git a/docs/genapidocs b/docs/genapidocs index a2425fe..bb833cc 100755 --- a/docs/genapidocs +++ b/docs/genapidocs @@ -2,4 +2,4 @@ cd "`dirname $0`"/.. && exec sphinx-apidoc --separate --module-first --suffix=rst --force \ - --output-dir=docs/api remove-old-files + --output-dir=docs/api ppu diff --git a/docs/index.rst b/docs/index.rst index f339591..3f27dd2 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -1,13 +1,10 @@ -.. 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 @@ -24,9 +21,12 @@ Command line 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:: diff --git a/docs/install.rst b/docs/install.rst index b38ccc6..9015f0e 100644 --- a/docs/install.rst +++ b/docs/install.rst @@ -6,14 +6,14 @@ System-wide :: - 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. @@ -34,6 +34,6 @@ home directory; run run the following command: 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. diff --git a/mk-distr b/mk-distr index 32d57c8..114c314 100755 --- a/mk-distr +++ b/mk-distr @@ -2,13 +2,13 @@ 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 diff --git a/setup.py b/setup.py index cc0016c..22a230d 100755 --- a/setup.py +++ b/setup.py @@ -5,13 +5,13 @@ try: 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=[''], diff --git a/tests/Makefile b/tests/Makefile index 4374f05..0c6125e 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -1,4 +1,4 @@ .PHONY: all all: - PYTHONPATH=.. pytest + pytest