File: setup-aeidon.py

package info (click to toggle)
gaupol 1.15-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,112 kB
  • sloc: python: 18,822; sh: 98; makefile: 79
file content (31 lines) | stat: -rwxr-xr-x 973 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
#!/usr/bin/env python3

"""setuptools/wheel/PyPI version of the aeidon package."""

import shutil

from setup import get_aeidon_version
from setuptools import find_packages
from setuptools import setup

# Copy data files to the aeidon package, so they can be included.
shutil.copytree("data/headers", "aeidon/data/headers")
shutil.copytree("data/patterns", "aeidon/data/patterns")

setup(
    name="aeidon",
    version=get_aeidon_version(),
    author="Osmo Salomaa",
    author_email="otsaloma@iki.fi",
    description="Reading, writing and manipulating text-based subtitle files",
    long_description=open("README.aeidon.md", "r").read(),
    long_description_content_type="text/markdown",
    url="https://github.com/otsaloma/gaupol",
    license="GPL",
    packages=find_packages(exclude=["gaupol*", "*.test"]),
    package_data={"aeidon": ["data/*/*"]},
    python_requires=">=3.5.0",
    install_requires=["charset-normalizer>2.0"],
)

shutil.rmtree("aeidon/data")