Skip to content

Commit

Permalink
Add Python version classifiers.
Browse files Browse the repository at this point in the history
Also add setup.cfg to indicate that wheels are universal.

Fix tests on Travis and enable coveralls.

Add appropriate .coveragerc.
  • Loading branch information
jamadden committed May 9, 2017
1 parent 34acfdb commit 3f1a7b6
Show file tree
Hide file tree
Showing 8 changed files with 47 additions and 17 deletions.
6 changes: 6 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[run]
source = src

[report]
exclude_lines =
pragma: no cover
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ build/
dist/
*.egg-info/
.tox/
.coverage
htmlcov/
30 changes: 21 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,25 @@
language: python
sudo: false
env:
- TOXENV=py27
- TOXENV=py35
- TOXENV=py36
- TOXENV=pypy
install:
- travis_retry pip install tox
python:
- 2.7
- 3.5
- 3.6
- pypy-5.4.1
script:
- tox
- coverage run -m zope.testrunner --test-path=src --auto-color --auto-progress

after_success:
- coveralls
notifications:
email: false
email: false

install:
- pip install -U pip setuptools
- pip install -U coveralls coverage
- pip install -U -e ".[test]"


cache: pip

before_cache:
- rm -f $HOME/.cache/pip/log/debug.log
2 changes: 1 addition & 1 deletion CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ CHANGES
4.0.1 (unreleased)
------------------

- Nothing changed yet.
- Packaging: Add the Python version and implementation classifiers.


4.0.0 (2017-04-17)
Expand Down
3 changes: 3 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
include *.py
include *.txt
include buildout.cfg
include tox.ini
include .travis.yml
include .coveragerc

recursive-include src *.cfg
recursive-include src *.txt
Expand Down
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[bdist_wheel]
universal = 1
13 changes: 11 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ def read(*rnames):
return open(os.path.join(os.path.dirname(__file__), *rnames)).read()

TESTS_REQUIRE = [
'zope.testrunner',
]

setup(name='zope.app.schema',
Expand All @@ -46,10 +47,18 @@ def read(*rnames):
'Intended Audience :: Developers',
'License :: OSI Approved :: Zope Public License',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Natural Language :: English',
'Operating System :: OS Independent',
'Topic :: Internet :: WWW/HTTP',
'Framework :: Zope3'],
'Framework :: Zope3',
],
url='http://pypi.python.org/pypi/zope.app.schema',
license='ZPL 2.1',
packages=find_packages('src'),
Expand All @@ -62,7 +71,7 @@ def read(*rnames):
'zope.component',
'zope.interface',
'zope.schema',
],
],
include_package_data = True,
tests_require=TESTS_REQUIRE,
test_suite='zope.app.schema.tests.test_suite',
Expand Down
6 changes: 1 addition & 5 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@
envlist = py27,py35,py36,pypy

[testenv]
usedevelop = true
commands =
python setup.py -q test
zope-testrunner --test-path=src []
deps =
zope.component
zope.interface
zope.schema
.[test]

0 comments on commit 3f1a7b6

Please sign in to comment.