Skip to content

Commit 40c95e6

Browse files
committed
move setup options to setup.cfg
1 parent 56d71e8 commit 40c95e6

File tree

2 files changed

+33
-27
lines changed

2 files changed

+33
-27
lines changed

setup.cfg

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
[metadata]
2+
name = pyapr
3+
author = Joel Jonsson, Bevan Cheeseman
4+
author_email = jonsson@mpi-cbg.de
5+
description = Python wrappers for LibAPR
6+
long_description = file: README.md
7+
long_description_content_type = text/markdown
8+
url = https://github.com/AdaptiveParticles/PyLibAPR
9+
license = Apache-2.0
10+
classifiers =
11+
Development Status :: 2 - Pre-Alpha
12+
Intended Audience :: Developers
13+
License :: OSI Approved :: Apache Software License
14+
Programming Language :: Python ::
15+
Programming Language :: Python :: 3.7
16+
Programming Language :: Python :: 3.8
17+
Programming Language :: Python :: 3.9
18+
19+
[options]
20+
zip_safe = False
21+
packages = find:
22+
install_requires =
23+
numpy
24+
scikit-image
25+
PyQt5
26+
pyqtgraph
27+
tifffile
28+
matplotlib

setup.py

Lines changed: 5 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
import os
33
import sys
44
import subprocess
5-
from setuptools import setup, find_packages, Extension
5+
from setuptools import setup, Extension
66
from setuptools.command.build_ext import build_ext
77

8+
89
# Convert distutils Windows platform specifiers to CMake -A arguments
910
PLAT_TO_CMAKE = {
1011
"win32": "Win32",
@@ -80,34 +81,11 @@ def build_extension(self, ext):
8081
["cmake", "--build", ".", "--parallel", "4"] + build_args, cwd=self.build_temp
8182
)
8283

84+
85+
8386
setup(
84-
name='pyapr',
8587
ext_modules=[CMakeExtension('_pyaprwrapper')],
8688
cmdclass={
8789
'build_ext': CMakeBuild,
88-
},
89-
packages=find_packages(),
90-
install_requires=[
91-
'numpy',
92-
'scikit-image',
93-
'PyQt5',
94-
'pyqtgraph',
95-
'matplotlib'
96-
],
97-
description='Python wrappers for LibAPR',
98-
long_description="long_description",
99-
url='https://github.com/joeljonsson/PyLibAPR',
100-
author='Joel Jonsson, Bevan Cheeseman',
101-
author_email='jonsson@mpi-cbg.de',
102-
license='Apache-2.0',
103-
classifiers=[
104-
'Development Status :: 1 - Planning',
105-
'Intended Audience :: Developers',
106-
'License :: OSI Approved :: Apache Software License',
107-
'Programming Language :: Python :: 3.7',
108-
'Programming Language :: Python :: 3.8',
109-
'Programming Language :: Python :: 3.9',
110-
],
111-
keywords='LibAPR, PyLibAPR, APR',
112-
zip_safe=False
90+
}
11391
)

0 commit comments

Comments
 (0)