Skip to content

Commit

Permalink
Migrate to git and pbr.
Browse files Browse the repository at this point in the history
No functional changes.
  • Loading branch information
rbtcollins committed Sep 25, 2014
1 parent 9f9d89c commit 797b17b
Show file tree
Hide file tree
Showing 42 changed files with 76 additions and 46 deletions.
5 changes: 5 additions & 0 deletions .bzrignore → .gitignore
Expand Up @@ -6,3 +6,8 @@ dist
.testrepository
__pycache__
fixtures.egg-info
*.pyc
.*.swp
*~
AUTHORS
ChangeLog
9 changes: 3 additions & 6 deletions HACKING
Expand Up @@ -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).
Expand Down
1 change: 0 additions & 1 deletion MANIFEST.in
@@ -1,4 +1,3 @@
include .bzrignore
include Apache-2.0
include BSD
include COPYING
Expand Down
12 changes: 5 additions & 7 deletions 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 changes: 4 additions & 0 deletions NEWS
Expand Up @@ -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
~~~~~~

Expand Down
3 changes: 3 additions & 0 deletions README
Expand Up @@ -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
Expand Down
24 changes: 23 additions & 1 deletion lib/fixtures/__init__.py → fixtures/__init__.py
Expand Up @@ -47,8 +47,8 @@
'FakePopen',
'Fixture',
'FunctionFixture',
'LoggerFixture',
'LogHandler',
'LoggerFixture',
'MethodFixture',
'MonkeyPatch',
'NestedTempfile',
Expand All @@ -62,9 +62,13 @@
'TestWithFixtures',
'Timeout',
'TimeoutException',
'__version__',
'version',
]


import pbr.version

from fixtures.fixture import (
Fixture,
FunctionFixture,
Expand Down Expand Up @@ -93,6 +97,24 @@
)
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
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Expand Up @@ -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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions requirements.txt
@@ -0,0 +1 @@
testtools>=0.9.22
27 changes: 27 additions & 0 deletions setup.cfg
@@ -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 changes: 4 additions & 30 deletions 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)

0 comments on commit 797b17b

Please sign in to comment.