Skip to content

Commit

Permalink
Add copyright file headers
Browse files Browse the repository at this point in the history
  • Loading branch information
PhrozenByte committed May 4, 2019
1 parent e8cb18e commit d13706c
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 4 deletions.
20 changes: 19 additions & 1 deletion cron-notify
Original file line number Diff line number Diff line change
@@ -1,4 +1,22 @@
#!/usr/bin/env python
""" cron-notify
FreeDesktop.org-compatible notification service to periodically ask for
acknowledgement before executing a cronjob. It is often used for backup
software.
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, version 3 of the License only.
This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>.
"""

import cron_notify
import argparse, logging, os, shlex, sys
from gi.repository import GObject
Expand Down Expand Up @@ -56,7 +74,7 @@ try:

if args.version:
print("cron-notify {}".format(cron_notify.__version__))
print("Copyright (C) 2016-2017 Daniel Rudolf")
print(cron_notify.__copyright__)
print("")
print("License GPLv3: GNU GPL version 3 only <http://gnu.org/licenses/gpl.html>.")
print("This is free software: you are free to change and redistribute it.")
Expand Down
25 changes: 23 additions & 2 deletions cron_notify.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,26 @@
""" cron-notify
FreeDesktop.org-compatible notification service to periodically ask for
acknowledgement before executing a cronjob. It is often used for backup
software.
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, version 3 of the License only.
This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>.
"""

__version__ = "1.0.0"

__copyright__ = "Copyright (C) 2016-2017 Daniel Rudolf"
__license__ = "GPL-3"

import croniter, datetime, dbus, dbus.mainloop.glib, errno, hashlib, logging, os, re, subprocess, sys, threading
from gi.repository import GObject
from xdg import BaseDirectory
Expand All @@ -7,8 +30,6 @@
except ImportError:
import notify2 as pynotify

__version__ = "1.0.0"

class CronNotify(object):
_STATUS_SUCCESS = 0
_STATUS_TRY_AGAIN = 1
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from distutils.core import setup
import cron_notify

with open("README.md") as f:
readme = f.read()
Expand All @@ -8,7 +9,7 @@

setup(
name="cron_notify",
version="1.0.0",
version=cron_notify.__version__,
description="FreeDesktop.org-compatible notification service to periodically ask for " +
"acknowledgement before executing a cronjob. It is often used for backup software.",
long_description=readme,
Expand Down

0 comments on commit d13706c

Please sign in to comment.