Skip to content

Commit d9892ab

Browse files
committed
setup.cfg: Move metadata to setup.cfg, raise version
1 parent 4a32bbc commit d9892ab

File tree

2 files changed

+56
-77
lines changed

2 files changed

+56
-77
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.2.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+
setuptools
37+
AnyQt >= 0.0.13
38+
docutils
39+
commonmark >= 0.8.1
40+
requests
41+
cachecontrol[filecache]
42+
pip >= 20.0
43+
dictdiffer
44+
qasync >= 0.13.0
45+
importlib_metadata; python_version<'3.8'
46+
dataclasses; python_version<'3.7'
47+
48+
setup_requires=
49+
setuptools >=30.0
50+
51+
python_requires = >=3.6
52+
53+
[options.extras_require]
54+
DOCBUILD = sphinx; sphinx-rtd-theme;
55+
356

457
[coverage:run]
558
source =

setup.py

Lines changed: 2 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -1,80 +1,6 @@
11
#! /usr/bin/env python
2-
from setuptools import setup, find_packages
32

4-
NAME = "orange-canvas-core"
5-
VERSION = "0.1.23.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-
"setuptools",
26-
"AnyQt>=0.0.13",
27-
"docutils",
28-
"commonmark>=0.8.1",
29-
"requests",
30-
"cachecontrol[filecache]",
31-
"pip>=18.0",
32-
"dictdiffer",
33-
"qasync",
34-
"importlib_metadata; python_version<'3.8'",
35-
"dataclasses; python_version<'3.7'",
36-
)
37-
38-
39-
CLASSIFIERS = (
40-
"Development Status :: 1 - Planning",
41-
"Environment :: X11 Applications :: Qt",
42-
"Programming Language :: Python :: 3",
43-
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
44-
"Operating System :: OS Independent",
45-
"Topic :: Scientific/Engineering :: Visualization",
46-
"Topic :: Software Development :: Libraries :: Python Modules",
47-
"Intended Audience :: Education",
48-
"Intended Audience :: Developers",
49-
)
50-
51-
EXTRAS_REQUIRE = {
52-
'DOCBUILD': ['sphinx', 'sphinx-rtd-theme'],
53-
}
54-
55-
PROJECT_URLS = {
56-
"Bug Reports": "https://github.com/biolab/orange-canvas-core/issues",
57-
"Source": "https://github.com/biolab/orange-canvas-core/",
58-
"Documentation": "https://orange-canvas-core.readthedocs.io/en/latest/",
59-
}
60-
61-
PYTHON_REQUIRES = ">=3.6"
3+
from setuptools import setup
624

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

0 commit comments

Comments
 (0)