Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Various improvements to setup.py #399

Draft
wants to merge 5 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 6 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,19 @@ env:
install:
# Dependencies
- sudo apt-get -qq update
- pip install --upgrade -qq pip
- pip install --upgrade -qq pip setuptools
- sudo apt-get -qq install cdparanoia cdrdao flac gir1.2-glib-2.0 libcdio-dev libgirepository1.0-dev libiso9660-dev libsndfile1-dev sox swig libcdio-utils
- pip install musicbrainzngs mutagen pycdio==0.21 PyGObject requests setuptools setuptools_scm

# Testing dependencies
- pip install twisted flake8
# Additional dependencies for PyGObject
- sudo apt-get -qq install libglib2.0-dev libcairo2-dev libcairo2-dev libffi-dev

# Build bundled C utils
- cd src
- sudo make install
- cd ..

# Installing
- python setup.py install
- pip install .

script:
- if [ ! "$FLAKE8" = true ]; then python -m unittest discover; fi
- if [ "$FLAKE8" = true ]; then flake8 --benchmark --statistics; fi
- if [ ! "$FLAKE8" = true ]; then pip install .[test] && python -m unittest discover; fi
- if [ "$FLAKE8" = true ]; then pip install .[lint] && flake8 --benchmark --statistics; fi
7 changes: 1 addition & 6 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1 @@
musicbrainzngs
mutagen
pycdio>0.20
PyGObject
requests
setuptools_scm
-e .
23 changes: 23 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,17 @@
python_requires='>=2.7,<3',
packages=find_packages(),
setup_requires=['setuptools_scm'],
install_requires=[
'musicbrainzngs',
'mutagen',
'pycdio>0.20',
'PyGObject',
'requests',
],
extras_require={
'test': ['twisted'],
'lint': ['flake8'],
},
entry_points={
'console_scripts': [
'whipper = whipper.command.main:main'
Expand All @@ -19,4 +30,16 @@
data_files=[
('share/metainfo', ['com.github.whipper_team.Whipper.metainfo.xml']),
],
classifiers=[
'Development Status :: 4 - Beta',
JoeLametta marked this conversation as resolved.
Show resolved Hide resolved
'Environment :: Console',
'Intended Audience :: End Users/Desktop',
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)', # noqa: E501
'Natural Language :: English',
'Operating System :: POSIX :: Linux',
JoeLametta marked this conversation as resolved.
Show resolved Hide resolved
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 2 :: Only',
'Topic :: Multimedia :: Sound/Audio :: CD Audio :: CD Ripping',
],
)