diff --git a/.travis/install.sh b/.travis/install.sh index 1147f8ef..fdfe0181 100755 --- a/.travis/install.sh +++ b/.travis/install.sh @@ -22,12 +22,12 @@ if [[ "$(uname -s)" == 'Darwin' ]]; then case "${TOXENV}" in py34) - pyenv install 3.4.3 - pyenv global 3.4.3 + pyenv install 3.4.5 + pyenv global 3.4.5 ;; py35) - pyenv install 3.5.1 - pyenv global 3.5.1 + pyenv install 3.5.2 + pyenv global 3.5.2 ;; py36) pyenv install 3.6.0 diff --git a/MANIFEST.in b/MANIFEST.in index f58b579a..eb7eb0cb 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -7,4 +7,5 @@ recursive-exclude docs *.pyc recursive-exclude docs *.pyo prune docs/_build prune .travis +prune .github exclude .coveragerc .gitattributes .gitignore .travis.yml Vagrantfile diff --git a/Vagrantfile b/Vagrantfile index 4dfb8974..724ad79e 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -470,11 +470,13 @@ Vagrant.configure(2) do |config| end # BSD + # note: the FreeBSD-10.3-STABLE box needs "vagrant up" twice to start. config.vm.define "freebsd64" do |b| - b.vm.box = "geoffgarside/freebsd-10.2" + b.vm.box = "freebsd/FreeBSD-10.3-STABLE" b.vm.provider :virtualbox do |v| v.memory = 768 end + b.ssh.shell = "sh" b.vm.provision "install system packages", :type => :shell, :inline => packages_freebsd b.vm.provision "install pyenv", :type => :shell, :privileged => false, :inline => install_pyenv("freebsd") b.vm.provision "install pythons", :type => :shell, :privileged => false, :inline => install_pythons("freebsd") diff --git a/docs/changes.rst b/docs/changes.rst index 24927e69..f95d5590 100644 --- a/docs/changes.rst +++ b/docs/changes.rst @@ -234,9 +234,13 @@ Other changes: - vagrant / travis / tox: add Python 3.6 based testing - vagrant: fix openbsd repo, fixes #2042 + - vagrant: fix the freebsd64 machine, #2037 - travis: fix osxfuse install (fixes OS X testing on Travis CI) - travis: require succeeding OS X tests, #2028 + - travis: use latest pythons for OS X based testing - use pytest-xdist to parallelize testing + - fix xattr test race condition, #2047 + - setup.cfg: fix pytest deprecation warning, #2050 - docs: - language clarification - VM backup FAQ @@ -246,6 +250,8 @@ Other changes: - remote: include data hexdump in "unexpected RPC data" error message - remote: log SSH command line at debug level - API_VERSION: use numberspaces, #2023 +- remove .github from pypi package, #2051 +- add pip and setuptools to requirements file, #2030 Version 1.0.9 (2016-12-20) diff --git a/requirements.d/development.txt b/requirements.d/development.txt index e3417060..de242810 100644 --- a/requirements.d/development.txt +++ b/requirements.d/development.txt @@ -1,3 +1,5 @@ +setuptools +pip virtualenv tox pytest diff --git a/setup.cfg b/setup.cfg index 6f408a95..93f009af 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,4 +1,4 @@ -[pytest] +[tool:pytest] python_files = testsuite/*.py [flake8] diff --git a/src/borg/testsuite/xattr.py b/src/borg/testsuite/xattr.py index 5693c753..db01a29a 100644 --- a/src/borg/testsuite/xattr.py +++ b/src/borg/testsuite/xattr.py @@ -11,7 +11,7 @@ class XattrTestCase(BaseTestCase): def setUp(self): self.tmpfile = tempfile.NamedTemporaryFile() - self.symlink = os.path.join(os.path.dirname(self.tmpfile.name), 'symlink') + self.symlink = self.tmpfile.name + '.symlink' os.symlink(self.tmpfile.name, self.symlink) def tearDown(self): diff --git a/tox.ini b/tox.ini index 9c7cea25..b033630d 100644 --- a/tox.ini +++ b/tox.ini @@ -9,7 +9,7 @@ deps = -rrequirements.d/development.txt -rrequirements.d/attic.txt -rrequirements.d/fuse.txt -commands = py.test -n 8 -rs --cov=borg --cov-config=.coveragerc --benchmark-skip --pyargs {posargs:borg.testsuite} +commands = py.test -n {env:XDISTN:4} -rs --cov=borg --cov-config=.coveragerc --benchmark-skip --pyargs {posargs:borg.testsuite} # fakeroot -u needs some env vars: passenv = *