forked from etingof/pyasn1-modules
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- move ``setup.py`` infos to ``setup.cfg`` - use ``build`` to build sdist and wheel - simplify ``tox.ini`` - Drop Python 3.5 - use ``unittest discover`` to discover tests - https://github.com/etingof -> https://github.com/pyasn1 - Drop TravisCI
- Loading branch information
Showing
8 changed files
with
91 additions
and
212 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
*.pyc | ||
__pycache__ | ||
.tox | ||
.coverage | ||
|
||
# vim swapfiles | ||
*.sw? | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[build-system] | ||
requires = [ | ||
"setuptools" | ||
] | ||
build-backend = "setuptools.build_meta" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,54 @@ | ||
[bdist_wheel] | ||
universal = 1 | ||
|
||
[metadata] | ||
name = pyasn1_modules | ||
version = attr: pyasn1_modules.__version__ | ||
description = A collection of ASN.1-based protocols modules | ||
long_description = file: README.md | ||
long_description_content_type = text/markdown | ||
license = BSD | ||
license_file = LICENSE.txt | ||
url = https://github.com/pyasn1/pyasn1-modules | ||
author = Ilya Etingof | ||
author_email = etingof@gmail.com | ||
maintainer = Ilya Etingof | ||
maintainer_email = etingof@gmail.com | ||
project_urls = | ||
Source=https://github.com/pyasn1/pyasn1-modules | ||
Issues=https://github.com/pyasn1/pyasn1-modules/issues | ||
Changelog=https://github.com/pyasn1/pyasn1-modules/blob/master/CHANGES.txt | ||
platforms = any | ||
classifiers = | ||
Development Status :: 5 - Production/Stable | ||
Environment :: Console | ||
Intended Audience :: Developers | ||
Intended Audience :: Education | ||
Intended Audience :: Information Technology | ||
Intended Audience :: System Administrators | ||
Intended Audience :: Telecommunications Industry | ||
License :: OSI Approved :: BSD License | ||
Natural Language :: English | ||
Operating System :: OS Independent | ||
Programming Language :: Python :: 2 | ||
Programming Language :: Python :: 2.7 | ||
Programming Language :: Python :: 3 | ||
Programming Language :: Python :: 3.6 | ||
Programming Language :: Python :: 3.7 | ||
Programming Language :: Python :: 3.8 | ||
Programming Language :: Python :: 3.9 | ||
Programming Language :: Python :: 3.10 | ||
Programming Language :: Python :: 3.11 | ||
Programming Language :: Python :: Implementation :: CPython | ||
Programming Language :: Python :: Implementation :: PyPy | ||
Topic :: Communications | ||
Topic :: Software Development :: Libraries :: Python Modules | ||
|
||
[options] | ||
python_requires = >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.* | ||
zip_safe = True | ||
setup_requires = setuptools | ||
install_requires = | ||
pyasn1>=0.4.6,<0.6.0 | ||
packages = | ||
pyasn1_modules | ||
|
||
[bdist_wheel] | ||
universal = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,94 +1,49 @@ | ||
[tox] | ||
minversion = 3.4.0 | ||
minversion = 3.5.0 | ||
envlist = | ||
{py27, py35, py36, py37, py38, py39, py310, py311}-{unittest}, | ||
py27, py36, py37, py38, py39, py310, py311, pypy27, pypy37, pypy38, pypy39 | ||
cover, bandit, build | ||
isolated_build = true | ||
skip_missing_interpreters = true | ||
|
||
[testenv] | ||
usedevelop = True | ||
setenv = | ||
VIRTUAL_ENV={envdir} | ||
PYTHONWARNINGS=default::DeprecationWarning | ||
deps = pip >= 19.3.1 | ||
install_command = | ||
pip install {opts} {packages} | ||
|
||
[testenv:unittest] | ||
deps = | ||
{[testenv]deps} | ||
discover | ||
-r{toxinidir}/requirements.txt | ||
commands = | ||
discover -s examples/pyasn1_modules-example-switch/tests -s tests | ||
|
||
[testenv:py27-unittest] | ||
deps = {[testenv:unittest]deps} | ||
commands = {[testenv:unittest]commands} | ||
|
||
[testenv:py35-unittest] | ||
deps = {[testenv:unittest]deps} | ||
commands = {[testenv:unittest]commands} | ||
|
||
[testenv:py36-unittest] | ||
deps = {[testenv:unittest]deps} | ||
commands = {[testenv:unittest]commands} | ||
|
||
[testenv:py37-unittest] | ||
deps = {[testenv:unittest]deps} | ||
commands = {[testenv:unittest]commands} | ||
|
||
[testenv:py38-unittest] | ||
deps = {[testenv:unittest]deps} | ||
commands = {[testenv:unittest]commands} | ||
|
||
[testenv:py39-unittest] | ||
deps = {[testenv:unittest]deps} | ||
commands = {[testenv:unittest]commands} | ||
|
||
[testenv:py310-unittest] | ||
deps = {[testenv:unittest]deps} | ||
commands = {[testenv:unittest]commands} | ||
|
||
[testenv:py311-unittest] | ||
deps = {[testenv:unittest]deps} | ||
commands = {[testenv:unittest]commands} | ||
{envpython} -m unittest discover -s tests | ||
deps = | ||
pyasn1>=0.4.6,<0.6.0 | ||
|
||
[testenv:cover] | ||
basepython = python3 | ||
setenv = | ||
{[testenv]setenv} | ||
PYTHON=coverage run --parallel-mode | ||
deps = | ||
{[testenv:unittest]deps} | ||
coverage | ||
discover | ||
commands = coverage erase | ||
coverage run --source pyasn1_modules -m unittest discover {posargs} | ||
coverage report --fail-under 93 | ||
coverage run --source pyasn1 -m unittest discover {posargs} | ||
coverage report --fail-under 80 | ||
|
||
[testenv:bandit] | ||
skip_install = true | ||
deps = | ||
bandit | ||
commands = | ||
bandit -r pyasn1_modules -c .bandit.yml | ||
bandit -r pyasn1 -c .bandit.yml | ||
|
||
[testenv:build] | ||
skip_install = true | ||
deps = | ||
wheel | ||
setuptools | ||
build | ||
commands = | ||
python setup.py -q sdist bdist_wheel | ||
{envpython} -m build | ||
|
||
[gh-actions] | ||
python = | ||
2.7: py27-unittest | ||
3.6: py36-unittest | ||
3.7: py37-unittest | ||
3.8: py38-unittest | ||
3.9: py39-unittest, bandit | ||
3.10: py310-unittest, cover, build | ||
3.11: py311-unittest | ||
2.7: py27 | ||
3.6: py36 | ||
3.7: py37 | ||
3.8: py38 | ||
3.9: py39 | ||
3.10: py310, cover, build, bandit | ||
3.11: py311 | ||
pypy-2.7: pypy27 | ||
pypy-3.7: pypy37 | ||
pypy-3.8: pypy38 | ||
pypy-3.9: pypy39 |