mirror of
https://git.freebsd.org/ports.git
synced 2025-06-07 13:50:38 -04:00
- Update PORTVERSION and distinfo checksum (2.10) - Switch MASTER_SITES to CHEESESHOP (PyPI) - Update RUN_DEPENDS - Mark architecture independent (NO_ARCH) - Patch setup.py/runtests.py so standard test methods work. Tox isn't required. - Modernize test target (do-test: setup.py.test) https://github.com/bartTC/dpaste/blob/v2.10/CHANGELOG
34 lines
859 B
Python
34 lines
859 B
Python
--- setup.py.orig 2016-08-15 03:37:55 UTC
|
|
+++ setup.py
|
|
@@ -4,19 +4,6 @@ from sys import exit
|
|
from setuptools import find_packages, setup
|
|
from setuptools.command.test import test as TestCommand
|
|
|
|
-
|
|
-class Tox(TestCommand):
|
|
- def finalize_options(self):
|
|
- TestCommand.finalize_options(self)
|
|
- self.test_args = []
|
|
- self.test_suite = True
|
|
-
|
|
- def run_tests(self):
|
|
- #import here, cause outside the eggs aren't loaded
|
|
- import tox
|
|
- errno = tox.cmdline(self.test_args)
|
|
- exit(errno)
|
|
-
|
|
long_description = u'\n\n'.join((
|
|
open('README.rst').read(),
|
|
open('CHANGELOG').read()
|
|
@@ -54,10 +41,5 @@ setup(
|
|
'pygments>=1.6',
|
|
'requests>=2.0.0',
|
|
],
|
|
- tests_require=[
|
|
- 'tox>=1.6.1'
|
|
- ],
|
|
- cmdclass={
|
|
- 'test': Tox
|
|
- },
|
|
+ test_suite='runtests.runtests',
|
|
)
|