Skip to content
Snippets Groups Projects
setup.py 1.94 KiB
Newer Older
#   Copyright ETH 2018 - 2023 Zürich, Scientific IT Services
# 
#   Licensed under the Apache License, Version 2.0 (the "License");
#   you may not use this file except in compliance with the License.
#   You may obtain a copy of the License at
# 
#        http://www.apache.org/licenses/LICENSE-2.0
#   
#   Unless required by applicable law or agreed to in writing, software
#   distributed under the License is distributed on an "AS IS" BASIS,
#   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#   See the License for the specific language governing permissions and
#   limitations under the License.
#
Swen Vermeul's avatar
Swen Vermeul committed
import sys
Swen Vermeul's avatar
Swen Vermeul committed
    sys.exit("Sorry, Python < 3.3 is not supported")
Swen Vermeul's avatar
Swen Vermeul committed

from setuptools import setup
Swen Vermeul's avatar
Swen Vermeul committed

with open("README.md", "r", encoding="utf-8") as fh:
    long_description = fh.read()
# include all man files
Swen Vermeul's avatar
Swen Vermeul committed
data_dir = os.path.join("man", "man1")
data_files = [
    (d, [os.path.join(d, f) for f in files]) for d, folders, files in os.walk(data_dir)
]
Swen Vermeul's avatar
Swen Vermeul committed
    name="obis",
    version="0.4.0rc5",
Swen Vermeul's avatar
Swen Vermeul committed
    description="Local data management with assistance from OpenBIS.",
Swen Vermeul's avatar
Swen Vermeul committed
    long_description=long_description,
    long_description_content_type="text/markdown",
    url="https://sissource.ethz.ch/sispub/openbis/tree/master/app-openbis-command-line",
Swen Vermeul's avatar
Swen Vermeul committed
    author="ID SIS • ETH Zürich",
    author_email="openbis-support@id.ethz.ch",
Swen Vermeul's avatar
Swen Vermeul committed
    license="Apache Software License Version 2.0",
    packages=["obis", "obis.dm", "obis.dm.commands", "obis.scripts"],
    data_files=data_files,
Swen Vermeul's avatar
Swen Vermeul committed
    package_data={"obis": ["dm/git-annex-attributes"]},
    install_requires=["pyOpenSSL", "pytest", "pybis==1.33.2", "click"],
Swen Vermeul's avatar
Swen Vermeul committed
    entry_points={"console_scripts": ["obis=obis.scripts.cli:main"]},
Swen Vermeul's avatar
Swen Vermeul committed
    python_requires=">=3.3",
    classifiers=[
        "Programming Language :: Python :: 3",
        "License :: OSI Approved :: Apache Software License",
        "Operating System :: OS Independent",
    ],