Skip to content

Commit

Permalink
freeze deps in tox.ini
Browse files Browse the repository at this point in the history
  • Loading branch information
hh-h committed Jan 23, 2021
1 parent 037bcc3 commit db8f6e3
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 40 deletions.
48 changes: 25 additions & 23 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,34 +1,36 @@
import aiosnmp
from pathlib import Path

from setuptools import setup

readme = Path(__file__).with_name('README.md')
import aiosnmp

readme = Path(__file__).with_name("README.md")

setup(
name='aiosnmp',
name="aiosnmp",
version=aiosnmp.__version__,
packages=['aiosnmp'],
url='https://github.com/hh-h/aiosnmp',
license='MIT',
author='Valetov Konstantin',
author_email='[email protected]',
description='asyncio SNMP client',
long_description=readme.read_text('utf-8'),
long_description_content_type='text/markdown',
packages=["aiosnmp"],
url="https://github.com/hh-h/aiosnmp",
license="MIT",
author="Valetov Konstantin",
author_email="[email protected]",
description="asyncio SNMP client",
long_description=readme.read_text("utf-8"),
long_description_content_type="text/markdown",
setup_requires=["pytest-runner"],
tests_require=["pytest"],
classifiers=[
'License :: OSI Approved :: MIT License',
'Intended Audience :: Developers',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Development Status :: 4 - Beta',
'Operating System :: POSIX',
'Operating System :: MacOS :: MacOS X',
'Framework :: AsyncIO',
"License :: OSI Approved :: MIT License",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Development Status :: 4 - Beta",
"Operating System :: POSIX",
"Operating System :: MacOS :: MacOS X",
"Framework :: AsyncIO",
],
python_requires='>=3.6'
python_requires=">=3.6",
)
34 changes: 17 additions & 17 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ envlist = check, py{36,37,38,39}-{asyncio,uvloop}

[testenv]
deps =
pytest
pytest-xdist
pytest-asyncio
pytest-cov
uvloop: uvloop
pytest == 6.2.1
pytest-xdist == 2.2.0
pytest-asyncio == 0.14.0
pytest-cov == 2.11.1
uvloop: uvloop == 0.14.0
commands =
asyncio: pytest -n 1 --durations=5 --cov=aiosnmp --cov-report=term-missing --event-loop=asyncio {posargs}
uvloop: pytest -n 1 --durations=5 --cov=aiosnmp --cov-report=term-missing --event-loop=uvloop {posargs}
Expand All @@ -16,24 +16,24 @@ docker =

[testenv:check]
deps =
mypy
black
flake8
isort
flake8 == 3.8.4
isort == 5.7.0
black == 20.8b1
mypy == 0.800
commands =
flake8 aiosnmp tests examples
isort -q --check --diff aiosnmp tests examples
black -q --check --diff aiosnmp tests examples
mypy aiosnmp
flake8 aiosnmp/ tests/ examples/ setup.py
isort -q --check --diff aiosnmp/ tests/ examples/ setup.py
black -l 120 -q --check --diff aiosnmp/ tests/ examples/ setup.py
mypy aiosnmp/
docker =
skip_install = true

[testenv:format]
deps =
black
isort
isort == 5.7.0
black == 20.8b1
commands =
isort aiosnmp tests examples
black -l 120 aiosnmp tests examples
isort aiosnmp/ tests/ examples/ setup.py
black -l 120 aiosnmp/ tests/ examples/ setup.py
docker =
skip_install = true

0 comments on commit db8f6e3

Please sign in to comment.