Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
eslingerbryan committed May 5, 2019
1 parent dc0bd61 commit cc68b02
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 10 deletions.
6 changes: 3 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
==================
***REMOVED***
verifier_date_utils
==================

This is a motley assortment of date routines factored out of ``upvote`` so we
***REMOVED***
can also use them in other repos, like ``voter-verifier-python``.

This is still a hard requirement for the pythong based verifier.
This is still a hard requirement for the python based verifier.
5 changes: 2 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,15 @@
extra_setup['use_2to3'] = True

setup(
***REMOVED***
name='verifier_date_utils',
version='1.0',
description='Various utilities for operating on dates and times',
long_description=open('README.rst').read(),
author='Erik Rose',
***REMOVED***
packages=find_packages(exclude=['ez_setup']),
tests_require=['nose', 'mock'],
test_suite='nose.collector',
***REMOVED***
url='https://github.com/civiccc/verifier_date_utils',
include_package_data=True,
classifiers=[
'Intended Audience :: Developers',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# This was all lifted from upvote.common.utils.date.

from datetime import date, datetime, time as dtime, timedelta

from logging import getLogger
Expand Down
4 changes: 2 additions & 2 deletions votizen_date_utils/tests.py → verifier_date_utils/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from mock import patch
from nose.tools import eq_, ok_, raises

***REMOVED***
from verifier_date_utils import (convert_datestring_format,
convert_datestring_to_datetime, convert_date_to_datetime,
date_before, date_after, find_day_of_week, is_recent,
time_in_millis, years_ago, iso_year_start, iso_to_gregorian,
Expand Down Expand Up @@ -116,7 +116,7 @@ def test_is_recent(self):
ok_(not is_recent(datetime.now() - timedelta(minutes=2)))
ok_(is_recent(datetime.now() - timedelta(minutes=2), minutes=4))

***REMOVED***
@patch('verifier_date_utils.gmtime')
def test_time_in_millis(self, mock_gmtime):
t = gmtime()
mock_gmtime.return_value = t
Expand Down

0 comments on commit cc68b02

Please sign in to comment.