Commit 199e2d49 authored by VIGNET Pierre's avatar VIGNET Pierre
Browse files

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

parent d553cf22
include README.md
recursive-include cadbiom/ *.g *.cal *.bcx *.xml
\ No newline at end of file
[metadata]
name = cadbiom
# version = attr: cadbiom.__version__
# description="Cadbiom library v%s" % __LIBRARY_VERSION__
description-file = README.md
long_description_content_type = text/markdown
author = Pierre Vignet
author_email = pierre.vignet@irisa.fr
url = https://gitlab.inria.fr/pvignet/cadbiom
keywords = sytems biology
license = GNU General Public License v2 or later (GPLv2+)
classifiers =
Development Status :: 4 - Beta
Programming Language :: C
Programming Language :: Python :: 2.7
License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)
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 =
pip>=20.0
networkx<2
lxml
pycryptosat>0.1.2
antlr4-python2-runtime==4.8
cached-property>=1.5,<1.6
[options.extras_require]
dev =
# Tests
pytest<3.7
pytest-runner
# Doc
sphinx<2
sphinx-argparse
# [zest.releaser]
# create-wheel = yes
# python-file-with-version = cadbiom/__init__.py
[aliases]
# Thanks to pytest-runner
# cmd: python setup.py test or just pytest
test=pytest
[tool:pytest]
python_files = test_*.py Test*.py
python_files = test_*.py Test*.py
\ No newline at end of file
......@@ -27,29 +27,12 @@
"""Definition of setup function for setuptools module."""
# Standard imports
import sys
from distutils import sysconfig
from setuptools import setup, Extension, find_packages
from setuptools.command.test import test as TestCommand
from setuptools import setup, Extension
__PACKAGE_VERSION__ = "0.3"
__LIBRARY_VERSION__ = "1.1.0"
################################################################################
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(self.pytest_args)
sys.exit(errno)
################################################################################
# Delete unwanted flags for C compilation
# Distutils has the lovely feature of providing all the same flags that
......@@ -107,41 +90,7 @@ modules = [
]
setup(
name="cadbiom",
version=__PACKAGE_VERSION__,
author="Pierre Vignet",
author_email="pierre.vignet@irisa.fr",
url="https://gitlab.inria.fr/pvignet/cadbiom",
# Search all packages recursively
packages=find_packages(),
classifiers=[
"Development Status :: 4 - Beta",
"License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)",
"Natural Language :: French",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: C",
"Programming Language :: Python :: 2.7",
"Topic :: Scientific/Engineering :: Bio-Informatics",
],
ext_modules=modules,
description="Cadbiom library v%s" % __LIBRARY_VERSION__,
long_description=open('README.md').read(),
install_requires=[
"pip>=20.0",
"networkx<2", "lxml",
"pycryptosat>0.1.2", "antlr4-python2-runtime==4.8",
"cached-property>=1.5,<1.6",
],
# TODO: use setup.cfg instead of these directives.
# => Will allow to finely distinguish dev, and extra packages
extras_require = {
"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