forked from edocappelli/crystalpy
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
59 lines (52 loc) · 1.71 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
__authors__ = ["M Sanchez del Rio, E Cappelli, M Glass - ESRF ISDD MEG Modelling group"]
__license__ = "MIT"
__date__ = "2016-2023"
from setuptools import setup
#
# memorandum (for developer installation)
#
# git clone https://github.com/oasys-kit/crystalpy
# cd crystalpy
# python -m pip install -e . --no-deps --no-binary :all:
#
# memorandum (for updating pypi)
#
# python setup.py sdist
# python -m twine upload dist/crystalpy....
#
# memorandum (for documentation with numpydoc style)
#
# ** install sphinx:
# pip install sphinx
# pip install sphinxcontrib-apidoc
# pip install sphinx-rtd-theme
# pip install nbsphinx
# install payment (https://stackoverflow.com/questions/24555327/how-can-i-produce-a-numpy-like-documentation)
# ** create embeded doc
# pyment -o numpydoc Vector.py # apply to all files,
# complete/edit by hand, see https://numpydoc.readthedocs.io/en/latest/format.html ...
# patch Vector.py < Vector.py.patch
# ** some initialization
# sphinx-quickstart # needed only once...
# ** iterate
# rm docs/crystalpy*.rst docs/modules.rst
# sphinx-apidoc -o docs crystalpy
# make clean html
setup(name='crystalpy',
version='0.0.24',
description='Python crystal polarization calculation',
author='Manuel Sanchez del Rio, Edoardo Cappelli, Mark Glass',
author_email='[email protected]',
url='https://github.com/oasys-kit/crystalpy/',
packages=['crystalpy',
'crystalpy.util',
'crystalpy.diffraction',
'crystalpy.polarization'],
install_requires=[
'numpy',
'scipy',
'mpmath',
'dabax',
],
test_suite='tests'
)