forked from PaNOSC-ViNYL/McStasScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
46 lines (43 loc) · 1.3 KB
/
Copy pathsetup.py
File metadata and controls
46 lines (43 loc) · 1.3 KB
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
import os
from setuptools import setup, find_packages
from glob import glob
# Get version number
here = os.path.abspath(os.path.dirname(__file__))
version_path = os.path.join(here, "mcstasscript", "_version.py")
version = {}
with open(version_path) as fp:
exec(fp.read(), version)
found_version = version['__version__']
print("Version read from file:", found_version)
with open("README.md", "r") as fh:
long_description = fh.read()
setup(
name='McStasScript',
version=found_version,
author="Mads Bertelsen",
author_email="Mads.Bertelsen@ess.eu",
description="A python scripting interface for McStas",
include_package_data=True,
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/PaNOSC-ViNYL/McStasScript",
install_requires=[
'numpy',
'matplotlib',
'PyYAML',
'ipywidgets',
'libpyvinyl',
'ipympl',
'h5py',
],
extras_require={
"geometry-viewer": ['pythreejs'],
},
packages=find_packages(),
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: GNU General Public License (GPL)",
"Operating System :: OS Independent",
"Topic :: Scientific/Engineering"
],
)