File: setup.py

package info (click to toggle)
python-upsetplot 0.9.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,188 kB
  • sloc: python: 2,772; makefile: 153; sh: 12
file content (36 lines) | stat: -rw-r--r-- 865 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
#!/usr/bin/env python

import os
import sys

from setuptools import setup


def setup_package():
    src_path = os.path.dirname(os.path.abspath(sys.argv[0]))
    old_path = os.getcwd()
    os.chdir(src_path)
    sys.path.insert(0, src_path)

    try:
        os.environ["__IN-SETUP"] = "1"  # ensures only version is imported
        from upsetplot import __version__ as version

        # See also setup.cfg
        setup(
            name="UpSetPlot",
            version=version,
            packages=["upsetplot"],
            license="BSD-3-Clause",
            extras_require={"testing": ["pytest>=2.7", "pytest-cov<2.6"]},
            # TODO: check versions
            install_requires=["pandas>=0.23", "matplotlib>=2.0"],
        )
    finally:
        del sys.path[0]
        os.chdir(old_path)
    return


if __name__ == "__main__":
    setup_package()