Skip to content

Commit bd6cfb1

Browse files
committed
setup.cfg: Move metadata to setup.cfg, raise version
1 parent a706249 commit bd6cfb1

File tree

2 files changed

+56
-78
lines changed

2 files changed

+56
-78
lines changed

setup.cfg

Lines changed: 54 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,58 @@
11
[metadata]
2-
license_file=LICENSE.txt
2+
3+
name = orange-canvas-core
4+
version = 0.3.0a1.dev0
5+
description = Core component of Orange Canvas
6+
long_description = file: README.rst
7+
keywords =
8+
home_page = http://orange.biolab.si/
9+
author = Bioinformatics Laboratory, FRI UL <[email protected]>
10+
11+
project_urls =
12+
Home Page = https://github.com/biolab/orange-canvas-core
13+
Source = https://github.com/biolab/orange-canvas-core
14+
Issue Tracker = https://github.com/biolab/orange-canvas-core/issues
15+
Documentation = https://orange-canvas-core.readthedocs.io/en/latest/
16+
17+
license = GPLv3
18+
license_file = LICENSE.txt
19+
20+
classifiers =
21+
Development Status :: 1 - Planning
22+
Environment :: X11 Applications :: Qt
23+
Programming Language :: Python :: 3
24+
License :: OSI Approved :: GNU General Public License v3 (GPLv3)
25+
Operating System :: OS Independent
26+
Topic :: Scientific/Engineering :: Visualization
27+
Topic :: Software Development :: Libraries :: Python Modules
28+
Intended Audience :: Education
29+
Intended Audience :: Developers
30+
31+
[options]
32+
33+
packages = find:
34+
35+
install_requires =
36+
AnyQt >= 0.2.0
37+
docutils
38+
commonmark >= 0.8.1
39+
requests
40+
requests-cache
41+
pip >= 23.3
42+
dictdiffer
43+
qasync >= 0.13.0
44+
typing_extensions
45+
packaging
46+
numpy
47+
48+
setup_requires=
49+
setuptools >=30.0
50+
51+
python_requires = >=3.10
52+
53+
[options.extras_require]
54+
DOCBUILD = sphinx; sphinx-rtd-theme;
55+
356

457
[coverage:run]
558
source =

setup.py

100755100644
Lines changed: 2 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -1,71 +1,10 @@
11
#! /usr/bin/env python
22
import os
33

4-
from setuptools import setup, find_packages
4+
from setuptools import setup
55
from setuptools.command.install import install
66

77

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-
698
class InstallMultilingualCommand(install):
709
def run(self):
7110
super().run()
@@ -82,23 +21,9 @@ def compile_to_multilingual(self):
8221

8322

8423
if __name__ == "__main__":
24+
# setup.cfg has authoritative package descriptions
8525
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,
9826
cmdclass={
9927
'install': InstallMultilingualCommand,
10028
},
101-
extras_require=EXTRAS_REQUIRE,
102-
project_urls=PROJECT_URLS,
103-
python_requires=PYTHON_REQUIRES,
10429
)

0 commit comments

Comments
 (0)