parent
9f9d89ce71
commit
797b17bc3a
|
@ -6,3 +6,8 @@ dist
|
|||
.testrepository
|
||||
__pycache__
|
||||
fixtures.egg-info
|
||||
*.pyc
|
||||
.*.swp
|
||||
*~
|
||||
AUTHORS
|
||||
ChangeLog
|
9
HACKING
9
HACKING
|
@ -7,17 +7,14 @@ Code access
|
|||
Branch from the trunk (all patches should be for trunk unless there are
|
||||
exceptional circumstances)::
|
||||
|
||||
bzr branch lp:python-fixtures path-to-new-local-branch
|
||||
git clone https://github.com/testing-cabal/fixtures path-to-new-local-repo
|
||||
|
||||
Publish your branches whereever you like, I encourage Launchpad hosting though,
|
||||
as it can notify the community of new fixtures branches::
|
||||
|
||||
bzr push lp:~YOURUSERNAME/python-fixtures/YOURBRANCHNAME
|
||||
Publish your branches whereever you like and submit PR's on github.
|
||||
|
||||
Copyright
|
||||
+++++++++
|
||||
|
||||
Fixtures is Copyright (C) 2010 Robert Collins. I'd like to be able to
|
||||
Fixtures is Copyright (C) 2010-2014 Robert Collins. I'd like to be able to
|
||||
offer it up for stdlib inclusion once it has proved itself, so am asking for
|
||||
copyright assignment to me - or for your contributions to be under the BSD and
|
||||
Apache-2.0 licences that Fixtures is under (which permit inclusion in Python).
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
include .bzrignore
|
||||
include Apache-2.0
|
||||
include BSD
|
||||
include COPYING
|
||||
|
|
12
Makefile
12
Makefile
|
@ -1,19 +1,17 @@
|
|||
PYTHONPATH:=$(shell pwd)/lib:${PYTHONPATH}
|
||||
PYTHON ?= python
|
||||
|
||||
all: check
|
||||
|
||||
check:
|
||||
PYTHONPATH=$(PYTHONPATH) $(PYTHON) -m testtools.run \
|
||||
fixtures.test_suite
|
||||
$(PYTHON) -m testtools.run fixtures.test_suite
|
||||
|
||||
clean:
|
||||
find . -name '*.pyc' -print0 | xargs -0 rm -f
|
||||
|
||||
TAGS: lib/fixtures/*.py lib/fixtures/tests/*.py
|
||||
ctags -e -R lib/fixtures/
|
||||
TAGS: fixtures/*.py fixtures/tests/*.py
|
||||
ctags -e -R fixtures/
|
||||
|
||||
tags: lib/fixtures/*.py lib/fixtures/tests/*.py
|
||||
ctags -R lib/fixtures/
|
||||
tags: fixtures/*.py fixtures/tests/*.py
|
||||
ctags -R fixtures/
|
||||
|
||||
.PHONY: all check clean
|
||||
|
|
4
NEWS
4
NEWS
|
@ -6,6 +6,10 @@ fixtures release notes
|
|||
NEXT
|
||||
~~~~
|
||||
|
||||
* Fixtures source code is now hosted on
|
||||
`github <https://github.com/testing-cabal/fixtures>`_.
|
||||
(Robert Collins)
|
||||
|
||||
0.3.16
|
||||
~~~~~~
|
||||
|
||||
|
|
3
README
3
README
|
@ -28,6 +28,9 @@ Dependencies
|
|||
* Python 2.6+
|
||||
This is the base language fixtures is written in and for.
|
||||
|
||||
* pbr
|
||||
Used for version and release management of fixtures.
|
||||
|
||||
* testtools <https://launchpad.net/testtools> 0.9.22 or newer.
|
||||
testtools provides helpful glue functions for the details API used to report
|
||||
information about a fixture (whether its used in a testing or production
|
||||
|
|
|
@ -47,8 +47,8 @@ __all__ = [
|
|||
'FakePopen',
|
||||
'Fixture',
|
||||
'FunctionFixture',
|
||||
'LoggerFixture',
|
||||
'LogHandler',
|
||||
'LoggerFixture',
|
||||
'MethodFixture',
|
||||
'MonkeyPatch',
|
||||
'NestedTempfile',
|
||||
|
@ -62,9 +62,13 @@ __all__ = [
|
|||
'TestWithFixtures',
|
||||
'Timeout',
|
||||
'TimeoutException',
|
||||
'__version__',
|
||||
'version',
|
||||
]
|
||||
|
||||
|
||||
import pbr.version
|
||||
|
||||
from fixtures.fixture import (
|
||||
Fixture,
|
||||
FunctionFixture,
|
||||
|
@ -93,6 +97,24 @@ from fixtures._fixtures import (
|
|||
)
|
||||
from fixtures.testcase import TestWithFixtures
|
||||
|
||||
# same format as sys.version_info: "A tuple containing the five components of
|
||||
# the version number: major, minor, micro, releaselevel, and serial. All
|
||||
# values except releaselevel are integers; the release level is 'alpha',
|
||||
# 'beta', 'candidate', or 'final'. The version_info value corresponding to the
|
||||
# Python version 2.0 is (2, 0, 0, 'final', 0)." Additionally we use a
|
||||
# releaselevel of 'dev' for unreleased under-development code.
|
||||
#
|
||||
# If the releaselevel is 'alpha' then the major/minor/micro components are not
|
||||
# established at this point, and setup.py will use a version of next-$(revno).
|
||||
# If the releaselevel is 'final', then the tarball will be major.minor.micro.
|
||||
# Otherwise it is major.minor.micro~$(revno).
|
||||
|
||||
# Uncomment when pbr 0.11 is released.
|
||||
#_version = pbr.version.VersionInfo('fixtures').semantic_version()
|
||||
#__version__ = _version.version_tuple()
|
||||
#version = _version.release_string()
|
||||
__version__ = (0, 3, 17, 'alpha', 0)
|
||||
|
||||
|
||||
def test_suite():
|
||||
import fixtures.tests
|
|
@ -43,5 +43,5 @@ def load_tests(loader, standard_tests, pattern):
|
|||
standard_tests.addTests(fixtures.tests._fixtures.load_tests(
|
||||
loader, loader.loadTestsFromName('fixtures.tests._fixtures'), pattern))
|
||||
doctest.set_unittest_reportflags(doctest.REPORT_ONLY_FIRST_FAILURE)
|
||||
standard_tests.addTest(doctest.DocFileSuite("../../../README"))
|
||||
standard_tests.addTest(doctest.DocFileSuite("../../README"))
|
||||
return standard_tests
|
|
@ -0,0 +1 @@
|
|||
testtools>=0.9.22
|
|
@ -0,0 +1,27 @@
|
|||
[metadata]
|
||||
name = fixtures
|
||||
summary = Fixtures, reusable state for writing clean tests and more.
|
||||
description-file =
|
||||
README
|
||||
author = Robert Collins
|
||||
author-email = robertc@robertcollins.net
|
||||
home-page = https://launchpad.net/python-fixtures
|
||||
classifier =
|
||||
Development Status :: 6 - Mature
|
||||
Intended Audience :: Developers
|
||||
License :: OSI Approved :: BSD License
|
||||
License :: OSI Approved :: Apache Software License
|
||||
Operating System :: OS Independent
|
||||
Programming Language :: Python
|
||||
Programming Language :: Python :: 3
|
||||
Topic :: Software Development :: Quality Assurance
|
||||
Topic :: Software Development :: Testing
|
||||
|
||||
[files]
|
||||
packages =
|
||||
fixtures
|
||||
|
||||
[entry_points]
|
||||
console_scripts =
|
||||
lmirror = l_mirror.main:main
|
||||
|
34
setup.py
34
setup.py
|
@ -1,33 +1,7 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
from distutils.core import setup
|
||||
import os.path
|
||||
import setuptools
|
||||
|
||||
description = open(os.path.join(os.path.dirname(__file__), 'README'), 'rt').read()
|
||||
|
||||
setup(name="fixtures",
|
||||
version="0.3.16",
|
||||
description="Fixtures, reusable state for writing clean tests and more.",
|
||||
keywords="fixture fixtures unittest contextmanager",
|
||||
long_description=description,
|
||||
maintainer="Robert Collins",
|
||||
maintainer_email="robertc@robertcollins.net",
|
||||
url="https://launchpad.net/python-fixtures",
|
||||
packages=['fixtures', 'fixtures._fixtures', 'fixtures.tests',
|
||||
'fixtures.tests._fixtures'],
|
||||
package_dir = {'':'lib'},
|
||||
classifiers = [
|
||||
'Development Status :: 6 - Mature',
|
||||
'Intended Audience :: Developers',
|
||||
'License :: OSI Approved :: BSD License',
|
||||
'License :: OSI Approved :: Apache Software License',
|
||||
'Operating System :: OS Independent',
|
||||
'Programming Language :: Python',
|
||||
'Programming Language :: Python :: 3',
|
||||
'Topic :: Software Development :: Quality Assurance',
|
||||
'Topic :: Software Development :: Testing',
|
||||
],
|
||||
requires = [
|
||||
'testtools',
|
||||
],
|
||||
)
|
||||
setuptools.setup(
|
||||
setup_requires=['pbr'],
|
||||
pbr=True)
|
||||
|
|
Loading…
Reference in New Issue