1
1
#! /usr/bin/env python
2
2
import os
3
3
4
- from setuptools import setup , find_packages
4
+ from setuptools import setup
5
5
from setuptools .command .install import install
6
6
7
7
8
- NAME = "orange-canvas-core"
9
- VERSION = "0.2.6.dev0"
10
- DESCRIPTION = "Core component of Orange Canvas"
11
-
12
- with open ("README.rst" , "rt" , encoding = "utf-8" ) as f :
13
- LONG_DESCRIPTION = f .read ()
14
-
15
- URL = "http://orange.biolab.si/"
16
- AUTHOR = "Bioinformatics Laboratory, FRI UL"
17
- AUTHOR_EMAIL = '[email protected] '
18
-
19
- LICENSE = "GPLv3"
20
- DOWNLOAD_URL = 'https://github.com/biolab/orange-canvas-core'
21
- PACKAGES = find_packages ()
22
-
23
- PACKAGE_DATA = {
24
- "orangecanvas" : ["icons/*.svg" , "icons/*png" ],
25
- "orangecanvas.styles" : ["*.qss" , "orange/*.svg" ],
26
- }
27
-
28
- INSTALL_REQUIRES = (
29
- "AnyQt>=0.2.0" ,
30
- "docutils" ,
31
- "commonmark>=0.8.1" ,
32
- "requests" ,
33
- "requests-cache" ,
34
- "pip>=18.0" ,
35
- "dictdiffer" ,
36
- "qasync>=0.10.0" ,
37
- "typing_extensions" ,
38
- "packaging" ,
39
- "numpy" ,
40
- "dataclasses; python_version<'3.7'" ,
41
- )
42
-
43
-
44
- CLASSIFIERS = (
45
- "Development Status :: 1 - Planning" ,
46
- "Environment :: X11 Applications :: Qt" ,
47
- "Programming Language :: Python :: 3" ,
48
- "License :: OSI Approved :: GNU General Public License v3 (GPLv3)" ,
49
- "Operating System :: OS Independent" ,
50
- "Topic :: Scientific/Engineering :: Visualization" ,
51
- "Topic :: Software Development :: Libraries :: Python Modules" ,
52
- "Intended Audience :: Education" ,
53
- "Intended Audience :: Developers" ,
54
- )
55
-
56
- EXTRAS_REQUIRE = {
57
- 'DOCBUILD' : ['sphinx' , 'sphinx-rtd-theme' ],
58
- }
59
-
60
- PROJECT_URLS = {
61
- "Bug Reports" : "https://github.com/biolab/orange-canvas-core/issues" ,
62
- "Source" : "https://github.com/biolab/orange-canvas-core/" ,
63
- "Documentation" : "https://orange-canvas-core.readthedocs.io/en/latest/" ,
64
- }
65
-
66
- PYTHON_REQUIRES = ">=3.10"
67
-
68
-
69
8
class InstallMultilingualCommand (install ):
70
9
def run (self ):
71
10
super ().run ()
@@ -82,23 +21,9 @@ def compile_to_multilingual(self):
82
21
83
22
84
23
if __name__ == "__main__" :
24
+ # setup.cfg has authoritative package descriptions
85
25
setup (
86
- name = NAME ,
87
- version = VERSION ,
88
- description = DESCRIPTION ,
89
- long_description = LONG_DESCRIPTION ,
90
- long_description_content_type = "text/x-rst" ,
91
- url = URL ,
92
- author = AUTHOR ,
93
- author_email = AUTHOR_EMAIL ,
94
- license = LICENSE ,
95
- packages = PACKAGES ,
96
- package_data = PACKAGE_DATA ,
97
- install_requires = INSTALL_REQUIRES ,
98
26
cmdclass = {
99
27
'install' : InstallMultilingualCommand ,
100
28
},
101
- extras_require = EXTRAS_REQUIRE ,
102
- project_urls = PROJECT_URLS ,
103
- python_requires = PYTHON_REQUIRES ,
104
29
)
0 commit comments