Commit 468d6963 authored by Kevin Lyda's avatar Kevin Lyda 💬
Browse files

Changes for RPM packaging; update readme.

parent 81b5f5a3
Pipeline #1055 passed with stage
in 4 minutes and 10 seconds
...@@ -60,14 +60,22 @@ as ``chkcrontab``. The project page is on `pypi`_: ...@@ -60,14 +60,22 @@ as ``chkcrontab``. The project page is on `pypi`_:
The source code is available in the following locations: The source code is available in the following locations:
* Bitbucket: https://bitbucket.org/lyda/chkcrontab/ * Gitlab: https://gitlab.com/lyda/chkcrontab
* code.google: https://code.google.com/p/chkcrontab/
* Github: https://github.com/lyda/chkcrontab * Github: https://github.com/lyda/chkcrontab
* Gitorious: https://gitorious.org/uu/chkcrontab * Bitbucket: https://bitbucket.org/lyda/chkcrontab/
* Sourceforge: https://sourceforge.net/p/chkcrontab * Sourceforge: https://sourceforge.net/p/chkcrontab
Pull requests on any of those platforms or emailed patches are fine. Pull requests on any of those platforms or emailed patches are fine.
Opening issues on github is easiest, but I'll check any of them. Opening issues on gitlab or github is easiest, but I'll check any
of them.
Packaging
=========
For rpm distributions, ``./setup.py bdist --formats=rpm`` should make an
rpm but currently dies due to not finding the chkcrontab.1 man page.
For Debian distributions there's an additional tool that might work.
TODO TODO
==== ====
...@@ -76,8 +84,11 @@ TODO ...@@ -76,8 +84,11 @@ TODO
* Check for backticks. (why?) * Check for backticks. (why?)
* Make sure MAILTO and PATH are set (perhaps others?). * Make sure MAILTO and PATH are set (perhaps others?).
* Add tests for command line. * Add tests for command line.
* Enable it to parse user crontabs: https://code.google.com/p/chkcrontab/issues/detail?id=2 * Enable it to parse user crontabs:
* Make "acceptable filenames" a configurable thing: https://github.com/lyda/chkcrontab/issues/4 https://github.com/lyda/chkcrontab/issues/12
* Make "acceptable filenames" a configurable thing:
https://github.com/lyda/chkcrontab/issues/4
* Packaging: https://github.com/lyda/chkcrontab/issues/13
Credits Credits
======= =======
......
...@@ -29,7 +29,7 @@ from distutils.core import Command ...@@ -29,7 +29,7 @@ from distutils.core import Command
BASE_DIR = os.path.dirname(globals().get('__file__', os.getcwd())) BASE_DIR = os.path.dirname(globals().get('__file__', os.getcwd()))
VERSION = subprocess.check_output( VERSION = subprocess.check_output(
['git', 'describe', '--dirty=*', '--always']).strip().decode('utf8') ['git', 'describe', '--dirty', '--always']).strip().decode('utf8')
open('_version.py', 'w').write('__version__ = "%s"\n' % VERSION) open('_version.py', 'w').write('__version__ = "%s"\n' % VERSION)
class TestCmd(Command): class TestCmd(Command):
...@@ -43,13 +43,8 @@ class TestCmd(Command): ...@@ -43,13 +43,8 @@ class TestCmd(Command):
pass pass
def run(self): def run(self):
if sys.version_info < (2, 7): # Testing only works on python 2.7 and up.
try: import unittest
import unittest2 as unittest
except ImportError:
raise RuntimeError('unittest2 required for running tests under Python < 2.7.')
else:
import unittest
test_dir = os.path.join(BASE_DIR, 'tests') test_dir = os.path.join(BASE_DIR, 'tests')
...@@ -174,9 +169,9 @@ setup( ...@@ -174,9 +169,9 @@ setup(
cmdclass=cmdclass, cmdclass=cmdclass,
name='chkcrontab', name='chkcrontab',
version=VERSION, version=VERSION,
url='http://code.google.com/p/chkcrontab', url='https://gitlab.com/lyda/chkcrontab',
author='Kevin Lyda', author='Kevin Lyda',
author_email='lyda@google.com', author_email='kevin@phrye.com',
description='A tool to detect crontab errors', description='A tool to detect crontab errors',
long_description=open('README.rst').read(), long_description=open('README.rst').read(),
py_modules=['chkcrontab_lib', '_version'], py_modules=['chkcrontab_lib', '_version'],
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment