-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
35 lines (32 loc) · 1.09 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
import os
import pathlib
import setuptools
from setuptools import setup, find_packages
# Utility function to read the README file.
# Used for the long_description. It's nice, because now 1) we have a top level
# README file and 2) it's easier to type in the README file than to put a raw
# string in below ...
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
def version():
p = pathlib.Path(__file__).parent.joinpath("data_api3").joinpath("package_version.txt")
with open(p, "r") as f1:
return f1.read()[:-1]
setuptools.setup(
name="data_api",
version=version(),
author="Paul Scherrer Institute",
author_email="daq@psi.ch",
description=("Interface to PSI's DAQ data- and imagebuffer"),
license="GPLv3",
keywords="",
url="https://github.com/paulscherrerinstitute/data_api_python",
packages=setuptools.find_packages(),
long_description=read('Readme.md'),
entry_points={
'console_scripts': ['data_api=data_api2.cli:main']
},
data_files = [
("data_api3", ["data_api3/package_version.txt"])
]
)