-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathsetup.py
executable file
·70 lines (60 loc) · 2.15 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#!/usr/bin/env python
# encoding: utf-8
"""
setup.py
"""
import setuptools
# version.py defines static version names
import re
_version_re = re.compile(r"version\s+=\s+'(.*)'")
_rev_re = re.compile(r"revision\s+=\s+'(.*)'")
# get version
with open('spike/version.py', 'rb') as f:
F = f.read()
version = str(_version_re.search(F.decode('utf-8')).group(1))
print("version :",version)
# # copy Logo
# with open('Notebooks/Logo.png', 'rb') as fin:
# with open('spike/Interactive/Logo.png','wb') as fout:
# fout.write( fin.read() )
# get description
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name='spike_py',
version=version,
author="M-A. Delsuc",
author_email="[email protected]",
description="The SPIKE program. A collaborative development for a FT-spectroscopy processing program",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/spike-project/spike",
packages=setuptools.find_packages(),
include_package_data = True,
package_data={ "Notebooks": ["*.ipynb"]},
license="CeCILL-2.1",
provides=["spike"],
requires=["matplotlib", "numpy", 'scipy', 'tables'],
classifiers=[
"Programming Language :: Python",
"License :: OSI Approved :: CEA CNRS Inria Logiciel Libre License, version 2.1 (CeCILL-2.1)",
"Operating System :: OS Independent",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Chemistry"
],
)
# How-To
# python QC.py
# cd spike; python dev_setup.py
# vi README.md -> change date and version
# doc/script_doc.sh
# python3 setup.py sdist
# rsync -av spikedoc/* /media/web/CASC4DE/softwares/spike/spikedoc
# twine upload --repository-url https://test.pypi.org/legacy/ dist/*.tar.gz
# conda create -n test999 numpy scipy matplotlib pytables pandas ipympl
# conda activate test999
## conda install ipympl
# pip install --extra-index-url https://testpypi.python.org/pypi spike-py
# python -m spike.Tests -D /DATA/DATA_test
# twine upload dist/*.tar.gz
# conda create -n test999 python numpy scipy matplotlib pytables pandas