Skip to content

Commit

Permalink
Refresh test infra
Browse files Browse the repository at this point in the history
  • Loading branch information
kiorky committed Oct 25, 2024
1 parent eda0770 commit b27788c
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 22 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Changelog

- Fix overflow on 32bits systems (#87) [kiorky]
- Fix python2 testing (related to #93) [kiorky]
- Modernize packaging. Special thanks to Aarni Koskela (akx) for all the inputs. [kiorky]

3.0.3 (2024-07-26)
------------------
Expand Down
1 change: 1 addition & 0 deletions requirements/lint.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
flake8
1 change: 0 additions & 1 deletion requirements/release.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
-r base.txt
zest.releaser[recommended]>=6.7
9 changes: 2 additions & 7 deletions requirements/test.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
-r base.txt
pytest>=3.0.3
tox>=2.4.1
pytest>=8.3.3
pytest-cov>=5.0.0
coverage>=4.2
mock>=2.0.0 # For Python 2
coveralls
flake8
tzlocal
pylint
pylama
tox-direct
setuptools
2 changes: 2 additions & 0 deletions requirements/tox.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
tox>=4
git+https://github.com/fedora-python/tox-current-env.git@0cf2785#egg=tox-current-env
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ def read(*rnames):
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Software Development :: Libraries :: Python Modules"],
packages=find_packages('src', exclude=['tests*', '*.tests*']),
package_dir={'': 'src'},
Expand Down
26 changes: 12 additions & 14 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,21 +1,19 @@
[tox]
minversion = 2.3
envlist =
{py26,py27,py34,py35,py36,py37,py38,py39,py310,py311,py312}-std
py27-coverage
minversion = 4
skipsdist = true
envlist = lint,test,cov
skip_missing_interpreters = true

[testenv]
usedevelop = true
deps =
-r{toxinidir}/requirements/test.txt
whitelist_externals = /bin/sh
setenv =
COVERAGE_FILE={envdir}/coverage_report
deps = -r{toxinidir}/requirements/test.txt
changedir = src
commands =
{py26,py27,py34,py35,py36,py37,py38,py39,py310,py311}-std: py.test -v .
{py27,py34,py35,py36,py37,py38,py39,py310,py311}-std: flake8 croniter/croniter.py
py27-coverage: coverage erase
py27-coverage: sh -c 'cd .. && coverage run $(which py.test) -v src'
py27-coverage: coverage report
test: py.test -v .
cov: py.test --cov -v .

[testenv:lint]
deps = -r{toxinidir}/requirements/lint.txt
changedir = src
commands = flake8 croniter/croniter.py

0 comments on commit b27788c

Please sign in to comment.