Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Move to setup.cfg #24

Merged
merged 1 commit into from
Jan 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
strategy:
matrix:
platform: [ubuntu-latest, macos-latest, windows-latest]
python-version: ['3.7', '3.8', '3.9']
python-version: ['3.7', '3.8', '3.9', '3.10']

steps:
- name: Checkout repository
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
2 changes: 0 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,3 @@ lxml>=4.1.1
requests>=2.5.0
six
rfctools_common>=0.6.0
pycodestyle
pyflakes>=0.8.1
39 changes: 39 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,3 +1,42 @@
[metadata]
version = 0.6.2
name = svgcheck
description = Verify that an svg file is compliant with the RFC standards.
long_description = file: README.md, LICENSE
long_description_content_type = text/markdown
keywords = svg, validation, rfc
author = IETF Tools Team
license = BSD-3-Clause
url = https://github.com/ietf-tools/svgcheck
classifiers =
Development Status :: 3 - Alpha
Intended Audience :: Other Audience
Topic :: Text Processing
Topic :: Text Processing :: Markup :: XML
License :: OSI Approved :: BSD License
Programming Language :: Python :: 3
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10

[options]
packages = find:
python_requires = >=3.7, <3.11
install_requires = file: requirements.txt
include_package_data = True
tests_require =
pycodestyle
pyflakes>=0.8.1
zip_safe = False

[options.entry_points]
console_scripts =
svgcheck = svgcheck.run:main

[options.package_data]
* =
pycode.cfg
Results/*
Tests/*.*
Tests/cache_saved/*.*
82 changes: 0 additions & 82 deletions setup.py

This file was deleted.

Empty file removed svgcheck/Results/version.err
Empty file.
2 changes: 0 additions & 2 deletions svgcheck/Results/version.out

This file was deleted.

5 changes: 0 additions & 5 deletions svgcheck/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,6 @@ def test_pyflakes_confrmance(self):

class TestCommandLineOptions(unittest.TestCase):
""" Run a set of command line checks to make sure they work """
def test_get_version(self):
check_process(self, [sys.executable, test_program, "--version"],
"Results/version.out", "Results/version.err",
None, None)

def test_clear_cache(self):
if not os.path.exists('Temp'):
os.mkdir('Temp')
Expand Down
25 changes: 8 additions & 17 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,14 @@
# and then run "tox" from this directory.

[tox]
envlist = py{27,36,37,38,39}-{linux,macos,windows}
envlist = py{37,38,39,310}-{linux,macos,windows}

[gh-actions]
python =
2.7: py27
3.6: py36
3.7: py37
3.8: py38
3.9: py39
3.10: py310

[gh-actions:env]
PLATFORM =
Expand All @@ -22,19 +21,11 @@ PLATFORM =

[testenv]
changedir = svgcheck
commands =
commands =
python --version
# flake8
coverage run test.py

deps =
# flake8
coverage

[flake8]

max-line-length = 280
ignore =
W191,E101,E127,E202,W293,W391,W291,E201,E203,E124,E128,E222,E226,E221,
E228,E241,E261,E265,E266,E302,E303,E306,W605,E711,E713,E731
coverage run test.py

deps =
pycodestyle
pyflakes>=0.8.1
coverage