Commit 9b21ab06 authored by VIGNET Pierre's avatar VIGNET Pierre
Browse files

[cmd] Remove overhead related to setuptools: use setup.cfg

parent 7875183b
[metadata]
name = cadbiom_cmd
# version = attr: cutevariant.__version__
description = Command line tools using the Cadbiom software
description-file = README.md
long_description_content_type = text/markdown
author = pvignet
author_email = pierre.vignet@irisa.fr
url = https://gitlab.inria.fr/pvignet/cadbiom
keywords = sytems biology
license = GNU General Public License v3 or later (GPLv3+)
classifiers =
Environment :: Console
Development Status :: 4 - Beta
Programming Language :: Python :: 2.7
License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
Natural Language :: French
Operating System :: OS Independent
Intended Audience :: Science/Research
Intended Audience :: Developers
Topic :: Scientific/Engineering :: Bio-Informatics
[options]
zip_safe = False
# Search all packages recursively
packages = find:
install_requires =
cadbiom
# Require backport of concurrent.futures on Python 2
futures==3.3;python_version<"3"
[options.extras_require]
# For graphs drawing manually
matplotlib =
matplotlib<2
dev =
# Tests
pytest<3.7
pytest-runner
# Doc
sphinx<2
sphinx-argparse
[options.entry_points]
console_scripts =
cadbiom_cmd = cadbiom_cmd.cadbiom_cmd:main
# [zest.releaser]
# create-wheel = yes
# python-file-with-version = cutevariant/__init__.py
[aliases]
# Thanks to pytest-runner
# cmd: python setup.py test or just pytest
test=pytest
......@@ -26,80 +26,10 @@
"""Definition of setup function for setuptools module."""
# Standard imports
import sys
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
from sys import version_info
from setuptools import setup
__PACKAGE_VERSION__ = "1.1.0"
deps = []
if version_info[0] == 2:
# Require backport of concurrent.futures on Python 2
deps.append("futures")
################################################################################
class PyTest(TestCommand):
"""Call tests with the custom 'python setup.py test' command."""
def initialize_options(self):
TestCommand.initialize_options(self)
self.pytest_args = []
def run_tests(self):
import pytest
errno = pytest.main()
sys.exit(errno)
################################################################################
__PACKAGE_VERSION__ = "2.0.0"
setup(
# Library name & version
name='cadbiom_cmd',
version=__PACKAGE_VERSION__,
# Search all packages recursively
packages=find_packages(),
# Authors
author="pvignet",
author_email="pierre.vignet@irisa.fr",
# Description
description="Command line tools using the Cadbiom library",
long_description=open('README.md').read(),
# Official page
url = "https://gitlab.inria.fr/pvignet/cadbiom",
# Metadata
classifiers=[
"Environment :: Console",
"Development Status :: 4 - Beta",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Natural Language :: French",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python :: 2.7",
"Topic :: Scientific/Engineering :: Bio-Informatics",
],
entry_points={
'console_scripts': ['cadbiom_cmd = cadbiom_cmd.cadbiom_cmd:main'],
},
install_requires=deps + ["cadbiom", "futures"],
# TODO: use setup.cfg instead of these directives.
# => Will allow to finely distinguish dev, and extra packages
extras_require = {
"matplotlib": ["matplotlib<2"], # For graphs drawing manually
"dev": ["sphinx<2", "sphinx-argparse"], # For doc
},
# Tests
tests_require=['pytest<3.7'],
cmdclass={'test': PyTest},
)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment