Skip to content
Snippets Groups Projects
Commit 8943caa1 authored by Denis Arrivault's avatar Denis Arrivault
Browse files

Up with a setup approach

parent 128c8386
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -84,7 +84,7 @@ pytests_results.txt
.coverage
.html
.png
htmlcov/
.eggs
LtfatPyt.egg-info/
.cache/
dist/
......
......@@ -2,6 +2,7 @@
stages:
- build
- test
- dist
# Global runner/docker image definition
image: ubuntu:latest
......@@ -28,16 +29,29 @@ build:
tags:
- docker
script:
- pip3 install -e .
- python setup.py install
# Tests
test:
stage: test
tags:
- docker
dependencies:
- build
script:
- python setup.py test
artifacts:
when: always
untracked: true
paths:
- build/
expire_in: 8d
# Installation and test with pip
dist:
stage: dist
tags:
- docker
script:
- pip install -e .
- nosetests
artifacts:
when: always
......@@ -45,3 +59,6 @@ test:
paths:
- build/
expire_in: 8d
after_script:
- pip3 uninstall ltfatpy
\ No newline at end of file
......@@ -325,9 +325,9 @@ def setup_package():
author='Denis Arrivault and Florent Jaillet',
author_email='denis.arrivault@lif.univ-mrs.fr ' +
'florent.jaillet@lif.univ-mrs.fr',
# install_requires=['numpy'],
ext_modules=extensions,
tests_require=['pytest'],
test_suite='nose.collector',
tests_require=['nose', 'coverage'],
cmdclass={'build_ext': m_build_ext,
'clean': m_clean, 'sdist': m_sdist},
classifiers=['Development Status :: 5 - Production/Stable',
......@@ -344,7 +344,7 @@ def setup_package():
'Topic :: Scientific/Engineering :: Mathematics',
'Topic :: Scientific/Engineering'
],
install_requires=['numpy>=1.8', 'matplotlib>=1.4', 'six>=1.10'],
install_requires=['scipy>=0.18', 'numpy>=1.8', 'matplotlib>=1.4', 'six>=1.10'],
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment