Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Migrate the metadata into PEP 621-compliant pyproject.toml. #108

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ sphinx-notebooks:
cp -r notebooks/*_files docs/notebooks/notebooks/

wheel:
python setup.py bdist_wheel --universal
python -m build -w

sdist:
python setup.py sdist
python -m build -s

upload:
python setup.py sdist bdist_wheel upload
upload: wheel sdist
twine upload ./dist/*
53 changes: 53 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
[build-system]
requires = ["setuptools>=61.2"]
build-backend = "setuptools.build_meta"

[project]
name = "Optunity"
version = "1.1.1"
authors = [{name = "Marc Claesen", email = "marc.claesen@esat.kuleuven.be"}]
license = {text = "LICENSE.txt"}
description = "Optimization routines for hyperparameter tuning."
keywords = [
"machine learning",
"parameter tuning",
"hyperparameter optimization",
"meta-optimization",
"direct search",
"model selection",
"particle swarm optimization",
]
readme = "README.rst"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"Programming Language :: Python",
"License :: OSI Approved :: BSD License",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Scientific/Engineering :: Information Analysis",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.2",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
]

[project.urls]
Homepage = "http://www.optunity.net"
"Source Code" = "https://github.com/claesenm/optunity"
"Bug Tracker" = "https://github.com/claesenm/optunity/issues"

[tool.setuptools]
packages = [
"optunity",
"optunity.tests",
"optunity.solvers",
]
platforms = ["any"]
include-package-data = false

[tool.distutils.bdist_wheel]
universal = 1
37 changes: 3 additions & 34 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,35 +1,4 @@
from distutils.core import setup
import setuptools
from setuptools import setup

setup(
name = 'Optunity',
version = '1.1.1',
author = 'Marc Claesen',
author_email = 'marc.claesen@esat.kuleuven.be',
packages = ['optunity', 'optunity.tests', 'optunity.solvers'],
scripts = [],
url = 'http://www.optunity.net',
license = 'LICENSE.txt',
description = 'Optimization routines for hyperparameter tuning.',
long_description = open('README.rst').read(),
classifiers = ['Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Intended Audience :: Education',
'Intended Audience :: Science/Research',
'Programming Language :: Python',
'License :: OSI Approved :: BSD License',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
'Topic :: Scientific/Engineering :: Information Analysis',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4'
],
platforms = ['any'],
keywords = ['machine learning', 'parameter tuning',
'hyperparameter optimization', 'meta-optimization',
'direct search', 'model selection', 'particle swarm optimization'
],
)
if __name__ == "__main__":
setup()