-
-
Notifications
You must be signed in to change notification settings - Fork 34
/
setup-aeidon.py
executable file
·34 lines (27 loc) · 1 KB
/
setup-aeidon.py
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
#!/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")
with open("README.aeidon.md", "r") as f:
long_description = f.read()
setup(
name="aeidon",
version=get_aeidon_version(),
author="Osmo Salomaa",
author_email="[email protected]",
description="Reading, writing and manipulating text-based subtitle files",
long_description=long_description,
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")