Skip to content

Commit 0d2d8e9

Browse files
committed
setup.cfg: Move metadata to setup.cfg, raise version
1 parent 16d5be1 commit 0d2d8e9

File tree

2 files changed

+59
-80
lines changed

2 files changed

+59
-80
lines changed

setup.cfg

Lines changed: 56 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,60 @@
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+
importlib_metadata>=4.6; python_version<'3.10'
45+
importlib_resources; python_version<'3.9'
46+
typing_extensions
47+
packaging
48+
numpy
49+
50+
setup_requires=
51+
setuptools >=30.0
52+
53+
python_requires = >=3.8
54+
55+
[options.extras_require]
56+
DOCBUILD = sphinx; sphinx-rtd-theme;
57+
358

459
[coverage:run]
560
source =

setup.py

100755100644
Lines changed: 3 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -1,83 +1,7 @@
11
#! /usr/bin/env python
2-
from setuptools import setup, find_packages
32

4-
NAME = "orange-canvas-core"
5-
VERSION = "0.2.2.dev0"
6-
DESCRIPTION = "Core component of Orange Canvas"
7-
8-
with open("README.rst", "rt", encoding="utf-8") as f:
9-
LONG_DESCRIPTION = f.read()
10-
11-
URL = "http://orange.biolab.si/"
12-
AUTHOR = "Bioinformatics Laboratory, FRI UL"
13-
AUTHOR_EMAIL = '[email protected]'
14-
15-
LICENSE = "GPLv3"
16-
DOWNLOAD_URL = 'https://github.com/biolab/orange-canvas-core'
17-
PACKAGES = find_packages()
18-
19-
PACKAGE_DATA = {
20-
"orangecanvas": ["icons/*.svg", "icons/*png"],
21-
"orangecanvas.styles": ["*.qss", "orange/*.svg"],
22-
}
23-
24-
INSTALL_REQUIRES = (
25-
"AnyQt>=0.2.0",
26-
"docutils",
27-
"commonmark>=0.8.1",
28-
"requests",
29-
"requests-cache",
30-
"pip>=18.0",
31-
"dictdiffer",
32-
"qasync>=0.10.0",
33-
"importlib_metadata>=4.6; python_version<'3.10'",
34-
"importlib_resources; python_version<'3.9'",
35-
"typing_extensions",
36-
"packaging",
37-
"numpy",
38-
"dataclasses; python_version<'3.7'",
39-
)
40-
41-
42-
CLASSIFIERS = (
43-
"Development Status :: 1 - Planning",
44-
"Environment :: X11 Applications :: Qt",
45-
"Programming Language :: Python :: 3",
46-
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
47-
"Operating System :: OS Independent",
48-
"Topic :: Scientific/Engineering :: Visualization",
49-
"Topic :: Software Development :: Libraries :: Python Modules",
50-
"Intended Audience :: Education",
51-
"Intended Audience :: Developers",
52-
)
53-
54-
EXTRAS_REQUIRE = {
55-
'DOCBUILD': ['sphinx', 'sphinx-rtd-theme'],
56-
}
57-
58-
PROJECT_URLS = {
59-
"Bug Reports": "https://github.com/biolab/orange-canvas-core/issues",
60-
"Source": "https://github.com/biolab/orange-canvas-core/",
61-
"Documentation": "https://orange-canvas-core.readthedocs.io/en/latest/",
62-
}
63-
64-
PYTHON_REQUIRES = ">=3.8"
3+
from setuptools import setup
654

665
if __name__ == "__main__":
67-
setup(
68-
name=NAME,
69-
version=VERSION,
70-
description=DESCRIPTION,
71-
long_description=LONG_DESCRIPTION,
72-
long_description_content_type="text/x-rst",
73-
url=URL,
74-
author=AUTHOR,
75-
author_email=AUTHOR_EMAIL,
76-
license=LICENSE,
77-
packages=PACKAGES,
78-
package_data=PACKAGE_DATA,
79-
install_requires=INSTALL_REQUIRES,
80-
extras_require=EXTRAS_REQUIRE,
81-
project_urls=PROJECT_URLS,
82-
python_requires=PYTHON_REQUIRES,
83-
)
6+
# setup.cfg has authoritative package descriptions
7+
setup()

0 commit comments

Comments
 (0)