diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0b51ce4..1be528a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,6 +13,6 @@ jobs: with: python-version: '3.x' - run: | - pip install setuptools wheel twine - python setup.py sdist bdist_wheel + pip install build wheel twine + python -m build twine upload dist/* diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..e734b0c --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,28 @@ +[project] +name = "projection-pursuit" +dynamic = ["version"] +description = "Scikit-learn estimators based on projection pursuit" +readme = "README.md" +authors = [ + {name = "Pavel Komarov", email = "pvlkmrv@gmail.com"} +] +dependencies = [ + 'pytest', + 'numpy', + 'scikit-learn', + 'matplotlib' +] +license = {text = "BSD License"} + +[tool.spin] +package = "skpp" + +[tool.setuptools.dynamic] +version = {attr = "skpp.__version__"} + +[project.urls] +Documentation = 'https://pavelkomarov.como/projection-pursuit' +Repository = 'https://github.com/pavelkomarov/projection-pursuit' + +[build-system] +requires = ["setuptools"] diff --git a/setup.py b/setup.py deleted file mode 100644 index 2230a49..0000000 --- a/setup.py +++ /dev/null @@ -1,20 +0,0 @@ - -from setuptools import setup, find_packages -import sys -sys.path.append("skpp") -import skpp - -with open('README.md') as readme: - long_description = readme.read() - -setup(name='projection-pursuit', - version=skpp.__version__, - description='Scikit-learn estimators based on projection pursuit.', - long_description=long_description, - long_description_content_type='text/markdown', - url='https://github.com/pavelkomarov/projection-pursuit', - author='Pavel Komarov', - license='BSD', - packages=[x for x in find_packages() if 'tests' not in x], - install_requires=['pytest', 'scikit-learn', 'numpy', 'matplotlib'], - author_email='pvlkmrv@gmail.com') diff --git a/skpp/__init__.py b/skpp/__init__.py index 2261d25..c7e2a7a 100644 --- a/skpp/__init__.py +++ b/skpp/__init__.py @@ -1,4 +1,4 @@ from .skpp import ProjectionPursuitRegressor, ProjectionPursuitClassifier -__version__ = 1.0 +__version__ = 1.1