|
1 | 1 |
|
2 |
| -import os |
3 |
| -import sys |
| 2 | +from pathlib import Path |
4 | 3 | from setuptools import setup, find_packages
|
5 | 4 | from setuptools_rust import Binding, RustExtension
|
6 | 5 |
|
7 |
| -import subprocess |
8 |
| -from distutils.command.build import build as build_orig |
9 |
| -import distutils.sysconfig |
10 | 6 |
|
| 7 | +VERSION_FILE = Path(__file__).parent / "rle" / '_version.py' |
| 8 | +with open(VERSION_FILE) as f: |
| 9 | + exec(f.read()) |
11 | 10 |
|
12 |
| - |
13 |
| -VERSION_FILE = os.path.join('rle', '_version.py') |
14 |
| -with open(VERSION_FILE) as fp: |
15 |
| - exec(fp.read()) |
16 |
| - |
17 |
| -with open('README.md', 'r') as fp: |
18 |
| - long_description = fp.read() |
| 11 | +with open('README.md', 'r') as f: |
| 12 | + long_description = f.read() |
19 | 13 |
|
20 | 14 | setup(
|
21 | 15 | name = 'pylibjpeg-rle',
|
|
39 | 33 | "Intended Audience :: Developers",
|
40 | 34 | "Intended Audience :: Healthcare Industry",
|
41 | 35 | "Intended Audience :: Science/Research",
|
42 |
| - #"Development Status :: 3 - Alpha", |
43 |
| - #"Development Status :: 4 - Beta", |
44 | 36 | "Development Status :: 5 - Production/Stable",
|
45 | 37 | "Natural Language :: English",
|
46 | 38 | "Programming Language :: Rust",
|
47 |
| - "Programming Language :: Python :: 3.6", |
48 | 39 | "Programming Language :: Python :: 3.7",
|
49 | 40 | "Programming Language :: Python :: 3.8",
|
50 | 41 | "Programming Language :: Python :: 3.9",
|
| 42 | + "Programming Language :: Python :: 3.10", |
51 | 43 | "Operating System :: MacOS :: MacOS X",
|
52 | 44 | "Operating System :: POSIX :: Linux",
|
53 | 45 | "Operating System :: Microsoft :: Windows",
|
|
58 | 50 | package_data = {'': ['*.txt', '*.rs', '*.pyx']},
|
59 | 51 | include_package_data = True,
|
60 | 52 | zip_safe = False,
|
61 |
| - python_requires = ">=3.6", |
| 53 | + python_requires = ">=3.7", |
62 | 54 | setup_requires = ['setuptools>=18.0', 'setuptools-rust'],
|
63 | 55 | install_requires = ["numpy"],
|
64 | 56 | extras_require = {
|
|
0 commit comments