-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run pytest-cov with append flag in tox, clean code
Modify setup.cfg Try to make scrutinizer.io recognize the coverage data Make travis send coverage data on unittests build jobs WIP Comment out coveralls from tox pipeline
- Loading branch information
Konstantinos
committed
Jul 17, 2019
1 parent
ccd84da
commit 6805f8f
Showing
9 changed files
with
90 additions
and
201 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,78 @@ | ||
import os | ||
from glob import glob | ||
from os.path import basename | ||
from os.path import splitext | ||
from setuptools import setup, find_packages | ||
|
||
|
||
my_dir = os.path.dirname(os.path.realpath(__file__)) | ||
|
||
|
||
def readme(): | ||
with open(os.path.join(my_dir, 'README.rst')) as f: | ||
return f.read() | ||
# return str(resource_string(__name__, 'README.rst')) | ||
|
||
|
||
setup( | ||
name='music_album_creation', | ||
version='1.0.8a', | ||
description='A CLI application intending to automate offline music library building', | ||
version='1.1.0', | ||
description='A CLI application intending to automate offline music library building.', | ||
long_description=readme(), | ||
keywords=['music album', 'automation', 'youtube', 'audio metadata', 'download'], | ||
keywords='music automation download youtube metadata', | ||
|
||
project_urls={ | ||
"Source Code": "https://github.com/boromir674/music-album-creator", | ||
}, | ||
zip_safe=False, | ||
|
||
# what packages/distributions (python) need to be installed when this one is. (Roughly what is imported in source code) | ||
install_requires=['tqdm', 'click', 'sklearn', 'mutagen', 'PyInquirer', 'youtube_dl'], | ||
|
||
# A string or list of strings specifying what other distributions need to be present in order for the setup script to run. | ||
# (Note: projects listed in setup_requires will NOT be automatically installed on the system where the setup script is being run. | ||
# They are simply downloaded to the ./.eggs directory if they’re not locally available already. If you want them to be installed, | ||
# as well as being available when the setup script is run, you should add them to install_requires and setup_requires.) | ||
# setup_requires=[], | ||
|
||
# Folder where unittest.TestCase-like written modules reside. Specifying this argument enables use of the test command | ||
# to run the specified test suite, e.g. via setup.py test. | ||
test_suite='tests', | ||
|
||
# Declare packages that the project’s tests need besides those needed to install it. A string or list of strings specifying | ||
# what other distributions need to be present for the package’s tests to run. Note that these required projects will not be installed on the system where the | ||
# tests are run, but only downloaded to the project’s setup directory if they’re not already installed locally. | ||
# Use to ensure that a package is available when the test command is run. | ||
tests_require=['pytest'], | ||
|
||
classifiers=[ | ||
'Development Status :: 5 - Production/Stable', | ||
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)', | ||
'Programming Language :: Python :: 3', | ||
'Programming Language :: Python :: 3.5', | ||
'Programming Language :: Python :: 3.6', | ||
'Programming Language :: Python :: 3.7', | ||
'Topic :: Software Development :: Libraries :: Python Modules', | ||
'Topic :: Multimedia :: Sound/Audio :: Conversion', | ||
'Topic :: Multimedia :: Sound/Audio :: Editors', | ||
'Intended Audience :: End Users/Desktop', | ||
'Intended Audience :: Science/Research' | ||
], | ||
url='https://github.com/boromir674/music-album-creator', | ||
download_url='point to tar.gz', # help easy_install do its tricks | ||
author='Konstantinos Lampridis', | ||
author_email='[email protected]', | ||
license='GNU GPLv3', | ||
packages=find_packages(where='src'), | ||
package_dir={'': 'src'}, | ||
py_modules=[splitext(basename(path))[0] for path in glob('src/*.py')], | ||
install_requires=['tqdm', 'click', 'sklearn', 'mutagen', 'PyInquirer', 'youtube_dl'], | ||
include_package_data=True, | ||
package_dir={'': 'src'}, # this is required by distutils | ||
# py_modules=[splitext(basename(path))[0] for path in glob('src/*.py')], | ||
include_package_data=True, # Include all data files in packages that distutils are aware of through the MANIFEST.in file | ||
# package_data={ | ||
# # If any package contains *.txt or *.rst files, include them: | ||
# '': ['*.txt', '*.rst'], | ||
# 'music_album_creation.format_classification': ['data/*.txt', 'data/model.pickle'], | ||
# }, | ||
entry_points={ | ||
'console_scripts': [ | ||
'create-album = music_album_creation.create_album:main', | ||
] | ||
}, | ||
# TODO check if/where to put pytest | ||
# setup_requires=['numpy>=1.11.0'], | ||
tests_require=['tox', 'pytest'], | ||
# test_suite='', | ||
zip_safe=False | ||
# A dictionary mapping names of “extras” (optional features of your project: eg imports that a console_script uses) to strings or lists of strings | ||
# specifying what other distributions must be installed to support those features. | ||
# extras_require={}, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.