Skip to content

Commit

Permalink
chore: Switch to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
Erik Cederstrand committed Dec 12, 2023
1 parent b6e4b1c commit c11e794
Show file tree
Hide file tree
Showing 4 changed files with 78 additions and 87 deletions.
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ include MANIFEST.in
include LICENSE
include CHANGELOG.md
include README.md
exclude tests/*
77 changes: 77 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,80 @@
# Release notes:
# * Install pdoc3, wheel, twine
# * Bump version in exchangelib/__init__.py
# * Bump version in CHANGELOG.md
# * Generate documentation:
# rm -r docs/exchangelib && pdoc3 --html exchangelib -o docs --force && pre-commit run end-of-file-fixer
# * Commit and push changes
# * Build package:
# rm -rf build dist exchangelib.egg-info && python -m build
# * Push to PyPI:
# twine upload dist/*
# * Create release on GitHub

[project]
name = "exchangelib"
dynamic = ["version"]
description = "Client for Microsoft Exchange Web Services (EWS)"
readme = {file = "README.md", content-type = "text/markdown"}
requires-python = ">=3.8"
license = {text = "BSD-2-Clause"}
keywords = [
"ews",
"exchange",
"autodiscover",
"microsoft",
"outlook",
"exchange-web-services",
"o365",
"office365",
]
authors = [
{name = "Erik Cederstrand", email = "[email protected]"}
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Topic :: Communications",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 3",
]
dependencies = [
'backports.zoneinfo; python_version < "3.9"',
"cached_property",
"defusedxml >= 0.6.0",
"dnspython >= 2.2.0",
"isodate",
"lxml>3.0",
"oauthlib",
"pygments",
"requests >= 2.31.0",
"requests_ntlm >= 0.2.0",
"requests_oauthlib",
"tzdata",
"tzlocal",
]

[project.urls]
Homepage = "https://github.com/ecederstrand/exchangelib"
Issues = "https://github.com/ecederstrand/exchangelib/issues"
Documentation = "https://ecederstrand.github.io/exchangelib/"
Repository = "https://github.com/ecederstrand/exchangelib.git"
Changelog = "https://github.com/ecederstrand/exchangelib/blob/master/CHANGELOG.md"

[project.optional-dependencies]
kerberos = ["requests_gssapi"]
sspi = ["requests_negotiate_sspi"]
complete = ["requests_gssapi", "requests_negotiate_sspi"]

[tool.setuptools.dynamic]
version = {attr = "exchangelib.__version__"}

[bdist_wheel]
universal = 1

[tool.flake8]
ignore = ["E203", "W503"]
max-line-length = 120

[tool.black]
line-length = 120

Expand Down
9 changes: 0 additions & 9 deletions setup.cfg

This file was deleted.

78 changes: 0 additions & 78 deletions setup.py

This file was deleted.

0 comments on commit c11e794

Please sign in to comment.