@@ -740,15 +740,24 @@ def _picard_packages():
740
740
741
741
742
742
this_directory = os .path .abspath (os .path .dirname (__file__ ))
743
- with open (os .path .join (this_directory , 'README.md' ), encoding = 'utf-8' ) as f :
744
- long_description = f .read ()
743
+
744
+
745
+ def _get_description ():
746
+ with open (os .path .join (this_directory , 'README.md' ), encoding = 'utf-8' ) as f :
747
+ return f .read ()
748
+
749
+
750
+ def _get_requirements ():
751
+ with open (os .path .join (this_directory , 'requirements.txt' ), encoding = 'utf-8' ) as f :
752
+ return f .readlines ()
753
+
745
754
746
755
args = {
747
756
'name' : PACKAGE_NAME ,
748
757
'version' : PICARD_VERSION_STR_SHORT ,
749
758
'description' : 'The next generation MusicBrainz tagger' ,
750
759
'keywords' : 'MusicBrainz metadata tagger picard' ,
751
- 'long_description' : long_description ,
760
+ 'long_description' : _get_description () ,
752
761
'long_description_content_type' : 'text/markdown' ,
753
762
'url' : 'https://picard.musicbrainz.org/' ,
754
763
'package_dir' : {'picard' : 'picard' },
@@ -772,7 +781,7 @@ def _picard_packages():
772
781
'patch_version' : picard_patch_version ,
773
782
},
774
783
'scripts' : ['scripts/' + PACKAGE_NAME ],
775
- 'install_requires' : [ 'PyQt5' , 'mutagen' , 'python-dateutil' , 'fasteners' ] ,
784
+ 'install_requires' : _get_requirements () ,
776
785
'python_requires' : '~=3.6' ,
777
786
'classifiers' : [
778
787
'License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)' ,
0 commit comments