Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

ENH: use pyproject.toml #618

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 9 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
6 changes: 3 additions & 3 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ current_version = 0.9.2
commit = True
tag = True

[bumpversion:file:setup.py]
search = VERSION = "{current_version}"
replace = VERSION = "{new_version}"
[bumpversion:file:pyproject.toml]
search = version = "{current_version}"
search = version = "{new_version}"

[bumpversion:file:mapie/_version.py]
search = __version__ = "{current_version}"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ jobs:
- name: Install build dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
pip install setuptools wheel twine build
- name: Build package
run: python setup.py sdist bdist_wheel
run: python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
Expand Down
1 change: 1 addition & 0 deletions AUTHORS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,5 @@ Contributors
* Leonardo Garma <[email protected]>
* Mohammed Jawhar <[email protected]>
* Syed Affan <[email protected]>
* Cyprien Bertran <[email protected]>
To be continued ...
4 changes: 0 additions & 4 deletions MANIFEST.in

This file was deleted.

2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ clean-doc:
$(MAKE) clean -C doc

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

clean-build:
rm -rf build dist MAPIE.egg-info
Expand Down
5 changes: 3 additions & 2 deletions environment.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ channels:
- conda-forge
dependencies:
- bump2version=1.0.1
- build
- flake8=4.0.1
- ipykernel=6.9.0
- jupyter=1.0.0
Expand All @@ -18,5 +19,5 @@ dependencies:
- sphinx=4.3.2
- sphinx-gallery=0.10.1
- sphinx_rtd_theme=1.0.0
- twine=3.7.1
- wheel=0.38.1
- twine
- wheel
55 changes: 55 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
[build-system]
requires = [
"setuptools"
]
build-backend = "setuptools.build_meta"

[project]
name = "MAPIE"
version = "0.9.3-alpha1"
description = "A scikit-learn-compatible module for estimating prediction intervals."
readme = "README.rst"
license = {file = "LICENSE"}
maintainers = [
{name = "Valentin Laurent", email = "[email protected]"},
{name = "Thibault Cordier", email = "[email protected]"},
{name = "Louis Lacombe", email = "[email protected]"},
{name = "Vincent Blot", email = "[email protected]"},
]
requires-python = ">=3.7"
dependencies = [
"scikit-learn<1.6.0",
"scipy",
"numpy>=1.21",
"packaging"
]
classifiers = [
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"License :: OSI Approved",
"Topic :: Software Development",
"Topic :: Scientific/Engineering",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Operating System :: Unix",
"Operating System :: MacOS",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11"
]

[project.urls]
Homepage = "https://github.com/scikit-learn-contrib/MAPIE"
Documentation = "https://mapie.readthedocs.io/en/latest/"
Repository = "https://github.com/scikit-learn-contrib/MAPIE"
Issues = "https://github.com/scikit-learn-contrib/MAPIE/issues"
Changelog = "https://github.com/scikit-learn-contrib/MAPIE/releases"
DOWNLOAD = "https://pypi.org/project/MAPIE/#files"

[tool.setuptools]
include-package-data = true

[tool.setuptools.packages.find]
include = ["mapie", "mapie.*"]
5 changes: 3 additions & 2 deletions requirements.dev.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
bump2version==1.0.1
build
flake8==4.0.1
ipykernel==6.9.0
jupyter==1.0.0
Expand All @@ -12,5 +13,5 @@ scikit-learn<1.6.0
sphinx==4.3.2
sphinx-gallery==0.10.1
sphinx_rtd_theme==1.0.0
twine==3.7.1
wheel==0.38.1
twine
wheel
71 changes: 0 additions & 71 deletions setup.py

This file was deleted.

Loading