Skip to content

Commit 8baba15

Browse files
committed
Move setup config to setup.cfg
Signed-off-by: Hiroshi Miura <[email protected]>
1 parent 4989c44 commit 8baba15

File tree

3 files changed

+49
-39
lines changed

3 files changed

+49
-39
lines changed

CHANGELOG.rst

+2-1
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,8 @@ Fixed
354354
.. _requests: https://pypi.org/project/requests
355355
.. _argparse: https://pypi.org/project/argparse/
356356

357-
.. _Unreleased: https://github.com/miurahr/aqtinstall/compare/v0.7a2...HEAD
357+
.. _Unreleased: https://github.com/miurahr/aqtinstall/compare/v0.7b1...HEAD
358+
.. _v0.7b1: https://github.com/miurahr/aqtinstall/compare/v0.7a2...v0.7b1
358359
.. _v0.7a2: https://github.com/miurahr/aqtinstall/compare/v0.7a1...v0.7a2
359360
.. _v0.7a1: https://github.com/miurahr/aqtinstall/compare/v0.6b1...v0.7a1
360361
.. _v0.6b1: https://github.com/miurahr/aqtinstall/compare/v0.6a2...v0.6b1

setup.cfg

+46
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,49 @@ exclude = .git,__pycache__,docs/conf.py,build,dist,tmp,venv
44

55
[bdist_wheel]
66
universal=1
7+
8+
[metadata]
9+
name = aqtinstall
10+
description = Another unofficial Qt installer
11+
long_description = file: README.rst, CHANGELOG.rst
12+
long_description_content_type = text/x-rst
13+
license = MIT
14+
author = Hiroshi Miura
15+
author_email = [email protected]
16+
url = http://github.com/miurahr/aqtinstall
17+
classifiers =
18+
Development Status :: 4 - Beta
19+
Environment :: Console
20+
Environment :: X11 Applications :: Qt
21+
Intended Audience :: Developers
22+
License :: OSI Approved :: MIT License
23+
Operating System :: MacOS :: MacOS X
24+
Operating System :: Microsoft :: Windows
25+
Operating System :: POSIX
26+
Operating System :: POSIX :: Linux
27+
Programming Language :: Python
28+
Programming Language :: C++
29+
Topic :: Software Development
30+
Topic :: Software Development :: Libraries
31+
32+
[options]
33+
install_requires =
34+
requests
35+
wheel
36+
py7zr>=0.5b5
37+
packaging
38+
setup_requires =
39+
setuptools-scm[toml]>=3.3.3
40+
setuptools>=42.0
41+
packages = aqt
42+
scripts = bin/aqt
43+
44+
[options.package_data]
45+
aqt = *.yml, *.json, *.ini
46+
47+
[options.extras_require]
48+
dev =
49+
pytest
50+
pytest-pep8
51+
pytest-cov
52+
flake8

setup.py

+1-38
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,5 @@
11
#!/usr/bin/env python
22

3-
import io
4-
import os
5-
63
from setuptools import setup
74

8-
9-
def readme():
10-
with io.open(os.path.join(os.path.dirname(__file__), 'README.rst'), mode="r", encoding="UTF-8") as readmef:
11-
return readmef.read()
12-
13-
14-
setup(name='aqtinstall',
15-
use_scm_version=True,
16-
description='Another unofficial Qt installer',
17-
url='http://github.com/miurahr/aqtinstall',
18-
license='MIT',
19-
long_description=readme(),
20-
author='Hioshi Miura',
21-
author_email='[email protected]',
22-
packages=["aqt"],
23-
package_data={'aqt': ['*.yml', "*.json", "*.ini"]},
24-
install_requires=['requests', 'six', 'py7zr', 'packaging'],
25-
setup_requires=['setuptools-scm>=3.3.3', 'setuptools>=42.0'],
26-
extras_require={'dev': ['pytest', 'pytest-pep8', 'pytest-cov', 'flake8']},
27-
scripts=["bin/aqt"],
28-
classifiers=[
29-
'Development Status :: 3 - Alpha',
30-
'Environment :: Console',
31-
'Environment :: X11 Applications :: Qt',
32-
'Intended Audience :: Developers',
33-
'License :: OSI Approved :: MIT License',
34-
'Operating System :: MacOS :: MacOS X',
35-
'Operating System :: Microsoft :: Windows',
36-
'Operating System :: POSIX',
37-
'Programming Language :: Python',
38-
'Programming Language :: C++',
39-
'Topic :: Software Development',
40-
'Topic :: Software Development :: Libraries',
41-
],
42-
)
5+
setup(use_scm_version=True, setup_requires=['setuptools-scm>=3.3.3', 'setuptools>=42.0'])

0 commit comments

Comments
 (0)