Jpp 21.0.0
the software that should make you happy
Loading...
Searching...
No Matches
setup.py
Go to the documentation of this file.
1#!/usr/bin/env python
2# Filename: setup.py
3"""
4The km3net_testdata setup script.
5
6"""
7from setuptools import setup
8import sys
9
10
11def read_stripped_lines(filename):
12 """Return a list of stripped lines from a file"""
13 with open(filename) as fobj:
14 return [line.strip() for line in fobj.readlines()]
15
16
17try:
18 with open("README.rst") as fh:
19 long_description = fh.read()
20except UnicodeDecodeError:
21 long_description = "KM3NeT TestData"
22
23setup(
24 name="km3net_testdata",
25 url="https://git.km3net.de/km3py/km3net-testdata",
26 description="KM3NeT TestData",
27 long_description=long_description,
28 author="Tamas Gal",
29 author_email="tgal@km3net.de",
30 packages=["km3net_testdata"],
31 include_package_data=True,
32 platforms="any",
33 setup_requires=["setuptools_scm"],
34 use_scm_version=True,
35 python_requires=">=2.7",
36 install_requires=read_stripped_lines("requirements.txt"),
37 extras_require={"dev": read_stripped_lines("requirements-dev.txt")},
38 classifiers=[
39 "Intended Audience :: Developers",
40 "Intended Audience :: Science/Research",
41 "Programming Language :: Python",
42 ],
43)
read_stripped_lines(filename)
Definition setup.py:11