From d0fb1cd7619ab352ffaa3343d8cffb36b977a824 Mon Sep 17 00:00:00 2001 From: Samuel Xavier Date: Wed, 11 Jun 2025 10:56:19 -0300 Subject: [PATCH 1/2] Added UV folders to .gitignore --- .gitignore | 61 +++++++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 53 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index 1e7c9032..2940379b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,36 +1,81 @@ -# Byte-compiled / optimized / DLL files +# UV virtual environment +.venv/ +.venv + +# UV cache and lock files +.uv/ +uv.lock + +# Python cache and compiled files __pycache__/ *.py[cod] - -# C extensions +*$py.class *.so # Distribution / packaging .Python -env/ -bin/ build/ develop-eggs/ dist/ +downloads/ eggs/ +.eggs/ +lib/ +lib64/ parts/ sdist/ var/ +wheels/ +share/python-wheels/ *.egg-info/ .installed.cfg *.egg +MANIFEST -# Installer logs -pip-log.txt -pip-delete-this-directory.txt +# PyInstaller +*.manifest +*.spec # Unit test / coverage reports htmlcov/ .tox/ +.nox/ .coverage +.coverage.* .cache nosetests.xml coverage.xml +*.cover +*.py,cover +.hypothesis/ +.pytest_cache/ +cover/ + +# Environments +.env +.venv +ENV/ +env/ +venv/ + +# IDE +.vscode/ +.idea/ +*.swp +*.swo +*~ + +# macOS +.DS_Store + +# Docs +docs/_build/ +site/ + + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt # Translations *.mo From 8e87164bd220d0f4072c7df36260c49d3e65318d Mon Sep 17 00:00:00 2001 From: Samuel Xavier Date: Wed, 11 Jun 2025 11:04:37 -0300 Subject: [PATCH 2/2] Add pyproject.toml for modern Python packaging --- pyproject.toml | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 pyproject.toml diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 00000000..c46c1aff --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,50 @@ +[build-system] +requires = ["setuptools>=69.0.3", "wheel"] +build-backend = "setuptools.build_meta" + +[project] +name = "nylas" +dynamic = ["version"] +description = "Python bindings for the Nylas API platform." +readme = "README.md" +license = {text = "MIT"} +authors = [ + {name = "Nylas Team", email = "support@nylas.com"} +] +keywords = ["inbox", "app", "appserver", "email", "nylas", "contacts", "calendar"] +requires-python = ">=3.8" +dependencies = [ + "requests[security]>=2.31.0", + "requests-toolbelt>=1.0.0", + "dataclasses-json>=0.5.9", + "typing_extensions>=4.7.1", +] + +[project.optional-dependencies] +test = [ + "pytest>=7.4.0", + "pytest-cov>=4.1.0", + "setuptools>=69.0.3", +] +docs = [ + "mkdocs>=1.5.2", + "mkdocstrings[python]>=0.22.0", + "mkdocs-material>=9.2.6", + "mkdocs-gen-files>=0.5.0", + "mkdocs-literate-nav>=0.6.0", +] +release = [ + "bumpversion>=0.6.0", + "twine>=4.0.2", +] + +[project.urls] +Homepage = "https://github.com/nylas/nylas-python" +Repository = "https://github.com/nylas/nylas-python" + +[tool.setuptools.dynamic] +version = {attr = "nylas._client_sdk_version.__VERSION__"} + +[tool.setuptools.packages.find] +where = ["."] +include = ["nylas*"]