ports/devel/py-freezegun/files/patch-setup.py
Kubilay Kocak d634d241fb devel/py-freezegun: Update to 0.3.6, Modernize
- Update PORTVERSION and distinfo checksum (0.3.6)
- Update dateutil RUN_DEPENDS version to match that in setup.py
- Add mock to TEST_DEPENDS (requirements.txt)
- post-extract: Remove binary files and cache dirs from WRKSRC [1]
- Patch setup.py to add test depends and add support for test command
- Update test target, using canonical setuptools test command
- Enable NO_ARCH (architecture independent)

Changes:

  https://github.com/spulec/freezegun/blob/0.3.6/CHANGELOG

[1] https://github.com/spulec/freezegun/pull/139
[2] https://github.com/spulec/freezegun/issues/134
2016-03-03 08:58:13 +00:00

23 lines
519 B
Python

--- setup.py.orig 2016-03-03 08:44:23 UTC
+++ setup.py
@@ -11,6 +11,11 @@ else:
# Py3k
requires += ['python-dateutil>=2.0']
+tests_require = [
+ 'nose',
+ 'mock',
+]
+
setup(
name='freezegun',
version='0.3.6',
@@ -20,6 +25,8 @@ setup(
url='https://github.com/spulec/freezegun',
packages=['freezegun'],
install_requires=requires,
+ tests_require=tests_require,
+ test_suite='nose.collector',
include_package_data=True,
license='Apache 2.0',
classifiers=[