-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.cfg
144 lines (118 loc) · 2.71 KB
/
setup.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
[metadata]
name = pydatpiff
version = attr: pydatpiff.__version__
description = Unofficial Datpiff Mixtape player - Download and play the newest Hip-Hop and RnB Songs.
long_description = file: README.md
author = Cornelius Brooks
author_email = [email protected]
license = MIT
url = https://github.com/cbedroid/pydatpiff
classifiers =
License :: OSI Approved :: MIT License
Development Status :: 5 - Production/Stable
Intended Audience :: Developers
Intended Audience :: End Users/Desktop
Programming Language :: Python :: 3
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Operating System :: OS Independent
Topic :: Internet :: WWW/HTTP
Topic :: Multimedia :: Sound/Audio :: Players
Topic :: Software Development :: Libraries :: Python Modules
[options]
packages = find:
python_requires = >=3.7
include_package_data = True
install_requires =
requests >=2
python-vlc >=3
mutagen >=1.45.1
bs4 >=0.0.1
pyyaml >=6.0
[options.packages.find]
exclude =
tests
tests.*
pydatpiff/tests.*
[options.entry_points]
console_scripts =
pydatpiff = pydatpiff:main
[options.package_data]
* =
**.yaml
**.json
[tox]
minversion=2.3.1
envlist = py37,py38,py39,py3.10
skipdist=true
[tox:tox]
[testenv:format]
deps = black
commands =
black -t py37 -l 120 --exclude="^(.github/|tests/|setup.py)" pydatpiff setup.py
[testenv:pre-commit]
deps =
pre-commit
black
isort
flake8
skip_install = true
commands =
pre-commit run --config .pre-commit-config.yaml --all-files --show-diff-on-failure
[testenv:flake8]
deps = flake8
max-line-length = 120
max-complexity = 18
select = [B,C,E,F,W,T4,B9]
ignore =
E203
E266
E501
E722
F403
F405
W503
W605
exclude =
tests
tests.*
pydatpiff/tests.*
setup.py
[testenv:isort]
deps = isort
line_length = 120
multi_line_output = 3
include_trailing_comma = True
[testenv:tests]
deps =
{[testenv:format]deps}
{[testenv:pre-commit]deps}
pytest
coverage
pytest-cov
commands =
{[testenv:format]commands}
{[testenv:pre-commit]commands}
coverage run --source='pydatpiff/' -m pytest
#coverage report --fail-under 100 -m --include='pydatpiff/*'
coverage report -m --include='pydatpiff/*'
coverage html --include='pydatpiff/*'
[testenv:pypi]
repository: https://upload.pypi.org/legacy/
username: __token__
password: TWINE_PASSWORD
[testenv:release]
deps =
wheel
commands =
python setup.py sdist bdist_wheel
[testenv:upload]
skip_install = True
deps =
twine
PASSENV =
TWINE_PASSWORD
commands =
twine upload -r pypi