Browse Source

setup: move stuff from setup.py to setup.cfg

Vincent A 1 year ago
parent
commit
2c1e00abc8
2 changed files with 94 additions and 80 deletions
  1. 94
    0
      setup.cfg
  2. 0
    80
      setup.py

+ 94
- 0
setup.cfg View File

@@ -42,3 +42,97 @@ group = root
42 42
 owner = root
43 43
 group = root
44 44
 universal = 1
45
+
46
+[metadata]
47
+name = weboob
48
+# TODO fetch from __init__.py
49
+version = 1.6
50
+
51
+description = Weboob, Web Outside Of Browsers
52
+long_description = file:README.md
53
+
54
+author = Romain Bignon
55
+author_email = weboob@weboob.org
56
+maintainer = Romain Bignon
57
+maintainer_email = romain@weboob.org
58
+
59
+url = https://weboob.org/
60
+license = GNU LGPL 3
61
+
62
+classifiers =
63
+    Environment :: Console
64
+    License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)
65
+    Programming Language :: Python
66
+    Programming Language :: Python :: 3
67
+    Programming Language :: Python :: 3.5
68
+    Programming Language :: Python :: 3.6
69
+    Programming Language :: Python :: 3.7
70
+    Programming Language :: Python :: 3.8
71
+    Programming Language :: Python
72
+    Topic :: Communications :: Email
73
+    Topic :: Internet :: WWW/HTTP
74
+    Topic :: Internet :: WWW/HTTP :: Browsers
75
+    Topic :: Software Development :: Libraries :: Application Frameworks
76
+    Topic :: Software Development :: Libraries :: Python Modules
77
+    Topic :: Text Processing :: Markup :: HTML
78
+
79
+[options]
80
+python_requires = >= 3.5
81
+
82
+install_requires =
83
+    lxml
84
+    cssselect
85
+    requests>=2.0.0
86
+    python-dateutil
87
+    PyYAML
88
+    html2text>=3.200
89
+    six
90
+    unidecode
91
+    Pillow
92
+    Babel
93
+
94
+tests_require =
95
+    flake8
96
+    nose
97
+    xunitparser
98
+    coverage
99
+
100
+# TODO [options.data_files]
101
+
102
+[options.entry_points]
103
+console_scripts =
104
+    boobank = weboob.applications.boobank:Boobank.run
105
+    boobathon = weboob.applications.boobathon:Boobathon.run
106
+    boobcoming = weboob.applications.boobill:Boobcoming.run
107
+    boobill = weboob.applications.boobank:Boobill.run
108
+    booblyrics = weboob.applications.booblyrics:Booblyrics.run
109
+    boobmsg = weboob.applications.boobmsg:Boobmsg.run
110
+    boobooks = weboob.applications.boobooks:Boobooks.run
111
+    boobsize = weboob.applications.boobsize:Boobsize.run
112
+    boobtracker = weboob.applications.boobtracker:BoobTracker.run
113
+    boomoney = weboob.applications.boomoney:Boomoney.run
114
+    cineoob = weboob.applications.cineoob:Cineoob.run
115
+    comparoob = weboob.applications.comparoob:Comparoob.run
116
+    cookboob = weboob.applications.cookboob:Cookboob.run
117
+    flatboob = weboob.applications.flatboob:Flatboob.run
118
+    galleroob = weboob.applications.galleroob:Galleroob.run
119
+    geolooc = weboob.applications.geolooc:Geolooc.run
120
+    handjoob = weboob.applications.handjoob:Handjoob.run
121
+    havedate = weboob.applications.havedate:HaveDate.run
122
+    monboob = weboob.applications.monboob:Monboob.run
123
+    parceloob = weboob.applications.parceloob:Parceloob.run
124
+    pastoob = weboob.applications.pastoob:Pastoob.run
125
+    radioob = weboob.applications.radioob:Radioob.run
126
+    shopoob = weboob.applications.shopoob:Shopoob.run
127
+    suboob = weboob.applications.suboob:Suboob.run
128
+    translaboob = weboob.applications.translaboob:Translaboob.run
129
+    traveloob = weboob.applications.traveloob:Traveloob.run
130
+    videoob = weboob.applications.videoob:Videoob.run
131
+    webcontentedit = weboob.applications.webcontentedit:WebContentEdit.run
132
+    weboob-cli = weboob.applications.weboobcli:WeboobCli.run
133
+    weboob-config = weboob.applications.weboobcfg:WeboobCfg.run
134
+    weboob-debug = weboob.applications.weboobdebug:WeboobDebug.run
135
+    weboob-repos = weboob.applications.weboobrepos:WeboobRepos.run
136
+    weboorrents = weboob.applications.weboorrents:Weboorrents.run
137
+    wetboobs = weboob.applications.wetboobs:WetBoobs.run
138
+    weboob = weboob.applications.weboobmain:WeboobMain.run

+ 0
- 80
setup.py View File

@@ -33,51 +33,10 @@ PY3 = sys.version_info.major >= 3
33 33
 def install_weboob():
34 34
     packages = set(find_packages(exclude=['modules', 'modules.*']))
35 35
 
36
-    entry_points = {
37
-        'console_scripts': [
38
-            'boobank = weboob.applications.boobank:Boobank.run',
39
-            'boobathon = weboob.applications.boobathon:Boobathon.run',
40
-            'boobcoming = weboob.applications.boobill:Boobcoming.run',
41
-            'boobill = weboob.applications.boobank:Boobill.run',
42
-            'booblyrics = weboob.applications.booblyrics:Booblyrics.run',
43
-            'boobmsg = weboob.applications.boobmsg:Boobmsg.run',
44
-            'boobooks = weboob.applications.boobooks:Boobooks.run',
45
-            'boobsize = weboob.applications.boobsize:Boobsize.run',
46
-            'boobtracker = weboob.applications.boobtracker:BoobTracker.run',
47
-            'boomoney = weboob.applications.boomoney:Boomoney.run',
48
-            'cineoob = weboob.applications.cineoob:Cineoob.run',
49
-            'comparoob = weboob.applications.comparoob:Comparoob.run',
50
-            'cookboob = weboob.applications.cookboob:Cookboob.run',
51
-            'flatboob = weboob.applications.flatboob:Flatboob.run',
52
-            'galleroob = weboob.applications.galleroob:Galleroob.run',
53
-            'geolooc = weboob.applications.geolooc:Geolooc.run',
54
-            'handjoob = weboob.applications.handjoob:Handjoob.run',
55
-            'havedate = weboob.applications.havedate:HaveDate.run',
56
-            'monboob = weboob.applications.monboob:Monboob.run',
57
-            'parceloob = weboob.applications.parceloob:Parceloob.run',
58
-            'pastoob = weboob.applications.pastoob:Pastoob.run',
59
-            'radioob = weboob.applications.radioob:Radioob.run',
60
-            'shopoob = weboob.applications.shopoob:Shopoob.run',
61
-            'suboob = weboob.applications.suboob:Suboob.run',
62
-            'translaboob = weboob.applications.translaboob:Translaboob.run',
63
-            'traveloob = weboob.applications.traveloob:Traveloob.run',
64
-            'videoob = weboob.applications.videoob:Videoob.run',
65
-            'webcontentedit = weboob.applications.webcontentedit:WebContentEdit.run',
66
-            'weboob-cli = weboob.applications.weboobcli:WeboobCli.run',
67
-            'weboob-config = weboob.applications.weboobcfg:WeboobCfg.run',
68
-            'weboob-debug = weboob.applications.weboobdebug:WeboobDebug.run',
69
-            'weboob-repos = weboob.applications.weboobrepos:WeboobRepos.run',
70
-            'weboorrents = weboob.applications.weboorrents:Weboorrents.run',
71
-            'wetboobs = weboob.applications.wetboobs:WetBoobs.run',
72
-            'weboob = weboob.applications.weboobmain:WeboobMain.run',
73
-        ],
74
-    }
75
-
76 36
     data_files = [
77 37
         ('share/man/man1', glob.glob('man/*')),
78 38
     ]
79 39
 
80
-    # Do not put PyQt, it does not work properly.
81 40
     requirements = [
82 41
         'lxml',
83 42
         'cssselect',
@@ -99,47 +58,8 @@ def install_weboob():
99 58
         pass
100 59
 
101 60
     setup(
102
-        name='weboob',
103
-        version='1.6',
104
-        description='Weboob, Web Outside Of Browsers',
105
-        long_description=open('README.md').read(),
106
-        author='Romain Bignon',
107
-        author_email='weboob@weboob.org',
108
-        maintainer='Romain Bignon',
109
-        maintainer_email='romain@weboob.org',
110
-        url='http://weboob.org/',
111
-        license='GNU LGPL 3',
112
-        classifiers=[
113
-            'Environment :: Console',
114
-            'Environment :: X11 Applications :: Qt',
115
-            'License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)',
116
-            'Programming Language :: Python',
117
-            'Programming Language :: Python :: 3',
118
-            'Programming Language :: Python :: 3.5',
119
-            'Programming Language :: Python :: 3.6',
120
-            'Programming Language :: Python :: 3.7',
121
-            'Programming Language :: Python :: 3.8',
122
-            'Programming Language :: Python',
123
-            'Topic :: Communications :: Email',
124
-            'Topic :: Internet :: WWW/HTTP',
125
-            'Topic :: Internet :: WWW/HTTP :: Browsers',
126
-            'Topic :: Software Development :: Libraries :: Application Frameworks',
127
-            'Topic :: Software Development :: Libraries :: Python Modules',
128
-            'Topic :: Text Processing :: Markup :: HTML',
129
-        ],
130
-
131 61
         packages=packages,
132
-        entry_points=entry_points,
133 62
         data_files=data_files,
134
-
135
-        install_requires=requirements,
136
-        python_requires='>=3.5',
137
-        tests_require=[
138
-            'flake8',
139
-            'nose',
140
-            'xunitparser',
141
-            'coverage',
142
-        ],
143 63
     )
144 64
 
145 65