Mentions légales du service

Skip to content
Snippets Groups Projects
Unverified Commit 374ac4e9 authored by gdurif's avatar gdurif Committed by GitHub
Browse files

Merge pull request #6 from getspams/buildpatch

revamp setup files (fixing github issue #1 incidentally) + manage package version number in a dedicated file
parents 451cb6f5 d2a24537
No related branches found
No related tags found
No related merge requests found
include README.md
include LICENSE.txt
include version
recursive-include spams_wrap *.h
recursive-include spams_wrap *.cpp
......
[build-system]
requires = ["oldest-supported-numpy",
"setuptools",
"distro",
"wheel"]
......@@ -7,10 +7,6 @@ verbose = 1
[build_ext]
[bdist_wheel]
universal = 1
[egg_info]
tag_build =
tag_date = 0
......@@ -186,22 +186,29 @@ def mkhtml(d=None, base='sphinx'):
return l
# project root directory
this_directory = os.path.abspath(os.path.dirname(__file__))
# version number
with open(os.path.join(this_directory, "version"), encoding="utf-8") as v:
current_version = v.read().rstrip()
# package description
with open(os.path.join(this_directory, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
# setup config
opts = dict(
name='spams',
version='2.6.3.0',
version=current_version,
description='Python interface for SPAMS',
long_description=long_description,
long_description_content_type='text/markdown',
author='Julien Mairal',
author_email='spams.dev@inria.fr',
url='http://spams-devel.gforge.inria.fr/',
url='https://thoth.inrialpes.fr/people/mairal/spams/',
license='GPLv3',
python_requires='>=3',
setup_requires=['Cython>=0.29', 'numpy>=1.12'],
install_requires=['Cython>=0.29', 'numpy>=1.12',
'Pillow>=6.0', 'scipy>=1.0', 'six>=1.12'],
packages=find_packages(),
......
2.6.3.1
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment