File: setup.py

package info (click to toggle)
reentry 1.3.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 280 kB
  • sloc: python: 749; makefile: 19; sh: 4
file content (22 lines) | stat: -rw-r--r-- 689 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# -*- coding: utf8 -*-
"""
Install configuration for setuptools / pip
"""
from os import path
from setuptools import setup, find_packages
import json

README_PATH = path.join(path.dirname(path.abspath(__file__)), 'README.rst')
JSON_PATH = path.join(path.dirname(path.abspath(__file__)), 'setup.json')

# Provide static information in setup.json
# such that it can be discovered automatically
with open(JSON_PATH, 'r') as info:
    kwargs = json.load(info)

setup(packages=find_packages(),
      include_package_data=True,
      package_data={'': ['js_data', 'README.rst']},
      long_description=open(README_PATH).read(),
      long_description_content_type='text/x-rst',
      **kwargs)