diff options
Diffstat (limited to 'setup.cfg')
-rw-r--r-- | setup.cfg | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..a6c5c6d --- /dev/null +++ b/setup.cfg | |||
@@ -0,0 +1,82 @@ | |||
1 | [metadata] | ||
2 | name = pydora | ||
3 | version = attr: pandora.__version__ | ||
4 | description = Python wrapper for Pandora API | ||
5 | long_description = file: README.rst | ||
6 | author = Mike Crute | ||
7 | author_email = mike@crute.us | ||
8 | url = https://github.com/mcrute/pydora | ||
9 | classifiers = | ||
10 | Development Status :: 5 - Production/Stable | ||
11 | Environment :: Console | ||
12 | Intended Audience :: Developers | ||
13 | Intended Audience :: End Users/Desktop | ||
14 | License :: OSI Approved :: MIT License | ||
15 | Operating System :: OS Independent | ||
16 | Programming Language :: Python :: 3 | ||
17 | Programming Language :: Python :: 3.5 | ||
18 | Programming Language :: Python :: 3.6 | ||
19 | Programming Language :: Python :: 3.7 | ||
20 | Programming Language :: Python :: 3.8 | ||
21 | Programming Language :: Python :: 3 :: Only | ||
22 | Topic :: Internet :: WWW/HTTP | ||
23 | Topic :: Multimedia :: Sound/Audio :: Players | ||
24 | |||
25 | [options] | ||
26 | packages = find: | ||
27 | python_requires = >=3.5 | ||
28 | |||
29 | install_requires = | ||
30 | requests >=2, <3 | ||
31 | blowfish >=0.6.1, <1.0 | ||
32 | |||
33 | [options.packages.find] | ||
34 | exclude = | ||
35 | tests | ||
36 | tests.* | ||
37 | |||
38 | [options.entry_points] | ||
39 | distutils.commands = | ||
40 | pydora = pydora.player:main | ||
41 | pydora-configure = pydora.configure:main | ||
42 | |||
43 | [testenv:format] | ||
44 | deps = | ||
45 | black | ||
46 | |||
47 | commands = | ||
48 | black -l 79 -t py35 pandora/ pydora/ tests/ setup.py | ||
49 | |||
50 | [testenv:tests] | ||
51 | deps = | ||
52 | pytest | ||
53 | black | ||
54 | flake8 >=3.3 | ||
55 | coverage >=4.1, <5 | ||
56 | |||
57 | commands = | ||
58 | black --check -l 79 -t py35 pandora/ pydora/ tests/ setup.py | ||
59 | flake8 --statistics --ignore=E231 pandora/ pydora/ tests/ setup.py | ||
60 | coverage run --source='pandora/,pydora/' -m pytest | ||
61 | coverage report --fail-under 100 -m --include='pandora/*' | ||
62 | coverage report -m --include='pydora/*' | ||
63 | coverage html --include='pandora/*,pydora/*' | ||
64 | |||
65 | [testenv:release] | ||
66 | deps = | ||
67 | wheel | ||
68 | |||
69 | commands = | ||
70 | python setup.py sdist bdist_wheel | ||
71 | |||
72 | [testenv:upload] | ||
73 | skip_install = true | ||
74 | |||
75 | deps = | ||
76 | twine | ||
77 | |||
78 | passenv = | ||
79 | TWINE_PASSWORD | ||
80 | |||
81 | commands = | ||
82 | twine upload -u __token__ --non-interactive --skip-existing dist/* | ||