Skip to content
This repository has been archived by the owner on Nov 28, 2023. It is now read-only.

Support Python 3.8. #6

Merged
merged 15 commits into from
Apr 1, 2020
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,11 @@ doc/_api
eggs
local.cfg
parts
coverage.xml
testreport.xml
.tox
coverage-report
.Python
pip-selfcheck.json
include
lib
sallner marked this conversation as resolved.
Show resolved Hide resolved
10 changes: 4 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
language: python
python:
- 2.7
- 2.7
- 3.8
install:
- pip install -U setuptools zc.buildout setuptools-scm coveralls
- buildout -n
- pip install tox-travis coverage coveralls
script:
- bin/test --cache-clear --cov-report term-missing --cov src
- tox
after_success:
- coverage combine
- coveralls
cache:
pip: true
directories:
- eggs/
notifications:
webhooks:
secure: MnnP3Zk/XAZ4mARVPB0SJpys2MPvENMQXL5O9M8MinOr3sr8hWt8jVmAryQMMr3+Dxy6JGplN3B/iF/EIjo/pPYq2EDcgoTQL7bNvYO2wQY+cnnLMQV0V/t7hvBBfSfsIhzoNRJ4/G6nGvY7f9RxBdD7LQdb5BZmPJCOAt9AyKneGWDM2j83crd4dALlVal1uNk4PeBXcibuXxwbJTOceqiMExdKGTqLWez8LQ0JQS+67J/Iw0vLhGdcJlEDkWkWRp97leJxh/DBITIlcA1d6DiGQRRtqN5ATizoq5IWrW/XLf7MwS88Y+KHgmvTR0hO8qAnNqVRLnaI8M8qjfjPMkIvW0qqjJlQhBRwVl/Bw6Z2oafDPjxq0ZbZ1nfmhqpILOWO8hVsTsf/iG8GctkffmXtVE7H1kOudESqTr13a8mw9ONAp1bcerSQuDbDBbvLESenVxffAmvmXll5aqg2aHcCo0IHUlqD9LE5OzbyreclER/i1roHZ/zy9HNYNWCaOBcbbusZ4/woOfRhxQz8PE7yvZ9Xo6h0gcBR2q09YMIa+RD/Fw0b7JPmYW+0u768u8ZOomx75sqD1z581+nz2YvZYw8fbs0jjNC+5B88Fh1NTlsseAmYVt+m1WfJXds3PnatHtg5wWv0C6CrVhSAOiZIcAUZ60gg/RMgwzsrn8s=
10 changes: 8 additions & 2 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,14 @@
Changes
=======

0.9.5 (unreleased)
==================
0.10 (unreleased)
=================

- Support Python 3.8.

- Use tox as only test setup.

- Switch dependency from ``ZODB3`` to ``ZODB``.

- Migrate to Github.

Expand Down
210 changes: 0 additions & 210 deletions bootstrap.py

This file was deleted.

29 changes: 0 additions & 29 deletions buildout.cfg

This file was deleted.

10 changes: 6 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def read(filename):


name = "gocept.reference"
version = '0.9.5.dev0'
version = '0.10.dev0'


setup(
Expand Down Expand Up @@ -37,8 +37,10 @@ def read(filename):
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 2 :: Only",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"License :: OSI Approved :: Zope Public License",
"Natural Language :: English",
"Operating System :: OS Independent",
Expand All @@ -50,7 +52,7 @@ def read(filename):
package_dir={'': 'src'},
namespace_packages=['gocept'],
install_requires=[
'ZODB3',
'ZODB',
'setuptools',
'transaction',
'zope.annotation',
Expand All @@ -60,12 +62,12 @@ def read(filename):
'zope.generations',
'zope.interface',
'zope.schema >= 3.6.0',
'zope.site',
'zope.traversing',
],
extras_require={
'test': ['zope.app.testing',
'zope.app.zcmlfiles',
'gocept.pytestlayer',
]
},
)
2 changes: 1 addition & 1 deletion src/gocept/reference/collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def discard(self, value):
self._data.remove(key)

def pop(self):
key = iter(self._data).next()
key = next(iter(self._data))
self._data.remove(key)
self._unregister_key(key)
return gocept.reference.reference.lookup(key)
Expand Down
Loading