Skip to content

Commit

Permalink
Merge pull request #4 from Zeitsperre/packaging
Browse files Browse the repository at this point in the history
Adjust expected dependencies and more accurate license classifers
  • Loading branch information
yrobink authored Mar 27, 2023
2 parents e9654a1 + 1b7e343 commit 43fdf43
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion SBCK/__release.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@
description = "Statistical Bias Correction Kit"
author = "Yoann Robin"
author_email = "[email protected]"
license = "GNU-GPL3"
license = "GNU General Public License v3"
16 changes: 12 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def build_extensions(self):
if "description" in line:
description = line.replace("\n","").split("\"")[1]
if "license" in line:
license = line.replace("\n","").replace(" ","").replace("\"","").split("=")[-1]
license = line.replace("\n","").replace("\"","").split("=")[-1].strip()
if "author" in line and "author_email" not in line:
author = line.replace("\n","").split("\"")[1]
if "author_email" in line:
Expand All @@ -221,10 +221,18 @@ def build_extensions(self):
author = author,
author_email = author_email,
license = license,
platforms = [ "linux" , "macosx" ] ,
requires = [ "numpy" , "scipy" , "matplotlib" ],
platforms = [ "linux" , "macosx" ],
classifiers = [
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Natural Language :: English",
"Operating System :: MacOS :: MacOS X",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering :: Mathematics"
],
ext_modules = ext_modules,
install_requires = ['pybind11>=2.2'],
install_requires = [ "numpy" , "scipy" , "matplotlib" , "pybind11>=2.2" ],
cmdclass = {'build_ext': BuildExt},
zip_safe = False,
packages = list_packages,
Expand Down

0 comments on commit 43fdf43

Please sign in to comment.