mirror of
https://github.com/spl0k/supysonic.git
synced 2024-11-09 11:42:16 +00:00
parent
366e350cd4
commit
af50e8bf91
@ -4,7 +4,6 @@ python:
|
||||
- 3.5
|
||||
- 3.6
|
||||
install:
|
||||
- pip install -r requirements.txt
|
||||
- pip install lxml coverage codecov
|
||||
- pip install -r travis-requirements.txt
|
||||
script: coverage run setup.py test
|
||||
after_script: codecov
|
||||
|
10
README.md
10
README.md
@ -55,11 +55,12 @@ You'll need these to run _Supysonic_:
|
||||
* [Python Imaging Library](https://github.com/python-pillow/Pillow)
|
||||
* [requests](http://docs.python-requests.org/)
|
||||
* [mutagen](https://mutagen.readthedocs.io/en/latest/)
|
||||
* [watchdog](https://github.com/gorakhargosh/watchdog)
|
||||
* [watchdog](https://github.com/gorakhargosh/watchdog) (if you want to use the
|
||||
[watcher](#watching-library-changes))
|
||||
|
||||
You can install all of them using `pip`:
|
||||
|
||||
$ pip install -r requirements.txt
|
||||
$ pip install .
|
||||
|
||||
You may also need a database specific package:
|
||||
|
||||
@ -218,6 +219,11 @@ print anything to the console. If you want to keep it running in background,
|
||||
either use the old `nohup` or `screen` methods, or start it as a simple
|
||||
_systemd_ unit (unit file not included).
|
||||
|
||||
It needs some additional dependencies which can be installed with the following
|
||||
command:
|
||||
|
||||
$ pip install -e .[watcher]
|
||||
|
||||
## Upgrading
|
||||
|
||||
Some commits might introduce changes in the database schema. When that's the
|
||||
|
@ -1,6 +0,0 @@
|
||||
flask>=0.11
|
||||
pony>=0.7.2
|
||||
Pillow
|
||||
requests>=1.0.0
|
||||
mutagen>=1.33
|
||||
watchdog>=0.8.0
|
21
setup.py
21
setup.py
@ -14,10 +14,19 @@ import supysonic as project
|
||||
|
||||
from setuptools import setup
|
||||
from setuptools import find_packages
|
||||
from pip.req import parse_requirements
|
||||
from pip.download import PipSession
|
||||
|
||||
|
||||
reqs = [
|
||||
'flask>=0.11',
|
||||
'pony>=0.7.2',
|
||||
'Pillow',
|
||||
'requests>=1.0.0',
|
||||
'mutagen>=1.33'
|
||||
]
|
||||
extras = {
|
||||
'watcher': [ 'watchdog>=0.8.0' ]
|
||||
}
|
||||
|
||||
setup(
|
||||
name=project.NAME,
|
||||
version=project.VERSION,
|
||||
@ -29,13 +38,13 @@ setup(
|
||||
url=project.URL,
|
||||
license=project.LICENSE,
|
||||
packages=find_packages(),
|
||||
install_requires=[str(x.req) for x in
|
||||
parse_requirements('requirements.txt', session=PipSession())],
|
||||
install_requires = reqs,
|
||||
extras_require = extras,
|
||||
scripts=['bin/supysonic-cli', 'bin/supysonic-watcher'],
|
||||
zip_safe=False,
|
||||
include_package_data=True,
|
||||
test_suite="tests.suite",
|
||||
tests_require = [ 'lxml' ],
|
||||
test_suite='tests.suite',
|
||||
tests_require = [ 'lxml' ] + [ r for er in extras.values() for r in er ],
|
||||
classifiers=[
|
||||
'Development Status :: 3 - Alpha',
|
||||
'Environment :: Console',
|
||||
|
6
travis-requirements.txt
Normal file
6
travis-requirements.txt
Normal file
@ -0,0 +1,6 @@
|
||||
-e .[watcher]
|
||||
|
||||
lxml
|
||||
coverage
|
||||
codecov
|
||||
|
Loading…
Reference in New Issue
Block a user