Test Failed
Push — dev ( 5fda06...071855 )
by Konstantinos
04:51
created

setup.readme()   A

Complexity

Conditions 2

Size

Total Lines 3
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
eloc 3
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
# import os
2
# import re
3
# from collections import OrderedDict
4
5
# from setuptools import find_packages, setup
6
7
# my_dir = os.path.dirname(os.path.realpath(__file__))
8
9
10
11
# # CONSTANTS
12
# src = 'src'
13
# name = 'music_album_creation'
14
# source_code_repo = 'https://github.com/boromir674/music-album-creator'
15
# changelog = '{}/blob/master/CHANGELOG.rst'.format(source_code_repo)
16
17
18
# def readme():
19
#     with open(os.path.join(my_dir, 'README.rst')) as f:
20
#         return f.read()
21
#     # return str(resource_string(__name__, 'README.rst'))
22
23
# with open(os.path.join(my_dir, src, name, '__init__.py')) as f:
24
#     _version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', f.read(), re.MULTILINE).group(1)
25
26
27
# setup(
28
#     name='music_album_creation',
29
#     version=_version,
30
#     description='A CLI application intending to automate offline music library building.',
31
#     long_description=readme(),
32
#     long_description_content_type='text/x-rst',
33
#     keywords='music automation download youtube metadata',
34
35
#     # rendered as 'HomePage' in Pypi
36
#     url=source_code_repo,
37
38
#     project_urls=OrderedDict([
39
#         # ("1-Tracker", "https://github.com/blahblah/gavgav/issues"),
40
#         ("1-Changelog", changelog),
41
#         ("2-Source", source_code_repo),
42
#         # ("4-Documentation", "https://blahblah.readthedocs.io/en/v{}/".format(_version)),
43
#     ]),
44
45
#     download_url='https://github.com/boromir674/music-album-creator/archive/v{}.tar.gz'.format(_version),  # help easy_install do its tricks
46
#     zip_safe=False,
47
48
#     # what packages/distributions (python) need to be installed when this one is. (Roughly what is imported in source code)
49
#     # install_requires=['attrs', 'tqdm', 'click', 'sklearn', 'mutagen', 'PyInquirer', 'youtube_dl', 'pyreadline', 'lxml'],
50
51
#     # A string or list of strings specifying what other distributions need to be present in order for the setup script to run.
52
#     # (Note: projects listed in setup_requires will NOT be automatically installed on the system where the setup script is being run.
53
#     # They are simply downloaded to the ./.eggs directory if they're not locally available already. If you want them to be installed,
54
#     # as well as being available when the setup script is run, you should add them to install_requires and setup_requires.)
55
#     # setup_requires=[],
56
57
#     # Folder where unittest.TestCase-like written modules reside. Specifying this argument enables use of the test command
58
#     # to run the specified test suite, e.g. via setup.py test.
59
#     test_suite='tests',
60
61
#     # Declare packages that the project's tests need besides those needed to install it. A string or list of strings specifying
62
#     # 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
63
#     # tests are run, but only downloaded to the project's setup directory if they're not already installed locally.
64
#     # Use to ensure that a package is available when the test command is run.
65
#     tests_require=['pytest', 'mock'],
66
67
#     classifiers=[
68
#         'Development Status :: 5 - Production/Stable',
69
#         'Intended Audience :: End Users/Desktop',
70
#         'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
71
#         'Natural Language :: English',
72
#         'Operating System :: Microsoft :: Windows',
73
#         'Operating System :: POSIX :: Linux',
74
#         'Programming Language :: Python :: 2',
75
#         'Programming Language :: Python :: 2.7',
76
#         'Programming Language :: Python :: 3',
77
#         'Programming Language :: Python :: 3.5',
78
#         'Programming Language :: Python :: 3.6',
79
#         'Programming Language :: Python :: 3.7',
80
#         'Topic :: Home Automation',
81
#         'Topic :: Multimedia :: Video :: Conversion',
82
#         'Topic :: Multimedia :: Sound/Audio',
83
#     ],
84
85
#     author='Konstantinos Lampridis',
86
#     author_email='[email protected]',
87
#     license='GNU GPLv3',
88
#     packages=find_packages(where=src),
89
#     package_dir={'': src},  # this is required by distutils
90
#     # py_modules=[splitext(basename(path))[0] for path in glob('src/*.py')],
91
#     include_package_data=True,  # Include all data files in packages that distutils are aware of through the MANIFEST.in file
92
#     # package_data={
93
#     #     # If any package contains *.txt or *.rst files, include them:
94
#     #     '': ['*.txt', '*.rst'],
95
#     #     'music_album_creation.format_classification': ['data/*.txt', 'data/model.pickle'],
96
#     # },
97
#     entry_points={
98
#         'console_scripts': [
99
#             'create-album = music_album_creation.create_album:main',
100
#         ]
101
#     },
102
#     # A dictionary mapping names of "extras" (optional features of your project: eg imports that a console_script uses) to strings or lists of strings
103
#     # specifying what other distributions must be installed to support those features.
104
#     # extras_require={},
105
# )
106