[Python-modules-commits] [pytest-runner] 01/09: import pytest-runner_2.6.2.orig.tar.gz

Brian May bam at moszumanska.debian.org
Sun Apr 3 02:29:32 UTC 2016


This is an automated email from the git hooks/post-receive script.

bam pushed a commit to branch master
in repository pytest-runner.

commit 94dcc1acb1c8eb1f2e46bce1799a7ac56724aeae
Author: Brian May <brian at linuxpenguins.xyz>
Date:   Sun Apr 3 12:04:52 2016 +1000

    import pytest-runner_2.6.2.orig.tar.gz
---
 .hgignore                                   |   2 +
 .hgtags                                     |  21 +++++
 CHANGES.txt                                 |  60 ++++++++++++++
 PKG-INFO                                    | 111 +++++++++++++++++++++++++
 README.txt                                  |  95 +++++++++++++++++++++
 docs/conf.py                                |  19 +++++
 docs/history.rst                            |   8 ++
 docs/index.rst                              |  17 ++++
 ptr.py                                      | 124 ++++++++++++++++++++++++++++
 pytest.ini                                  |   3 +
 pytest_runner.egg-info/PKG-INFO             | 111 +++++++++++++++++++++++++
 pytest_runner.egg-info/SOURCES.txt          |  16 ++++
 pytest_runner.egg-info/dependency_links.txt |   1 +
 pytest_runner.egg-info/entry_points.txt     |   4 +
 pytest_runner.egg-info/top_level.txt        |   1 +
 setup.cfg                                   |   9 ++
 setup.py                                    |  53 ++++++++++++
 17 files changed, 655 insertions(+)

diff --git a/.hgignore b/.hgignore
new file mode 100644
index 0000000..31e77e9
--- /dev/null
+++ b/.hgignore
@@ -0,0 +1,2 @@
+build
+dist
diff --git a/.hgtags b/.hgtags
new file mode 100644
index 0000000..f4f2ea8
--- /dev/null
+++ b/.hgtags
@@ -0,0 +1,21 @@
+a41b62bd27ddab9ce0dda1f586a91eaed1d6a28c 1.0a1
+329b93ea52567ef21c0e96bc78c7dce1d1091607 1.0a2
+9c26b0f31e3033de73e81d84c3140ad22c4c6e14 1.0b1
+b66744dba81a3d674d83420d56d7abfcd132f32a 1.0b2
+fc47a169b30fddce2e37259cf9f853b3fc58cf83 1.0
+5073ad862016aed2c9bd01c06105d505139f754a 1.1b1
+1a37e4e32c68807b5a84ce96244ac285336d0bff 1.1
+fff2c07f64587d73505cdcac4880ecd652f8b308 1.2
+2759a927af554bf3dc7a8feb79353b88bb3eec97 2.0
+339be8b7dc911dd3cd3e2095d7fe1de47fb6c956 2.1
+b4e3fd6cf0e3559f71dcecbf321dbc92723f3df5 2.1.1
+ad7ce5b4257c47bbfc6ff49271ef3a675deb156a 2.1.2
+b0c0ff130ab962a5eea998c91b077296952e4465 2.2
+cc63a4576386eaade57b16590fe7c0053f4533c2 2.2.1
+b71c2b4ed8f735500eabe3fabc5048a36a6a3420 2.3
+4d109575243f51425d03baa8c4bce8c989e87fec 2.4
+ae4193e3172955d2a4cd00208e1f392b6c3c1148 2.5
+fe07ae9c3f076ebf3b716e9951de5492314159df 2.5.1
+0304f39b40f791b81da8a14aed6e8910f798af14 2.6
+cce8431d8b4d9441740a723c7c700d810a4662f8 2.6.1
+0cc61470c2a2fd5b0ed2c4c4ac7480bf68526f6e 2.6.2
diff --git a/CHANGES.txt b/CHANGES.txt
new file mode 100644
index 0000000..49fbee0
--- /dev/null
+++ b/CHANGES.txt
@@ -0,0 +1,60 @@
+2.6
+~~~
+
+* Add support for un-named, environment-specific extras.
+
+2.5.1
+~~~~~
+
+* Restore Python 2.6 compatibility.
+
+2.5
+~~~
+
+* Moved hosting to `pytest-dev
+  <https://bitbucket.org/pytest-dev/pytest-runner>`_.
+
+2.4
+~~~
+
+* Added `documentation <https://pythonhosted.org/pytest-runner>`_.
+* Use setuptools_scm for version management and file discovery.
+* Updated internal packaging technique. README is now included
+  in the package metadata.
+
+2.3
+~~~
+
+* Use hgdistver for version management and file discovery.
+
+2.2
+~~~
+
+* Honor ``.eggs`` directory for transient downloads as introduced in Setuptools
+  7.0.
+
+2.1
+~~~
+
+* The preferred invocation is now the 'pytest' command.
+
+2.0
+~~~
+
+* Removed support for the alternate usage. The recommended usage (as a
+  distutils command) is now the only supported usage.
+* Removed support for the --junitxml parameter to the ptr command. Clients
+  should pass the same parameter (and all other py.test arguments) to py.test
+  via the --addopts parameter.
+
+1.1
+~~~
+
+* Added support for --addopts to pass any arguments through to py.test.
+* Deprecated support for --junitxml. Use --addopts instead. --junitxml will be
+  removed in 2.0.
+
+1.0
+~~~
+
+Initial implementation.
diff --git a/PKG-INFO b/PKG-INFO
new file mode 100644
index 0000000..d0436a5
--- /dev/null
+++ b/PKG-INFO
@@ -0,0 +1,111 @@
+Metadata-Version: 1.1
+Name: pytest-runner
+Version: 2.6.2
+Summary: Invoke py.test as distutils command with dependency resolution.
+Home-page: https://bitbucket.org/pytest-dev/pytest-runner
+Author: Jason R. Coombs
+Author-email: jaraco at jaraco.com
+License: MIT
+Description: pytest-runner
+        =============
+        
+        Setup scripts can use pytest-runner to add setup.py test support for pytest
+        runner.
+        
+        Usage
+        -----
+        
+        - Add 'pytest-runner' to your 'setup_requires'. Pin to '>=2.0,<3dev' (or
+          similar) to avoid pulling in incompatible versions.
+        - Include 'pytest' and any other testing requirements to 'tests_require'.
+        - Invoke tests with ``setup.py pytest``.
+        - Pass ``--index-url`` to have test requirements downloaded from an alternate
+          index URL.
+        - Pass additional py.test command-line options using ``--addopts``.
+        - Set permanent options for the pytest distutils command in the ``[pytest]``
+          section of setup.cfg.
+        - Set permanent options for the pytest run itself in the ``[pytest]``
+          section of pytest.ini or tox.ini. See `pytest 567
+          <https://bitbucket.org/hpk42/pytest/issue/567>`_ for details on
+          why setup.cfg is inadequate.
+        - Optionally, set ``test=pytest`` in the ``[aliases]`` section of setup.cfg
+          to cause ``setup.py test`` to invoke pytest.
+        
+        Example
+        -------
+        
+        The most simple usage looks like this in setup.py::
+        
+            setup(
+                setup_requires=[
+                    'pytest-runner',
+                ],
+                tests_require=[
+                    'pytest',
+                ],
+            )
+        
+        Additional dependencies require to run the tests (e.g. mock or pytest
+        plugins) may be added to tests_require and will be downloaded and
+        required by the session before invoking pytest.
+        
+        See the `jaraco.collections
+        <https://bitbucket.org/jaraco/jaraco.collections/>`_ project
+        for real-world usage.
+        
+        Standalone Example
+        ------------------
+        
+        Although ``pytest-runner`` is typically used to add pytest test
+        runner support to maintained packages, ``pytest-runner`` may
+        also be used to create standalone tests. Consider `this example
+        failure <https://gist.github.com/jaraco/d979a558bc0bf2194c23>`_,
+        reported in `jsonpickle #117
+        <https://github.com/jsonpickle/jsonpickle/issues/117>`_.
+        
+        That single file may be cloned or downloaded and simply run on
+        any system with Python and Setuptools. It will download the
+        specified dependencies and run the tests. Afterward, the the
+        cloned directory can be removed and with it all trace of
+        invoking the test. No other dependencies are needed and no
+        system configuration is altered.
+        
+        Then, anyone trying to replicate the failure can do so easily
+        and with all the power of pytest (rewritten assertions,
+        rich comparisons, interactive debugging, extensibility through
+        plugins, etc).
+        
+        As a result, the communication barrier for describing and
+        replicating failures is made almost trivially low.
+        
+        Considerations
+        --------------
+        
+        Conditional Requirement
+        ~~~~~~~~~~~~~~~~~~~~~~~
+        
+        Because it uses Setuptools setup_requires, pytest-runner will install itself
+        on every invocation of setup.py. In some cases, this causes delays for
+        invocations of setup.py that will never invoke pytest-runner. To help avoid
+        this contingency, consider requiring pytest-runner only when pytest
+        is invoked::
+        
+            needs_pytest = {'pytest', 'test', 'ptr'}.intersection(sys.argv)
+            pytest_runner = ['pytest-runner'] if needs_pytest else []
+        
+            # ...
+        
+            setup(
+                #...
+                setup_requires=[
+                    #... (other setup requirements)
+                ] + pytest_runner,
+            )
+        
+Platform: UNKNOWN
+Classifier: Development Status :: 5 - Production/Stable
+Classifier: Intended Audience :: Developers
+Classifier: License :: OSI Approved :: MIT License
+Classifier: Programming Language :: Python :: 2.6
+Classifier: Programming Language :: Python :: 2.7
+Classifier: Programming Language :: Python :: 3
diff --git a/README.txt b/README.txt
new file mode 100644
index 0000000..7b099e8
--- /dev/null
+++ b/README.txt
@@ -0,0 +1,95 @@
+pytest-runner
+=============
+
+Setup scripts can use pytest-runner to add setup.py test support for pytest
+runner.
+
+Usage
+-----
+
+- Add 'pytest-runner' to your 'setup_requires'. Pin to '>=2.0,<3dev' (or
+  similar) to avoid pulling in incompatible versions.
+- Include 'pytest' and any other testing requirements to 'tests_require'.
+- Invoke tests with ``setup.py pytest``.
+- Pass ``--index-url`` to have test requirements downloaded from an alternate
+  index URL.
+- Pass additional py.test command-line options using ``--addopts``.
+- Set permanent options for the pytest distutils command in the ``[pytest]``
+  section of setup.cfg.
+- Set permanent options for the pytest run itself in the ``[pytest]``
+  section of pytest.ini or tox.ini. See `pytest 567
+  <https://bitbucket.org/hpk42/pytest/issue/567>`_ for details on
+  why setup.cfg is inadequate.
+- Optionally, set ``test=pytest`` in the ``[aliases]`` section of setup.cfg
+  to cause ``setup.py test`` to invoke pytest.
+
+Example
+-------
+
+The most simple usage looks like this in setup.py::
+
+    setup(
+        setup_requires=[
+            'pytest-runner',
+        ],
+        tests_require=[
+            'pytest',
+        ],
+    )
+
+Additional dependencies require to run the tests (e.g. mock or pytest
+plugins) may be added to tests_require and will be downloaded and
+required by the session before invoking pytest.
+
+See the `jaraco.collections
+<https://bitbucket.org/jaraco/jaraco.collections/>`_ project
+for real-world usage.
+
+Standalone Example
+------------------
+
+Although ``pytest-runner`` is typically used to add pytest test
+runner support to maintained packages, ``pytest-runner`` may
+also be used to create standalone tests. Consider `this example
+failure <https://gist.github.com/jaraco/d979a558bc0bf2194c23>`_,
+reported in `jsonpickle #117
+<https://github.com/jsonpickle/jsonpickle/issues/117>`_.
+
+That single file may be cloned or downloaded and simply run on
+any system with Python and Setuptools. It will download the
+specified dependencies and run the tests. Afterward, the the
+cloned directory can be removed and with it all trace of
+invoking the test. No other dependencies are needed and no
+system configuration is altered.
+
+Then, anyone trying to replicate the failure can do so easily
+and with all the power of pytest (rewritten assertions,
+rich comparisons, interactive debugging, extensibility through
+plugins, etc).
+
+As a result, the communication barrier for describing and
+replicating failures is made almost trivially low.
+
+Considerations
+--------------
+
+Conditional Requirement
+~~~~~~~~~~~~~~~~~~~~~~~
+
+Because it uses Setuptools setup_requires, pytest-runner will install itself
+on every invocation of setup.py. In some cases, this causes delays for
+invocations of setup.py that will never invoke pytest-runner. To help avoid
+this contingency, consider requiring pytest-runner only when pytest
+is invoked::
+
+    needs_pytest = {'pytest', 'test', 'ptr'}.intersection(sys.argv)
+    pytest_runner = ['pytest-runner'] if needs_pytest else []
+
+    # ...
+
+    setup(
+        #...
+        setup_requires=[
+            #... (other setup requirements)
+        ] + pytest_runner,
+    )
diff --git a/docs/conf.py b/docs/conf.py
new file mode 100644
index 0000000..923772a
--- /dev/null
+++ b/docs/conf.py
@@ -0,0 +1,19 @@
+#!/usr/bin/env python3
+# -*- coding: utf-8 -*-
+
+import setuptools_scm
+
+extensions = [
+    'sphinx.ext.autodoc',
+]
+
+# General information about the project.
+project = 'pytest-runner'
+copyright = '2015 Jason R. Coombs'
+
+# The short X.Y version.
+version = setuptools_scm.get_version(root='..')
+# The full version, including alpha/beta/rc tags.
+release = version
+
+master_doc = 'index'
diff --git a/docs/history.rst b/docs/history.rst
new file mode 100644
index 0000000..db85fec
--- /dev/null
+++ b/docs/history.rst
@@ -0,0 +1,8 @@
+:tocdepth: 2
+
+.. _changes:
+
+History
+*******
+
+.. include:: ../CHANGES.txt
diff --git a/docs/index.rst b/docs/index.rst
new file mode 100644
index 0000000..89e2112
--- /dev/null
+++ b/docs/index.rst
@@ -0,0 +1,17 @@
+Welcome to pytest-runner documentation!
+=======================================
+
+.. toctree::
+   :maxdepth: 1
+
+   history
+
+.. include:: ../README.txt
+
+Indices and tables
+==================
+
+* :ref:`genindex`
+* :ref:`modindex`
+* :ref:`search`
+
diff --git a/ptr.py b/ptr.py
new file mode 100644
index 0000000..5c5287e
--- /dev/null
+++ b/ptr.py
@@ -0,0 +1,124 @@
+"""
+Implementation
+"""
+
+import os as _os
+import shlex as _shlex
+import contextlib as _contextlib
+import sys as _sys
+
+import pkg_resources
+import setuptools.command.test as orig
+
+
+ at _contextlib.contextmanager
+def _save_argv(repl=None):
+	saved = _sys.argv[:]
+	if repl is not None:
+		_sys.argv[:] = repl
+	try:
+		yield saved
+	finally:
+		_sys.argv[:] = saved
+
+
+class PyTest(orig.test):
+	user_options = [
+		('extras', None, "Install (all) setuptools extras when running tests"),
+		('index-url=', None, "Specify an index url from which to retrieve "
+			"dependencies"),
+		('allow-hosts=', None, "Whitelist of comma-separated hosts to allow "
+			"when retrieving dependencies"),
+		('addopts=', None, "Additional options to be passed verbatim to the "
+			"pytest runner")
+	]
+
+	def initialize_options(self):
+		self.extras = False
+		self.index_url = None
+		self.allow_hosts = None
+		self.addopts = []
+
+	def finalize_options(self):
+		if self.addopts:
+			self.addopts = _shlex.split(self.addopts)
+
+	@staticmethod
+	def marker_passes(marker):
+		"""
+		Given an environment marker, return True if the marker is valid
+		and matches this environment.
+		"""
+		return (
+			marker
+			and not pkg_resources.invalid_marker(marker)
+			and pkg_resources.evaluate_marker(marker)
+		)
+
+	def run(self):
+		"""
+		Override run to ensure requirements are available in this session (but
+		don't install them anywhere).
+		"""
+		self._build_egg_fetcher()
+		if self.distribution.install_requires:
+			self.distribution.fetch_build_eggs(self.distribution.install_requires)
+		if self.distribution.tests_require:
+			self.distribution.fetch_build_eggs(self.distribution.tests_require)
+		extras_require = self.distribution.extras_require or {}
+		for spec, reqs in extras_require.items():
+			name, sep, marker = spec.partition(':')
+			if marker and not self.marker_passes(marker):
+				continue
+			# always include unnamed extras
+			if not name or self.extras:
+				self.distribution.fetch_build_eggs(reqs)
+		if self.dry_run:
+			self.announce('skipping tests (dry run)')
+			return
+		self.with_project_on_sys_path(self.run_tests)
+		if self.result_code:
+			raise SystemExit(self.result_code)
+		return self.result_code
+
+	def _build_egg_fetcher(self):
+		"""Build an egg fetcher that respects index_url and allow_hosts"""
+		# modified from setuptools.dist:Distribution.fetch_build_egg
+		from setuptools.command.easy_install import easy_install
+		main_dist = self.distribution
+		# construct a fake distribution to store the args for easy_install
+		dist = main_dist.__class__({'script_args': ['easy_install']})
+		dist.parse_config_files()
+		opts = dist.get_option_dict('easy_install')
+		keep = (
+			'find_links', 'site_dirs', 'index_url', 'optimize',
+			'site_dirs', 'allow_hosts'
+		)
+		for key in opts.keys():
+			if key not in keep:
+				del opts[key]   # don't use any other settings
+		if main_dist.dependency_links:
+			links = main_dist.dependency_links[:]
+			if 'find_links' in opts:
+				links = opts['find_links'][1].split() + links
+			opts['find_links'] = ('setup', links)
+		if self.allow_hosts:
+			opts['allow_hosts'] = ('test', self.allow_hosts)
+		if self.index_url:
+			opts['index_url'] = ('test', self.index_url)
+		install_dir_func = getattr(dist, 'get_egg_cache_dir', _os.getcwd)
+		install_dir = install_dir_func()
+		cmd = easy_install(
+			dist, args=["x"], install_dir=install_dir, exclude_scripts=True,
+			always_copy=False, build_directory=None, editable=False,
+			upgrade=False, multi_version=True, no_report = True
+		)
+		cmd.ensure_finalized()
+		main_dist._egg_fetcher = cmd
+
+	def run_tests(self):
+		"""
+		Invoke pytest, replacing argv.
+		"""
+		with _save_argv(_sys.argv[:1] + self.addopts):
+			self.result_code = __import__('pytest').main()
diff --git a/pytest.ini b/pytest.ini
new file mode 100644
index 0000000..f38e724
--- /dev/null
+++ b/pytest.ini
@@ -0,0 +1,3 @@
+[pytest]
+norecursedirs=*.egg .eggs dist build
+addopts=--doctest-modules
diff --git a/pytest_runner.egg-info/PKG-INFO b/pytest_runner.egg-info/PKG-INFO
new file mode 100644
index 0000000..d0436a5
--- /dev/null
+++ b/pytest_runner.egg-info/PKG-INFO
@@ -0,0 +1,111 @@
+Metadata-Version: 1.1
+Name: pytest-runner
+Version: 2.6.2
+Summary: Invoke py.test as distutils command with dependency resolution.
+Home-page: https://bitbucket.org/pytest-dev/pytest-runner
+Author: Jason R. Coombs
+Author-email: jaraco at jaraco.com
+License: MIT
+Description: pytest-runner
+        =============
+        
+        Setup scripts can use pytest-runner to add setup.py test support for pytest
+        runner.
+        
+        Usage
+        -----
+        
+        - Add 'pytest-runner' to your 'setup_requires'. Pin to '>=2.0,<3dev' (or
+          similar) to avoid pulling in incompatible versions.
+        - Include 'pytest' and any other testing requirements to 'tests_require'.
+        - Invoke tests with ``setup.py pytest``.
+        - Pass ``--index-url`` to have test requirements downloaded from an alternate
+          index URL.
+        - Pass additional py.test command-line options using ``--addopts``.
+        - Set permanent options for the pytest distutils command in the ``[pytest]``
+          section of setup.cfg.
+        - Set permanent options for the pytest run itself in the ``[pytest]``
+          section of pytest.ini or tox.ini. See `pytest 567
+          <https://bitbucket.org/hpk42/pytest/issue/567>`_ for details on
+          why setup.cfg is inadequate.
+        - Optionally, set ``test=pytest`` in the ``[aliases]`` section of setup.cfg
+          to cause ``setup.py test`` to invoke pytest.
+        
+        Example
+        -------
+        
+        The most simple usage looks like this in setup.py::
+        
+            setup(
+                setup_requires=[
+                    'pytest-runner',
+                ],
+                tests_require=[
+                    'pytest',
+                ],
+            )
+        
+        Additional dependencies require to run the tests (e.g. mock or pytest
+        plugins) may be added to tests_require and will be downloaded and
+        required by the session before invoking pytest.
+        
+        See the `jaraco.collections
+        <https://bitbucket.org/jaraco/jaraco.collections/>`_ project
+        for real-world usage.
+        
+        Standalone Example
+        ------------------
+        
+        Although ``pytest-runner`` is typically used to add pytest test
+        runner support to maintained packages, ``pytest-runner`` may
+        also be used to create standalone tests. Consider `this example
+        failure <https://gist.github.com/jaraco/d979a558bc0bf2194c23>`_,
+        reported in `jsonpickle #117
+        <https://github.com/jsonpickle/jsonpickle/issues/117>`_.
+        
+        That single file may be cloned or downloaded and simply run on
+        any system with Python and Setuptools. It will download the
+        specified dependencies and run the tests. Afterward, the the
+        cloned directory can be removed and with it all trace of
+        invoking the test. No other dependencies are needed and no
+        system configuration is altered.
+        
+        Then, anyone trying to replicate the failure can do so easily
+        and with all the power of pytest (rewritten assertions,
+        rich comparisons, interactive debugging, extensibility through
+        plugins, etc).
+        
+        As a result, the communication barrier for describing and
+        replicating failures is made almost trivially low.
+        
+        Considerations
+        --------------
+        
+        Conditional Requirement
+        ~~~~~~~~~~~~~~~~~~~~~~~
+        
+        Because it uses Setuptools setup_requires, pytest-runner will install itself
+        on every invocation of setup.py. In some cases, this causes delays for
+        invocations of setup.py that will never invoke pytest-runner. To help avoid
+        this contingency, consider requiring pytest-runner only when pytest
+        is invoked::
+        
+            needs_pytest = {'pytest', 'test', 'ptr'}.intersection(sys.argv)
+            pytest_runner = ['pytest-runner'] if needs_pytest else []
+        
+            # ...
+        
+            setup(
+                #...
+                setup_requires=[
+                    #... (other setup requirements)
+                ] + pytest_runner,
+            )
+        
+Platform: UNKNOWN
+Classifier: Development Status :: 5 - Production/Stable
+Classifier: Intended Audience :: Developers
+Classifier: License :: OSI Approved :: MIT License
+Classifier: Programming Language :: Python :: 2.6
+Classifier: Programming Language :: Python :: 2.7
+Classifier: Programming Language :: Python :: 3
diff --git a/pytest_runner.egg-info/SOURCES.txt b/pytest_runner.egg-info/SOURCES.txt
new file mode 100644
index 0000000..4952872
--- /dev/null
+++ b/pytest_runner.egg-info/SOURCES.txt
@@ -0,0 +1,16 @@
+.hgignore
+.hgtags
+CHANGES.txt
+README.txt
+ptr.py
+pytest.ini
+setup.cfg
+setup.py
+docs/conf.py
+docs/history.rst
+docs/index.rst
+pytest_runner.egg-info/PKG-INFO
+pytest_runner.egg-info/SOURCES.txt
+pytest_runner.egg-info/dependency_links.txt
+pytest_runner.egg-info/entry_points.txt
+pytest_runner.egg-info/top_level.txt
\ No newline at end of file
diff --git a/pytest_runner.egg-info/dependency_links.txt b/pytest_runner.egg-info/dependency_links.txt
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/pytest_runner.egg-info/dependency_links.txt
@@ -0,0 +1 @@
+
diff --git a/pytest_runner.egg-info/entry_points.txt b/pytest_runner.egg-info/entry_points.txt
new file mode 100644
index 0000000..8e63e0e
--- /dev/null
+++ b/pytest_runner.egg-info/entry_points.txt
@@ -0,0 +1,4 @@
+[distutils.commands]
+ptr = ptr:PyTest
+pytest = ptr:PyTest
+
diff --git a/pytest_runner.egg-info/top_level.txt b/pytest_runner.egg-info/top_level.txt
new file mode 100644
index 0000000..e9148ae
--- /dev/null
+++ b/pytest_runner.egg-info/top_level.txt
@@ -0,0 +1 @@
+ptr
diff --git a/setup.cfg b/setup.cfg
new file mode 100644
index 0000000..5a445dd
--- /dev/null
+++ b/setup.cfg
@@ -0,0 +1,9 @@
+[aliases]
+release = sdist build_sphinx upload upload_docs
+test = pytest
+
+[egg_info]
+tag_build = 
+tag_date = 0
+tag_svn_revision = 0
+
diff --git a/setup.py b/setup.py
new file mode 100644
index 0000000..7c6596b
--- /dev/null
+++ b/setup.py
@@ -0,0 +1,53 @@
+#!/usr/bin/env python
+# Generated by jaraco.develop 2.14
+# https://pypi.python.org/pypi/jaraco.develop
+
+import io
+import sys
+
+import setuptools
+
+with io.open('README.txt', encoding='utf-8') as readme:
+	long_description = readme.read()
+
+needs_pytest = set(['pytest', 'test']).intersection(sys.argv)
+pytest_runner = ['pytest-runner'] if needs_pytest else []
+needs_sphinx = set(['release', 'build_sphinx', 'upload_docs']).intersection(sys.argv)
+sphinx = ['sphinx'] if needs_sphinx else []
+
+setup_params = dict(
+	name='pytest-runner',
+	use_scm_version=True,
+	author="Jason R. Coombs",
+	author_email="jaraco at jaraco.com",
+	description="Invoke py.test as distutils command with dependency "
+		"resolution.",
+	long_description=long_description,
+	url="https://bitbucket.org/pytest-dev/pytest-runner",
+	py_modules=['ptr'],
+	entry_points = {
+		'distutils.commands': [
+			'ptr = ptr:PyTest',
+			'pytest = ptr:PyTest',
+		],
+	},
+	install_requires=[
+	],
+	setup_requires=[
+		'setuptools_scm',
+	] + pytest_runner + sphinx,
+	tests_require=[
+		'pytest',
+	],
+	license='MIT',
+	classifiers=[
+		"Development Status :: 5 - Production/Stable",
+		"Intended Audience :: Developers",
+		"License :: OSI Approved :: MIT License",
+		"Programming Language :: Python :: 2.6",
+		"Programming Language :: Python :: 2.7",
+		"Programming Language :: Python :: 3",
+	],
+)
+if __name__ == '__main__':
+	setuptools.setup(**setup_params)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/pytest-runner.git



More information about the Python-modules-commits mailing list