File: setup.py

package info (click to toggle)
python-mcstasscript 0.0.46%2Bgit20250402111921.bfa5a26-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 11,440 kB
  • sloc: python: 13,421; makefile: 14
file content (35 lines) | stat: -rw-r--r-- 1,174 bytes parent folder | download
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
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'],
     packages=find_packages(),
     classifiers=[
         "Programming Language :: Python :: 3",
         "License :: OSI Approved :: GNU General Public License (GPL)",
         "Operating System :: OS Independent",
         "Topic :: Scientific/Engineering"
     ],
 )