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 Jan 29, 2024
1 parent bd82091 commit cb4bd8c
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 79 deletions.
57 changes: 56 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,60 @@
[metadata]
license_file=LICENSE.txt

name = orange-canvas-core
version = 0.3.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 <contact@orange.biolab.si>

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 =
AnyQt >= 0.2.0
docutils
commonmark >= 0.8.1
requests
requests-cache
pip >= 23.3
dictdiffer
qasync >= 0.13.0
importlib_metadata; python_version<'3.10'
importlib_resources; python_version<'3.9'
packaging
numpy
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
81 changes: 3 additions & 78 deletions setup.py
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,82 +1,7 @@
#! /usr/bin/env python
from setuptools import setup, find_packages

NAME = "orange-canvas-core"
VERSION = "0.2.1.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 = 'contact@orange.biolab.si'

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 = (
"AnyQt>=0.2.0",
"docutils",
"commonmark>=0.8.1",
"requests",
"requests-cache",
"pip>=18.0",
"dictdiffer",
"qasync>=0.10.0",
"importlib_metadata; python_version<'3.10'",
"importlib_resources; python_version<'3.9'",
"packaging",
"numpy",
"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 cb4bd8c

Please sign in to comment.