Remove metadata from setup.py

- Remove metadata from setup.py
- Split flake8 section into .flake8 from setup.cfg
- tox: set isolated_build=true

Signed-off-by: Hiroshi Miura <miurahr@linux.com>
This commit is contained in:
Hiroshi Miura
2022-06-05 10:55:11 +09:00
parent d6aa879d7f
commit 5ae21ea160
5 changed files with 9 additions and 14 deletions

4
.flake8 Normal file
View File

@@ -0,0 +1,4 @@
[flake8]
max-line-length = 125
exclude = .git,__pycache__,docs/conf.py,build,dist,tmp,venv
extend-ignore = E203, W50

View File

@@ -3,6 +3,7 @@ include *.txt
include *.cfg include *.cfg
include LICENSE include LICENSE
include pyproject.toml include pyproject.toml
include .flake8
recursive-include aqt *.ini recursive-include aqt *.ini
recursive-include aqt *.json recursive-include aqt *.json
recursive-include docs *.bat recursive-include docs *.bat

View File

@@ -136,6 +136,7 @@ markers = [
legacy_tox_ini = """ legacy_tox_ini = """
[tox] [tox]
envlist = check, docs, py{36,37,38,39,310}, py39d, mprof, fil envlist = check, docs, py{36,37,38,39,310}, py39d, mprof, fil
isolated_build = True
[testenv] [testenv]
passenv = passenv =
@@ -153,7 +154,7 @@ basepython = python3.8
extras = check extras = check
commands = commands =
check-manifest {toxinidir} check-manifest {toxinidir}
flake8 aqt tests setup.py flake8 aqt tests
[testenv:docs] [testenv:docs]
basepython = python3.8 basepython = python3.8

View File

@@ -1,11 +1,3 @@
[flake8]
max-line-length = 125
exclude = .git,__pycache__,docs/conf.py,build,dist,tmp,venv
extend-ignore = E203, W50
[bdist_wheel]
universal=1
[metadata] [metadata]
name = aqtinstall name = aqtinstall
description = Another unofficial Qt installer description = Another unofficial Qt installer

View File

@@ -1,5 +1,2 @@
#!/usr/bin/env python import setuptools
setuptools.setup()
from setuptools import setup
setup(setup_requires=["setuptools_scm"], use_scm_version=True)