Skip to content

Commit

Permalink
setup.cfg: Move metadata to setup.cfg, raise version
Browse files Browse the repository at this point in the history
  • Loading branch information
ales-erjavec committed May 31, 2022
1 parent bfc9183 commit ef2d0a4
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 78 deletions.
55 changes: 54 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,58 @@
[metadata]
license_file=LICENSE.txt

name = orange-canvas-core
version = 0.2.0a1.dev0
description = Core component of Orange Canvas
long_description = file: README.rst
keywords =
home_page = http://orange.biolab.si/
author = Bioinformatics Laboratory, FRI UL <[email protected]>

project_urls =
Home Page = https://github.com/biolab/orange-canvas-core
Source = https://github.com/biolab/orange-canvas-core
Issue Tracker = https://github.com/biolab/orange-canvas-core/issues
Documentation = https://orange-canvas-core.readthedocs.io/en/latest/

license = GPLv3
license_file = LICENSE.txt

classifiers =
Development Status :: 1 - Planning
Environment :: X11 Applications :: Qt
Programming Language :: Python :: 3
License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Operating System :: OS Independent
Topic :: Scientific/Engineering :: Visualization
Topic :: Software Development :: Libraries :: Python Modules
Intended Audience :: Education
Intended Audience :: Developers

[options]

packages = find:

install_requires =
setuptools
AnyQt >= 0.1.0
docutils
commonmark >= 0.8.1
requests
cachecontrol[filecache]
pip >= 20.0
dictdiffer
qasync >= 0.13.0
importlib_metadata; python_version<'3.8'
dataclasses; python_version<'3.7'

setup_requires=
setuptools >=30.0

python_requires = >=3.6

[options.extras_require]
DOCBUILD = sphinx; sphinx-rtd-theme;


[coverage:run]
source =
Expand Down
80 changes: 3 additions & 77 deletions setup.py
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,80 +1,6 @@
#! /usr/bin/env python
from setuptools import setup, find_packages

NAME = "orange-canvas-core"
VERSION = "0.1.27.dev0"
DESCRIPTION = "Core component of Orange Canvas"

with open("README.rst", "rt", encoding="utf-8") as f:
LONG_DESCRIPTION = f.read()

URL = "http://orange.biolab.si/"
AUTHOR = "Bioinformatics Laboratory, FRI UL"
AUTHOR_EMAIL = '[email protected]'

LICENSE = "GPLv3"
DOWNLOAD_URL = 'https://github.com/biolab/orange-canvas-core'
PACKAGES = find_packages()

PACKAGE_DATA = {
"orangecanvas": ["icons/*.svg", "icons/*png"],
"orangecanvas.styles": ["*.qss", "orange/*.svg"],
}

INSTALL_REQUIRES = (
"setuptools",
"AnyQt>=0.1.0",
"docutils",
"commonmark>=0.8.1",
"requests",
"cachecontrol[filecache]",
"pip>=18.0",
"dictdiffer",
"qasync",
"importlib_metadata; python_version<'3.8'",
"dataclasses; python_version<'3.7'",
)


CLASSIFIERS = (
"Development Status :: 1 - Planning",
"Environment :: X11 Applications :: Qt",
"Programming Language :: Python :: 3",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: OS Independent",
"Topic :: Scientific/Engineering :: Visualization",
"Topic :: Software Development :: Libraries :: Python Modules",
"Intended Audience :: Education",
"Intended Audience :: Developers",
)

EXTRAS_REQUIRE = {
'DOCBUILD': ['sphinx', 'sphinx-rtd-theme'],
}

PROJECT_URLS = {
"Bug Reports": "https://github.com/biolab/orange-canvas-core/issues",
"Source": "https://github.com/biolab/orange-canvas-core/",
"Documentation": "https://orange-canvas-core.readthedocs.io/en/latest/",
}

PYTHON_REQUIRES = ">=3.6"
from setuptools import setup

if __name__ == "__main__":
setup(
name=NAME,
version=VERSION,
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
long_description_content_type="text/x-rst",
url=URL,
author=AUTHOR,
author_email=AUTHOR_EMAIL,
license=LICENSE,
packages=PACKAGES,
package_data=PACKAGE_DATA,
install_requires=INSTALL_REQUIRES,
extras_require=EXTRAS_REQUIRE,
project_urls=PROJECT_URLS,
python_requires=PYTHON_REQUIRES,
)
# setup.cfg has authoritative package descriptions
setup()

0 comments on commit ef2d0a4

Please sign in to comment.