Skip to content

Commit

Permalink
Drop Jython/Python 2 and add Python 3.9/3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
martinblech committed May 8, 2022
1 parent ae19c45 commit b468b64
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 24 deletions.
21 changes: 5 additions & 16 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,15 @@
language: python

python:
- "2.7"
- "3.4"
- "3.5"
- "3.6"
- "3.7"
- "3.8"
- "3.9"
- "3.10-dev"
- "pypy"

script: nosetests -vv --with-coverage --cover-package=xmltodict
install: pip install nose2

jobs:
include:
- python: "3.8"
dist: bionic
- name: "Jython"
python: "pypy"
env: JYTHON_VERSION="2.7.0"
before_install:
- export JYTHON_URL="http://search.maven.org/remotecontent?filepath=org/python/jython-installer/${JYTHON_VERSION}/jython-installer-${JYTHON_VERSION}.jar"
- wget $JYTHON_URL -O jython_installer.jar
- java -jar jython_installer.jar -s -d $HOME/jython
- export PATH="$HOME/jython:$PATH"
- $HOME/jython/bin/easy_install nose
script: $HOME/jython/bin/nosetests
script: nose2 -vv --coverage=xmltodict.py
9 changes: 4 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,24 +22,23 @@
url='https://github.com/martinblech/xmltodict',
license=xmltodict.__license__,
platforms=['all'],
python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',
python_requires='>=3.4',
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: Implementation :: Jython',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Text Processing :: Markup :: XML',
],
py_modules=['xmltodict'],
tests_require=['nose>=1.0', 'coverage'],
tests_require=['nose2', 'coverage'],
)
6 changes: 3 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tox]
envlist = py27, py34, py35, py36, py37, py38, pypy
envlist = py34, py35, py36, py37, py38, py39, py310, pypy
[testenv]
deps =
coverage
nose
commands=nosetests --with-coverage --cover-package=xmltodict
nose2
commands=nose2 --coverage=xmltodict.py

0 comments on commit b468b64

Please sign in to comment.