File: setup.py

package info (click to toggle)
edlio 0.2.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,144 kB
  • sloc: python: 1,614; sh: 20; makefile: 13
file content (41 lines) | stat: -rwxr-xr-x 1,225 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
36
37
38
39
40
41
#!/usr/bin/env python3

import os
import pathlib

try:
    import tomllib as toml
except ModuleNotFoundError:
    import tomlkit as toml

from setuptools import setup

from edlio import __appname__, __version__

source_root = os.path.dirname(__file__)
if not os.path.isabs(__file__):
    thisfile = os.path.dirname(os.path.normpath(os.path.join(os.getcwd(), __file__)))

packages = [
    'edlio',
    'edlio.dataio',
]

pyproject_data = toml.loads(pathlib.Path('pyproject.toml').read_text(encoding='utf-8'))

setup(
    name=__appname__,
    version=__version__,
    author="Matthias Klumpp",
    author_email="matthias@tenstral.net",
    description='Module to work with data in an Experiment Directory Layout (EDL) structure',
    url="https://edl.readthedocs.io/",
    license=pyproject_data['project']['license']['text'],
    long_description=open(os.path.join(source_root, 'README.md'), encoding='utf-8').read(),
    long_description_content_type='text/markdown',
    install_requires=pyproject_data['project']['dependencies'],
    tests_require=pyproject_data['project']['optional-dependencies']['test'],
    python_requires=pyproject_data['project']['requires-python'],
    platforms=['any'],
    packages=packages,
)