aboutsummaryrefslogtreecommitdiff
path: root/setup.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'setup.cfg')
-rw-r--r--setup.cfg82
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]
2name = pydora
3version = attr: pandora.__version__
4description = Python wrapper for Pandora API
5long_description = file: README.rst
6author = Mike Crute
7author_email = mike@crute.us
8url = https://github.com/mcrute/pydora
9classifiers =
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]
26packages = find:
27python_requires = >=3.5
28
29install_requires =
30 requests >=2, <3
31 blowfish >=0.6.1, <1.0
32
33[options.packages.find]
34exclude =
35 tests
36 tests.*
37
38[options.entry_points]
39distutils.commands =
40 pydora = pydora.player:main
41 pydora-configure = pydora.configure:main
42
43[testenv:format]
44deps =
45 black
46
47commands =
48 black -l 79 -t py35 pandora/ pydora/ tests/ setup.py
49
50[testenv:tests]
51deps =
52 pytest
53 black
54 flake8 >=3.3
55 coverage >=4.1, <5
56
57commands =
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]
66deps =
67 wheel
68
69commands =
70 python setup.py sdist bdist_wheel
71
72[testenv:upload]
73skip_install = true
74
75deps =
76 twine
77
78passenv =
79 TWINE_PASSWORD
80
81commands =
82 twine upload -u __token__ --non-interactive --skip-existing dist/*