-
Notifications
You must be signed in to change notification settings - Fork 6
/
setup.py
74 lines (65 loc) · 2.65 KB
/
setup.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#!/usr/bin/env python
# Pyctools-PAL - PAL coding and decoding with Pyctools.
# http://github.com/jim-easterbrook/pyctools-pal
# Copyright (C) 2014-20 Jim Easterbrook jim@jim-easterbrook.me.uk
#
# This program is free software: you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see
# <http://www.gnu.org/licenses/>.
import os
from setuptools import setup
import sys
# import Cython after distutils/setuptools
from Cython.Build import cythonize
from pyctools.setup import find_ext_modules, find_packages, write_init_files
version = '0.1.0'
# find packages
packages = find_packages()
# Make sure each package is a "pkgutil-style namespace package"
# See https://packaging.python.org/guides/packaging-namespace-packages/
write_init_files(packages)
# find Cython extensions
ext_modules = cythonize(find_ext_modules(), compiler_directives={
'language_level' : sys.version_info[0]})
with open('README.rst') as f:
long_description = f.read()
url = 'https://github.com/jim-easterbrook/pyctools-pal'
setup(name = 'pyctools.pal',
version = version,
author = 'Jim Easterbrook',
author_email = 'jim@jim-easterbrook.me.uk',
url = url,
description = 'PAL coding and decoding with Pyctools',
long_description = long_description,
classifiers = [
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Topic :: Multimedia :: Graphics',
'Topic :: Multimedia :: Video',
'Topic :: Scientific/Engineering :: Image Recognition',
'Topic :: Scientific/Engineering :: Visualization',
],
license = 'GNU GPL',
platforms = ['POSIX', 'MacOS'],
packages = packages,
ext_modules = ext_modules,
package_dir = {'' : 'src'},
install_requires = ['pyctools.core >= 0.4.1'],
zip_safe = False,
)