Skip to content

Commit ee41164

Browse files
authored
[Build] Added UV folders to .gitignore + created pyproject.toml (#420)
* Added UV folders to .gitignore * Add pyproject.toml for modern Python packaging
1 parent 148af5c commit ee41164

File tree

2 files changed

+103
-8
lines changed

2 files changed

+103
-8
lines changed

.gitignore

Lines changed: 53 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,81 @@
1-
# Byte-compiled / optimized / DLL files
1+
# UV virtual environment
2+
.venv/
3+
.venv
4+
5+
# UV cache and lock files
6+
.uv/
7+
uv.lock
8+
9+
# Python cache and compiled files
210
__pycache__/
311
*.py[cod]
4-
5-
# C extensions
12+
*$py.class
613
*.so
714

815
# Distribution / packaging
916
.Python
10-
env/
11-
bin/
1217
build/
1318
develop-eggs/
1419
dist/
20+
downloads/
1521
eggs/
22+
.eggs/
23+
lib/
24+
lib64/
1625
parts/
1726
sdist/
1827
var/
28+
wheels/
29+
share/python-wheels/
1930
*.egg-info/
2031
.installed.cfg
2132
*.egg
33+
MANIFEST
2234

23-
# Installer logs
24-
pip-log.txt
25-
pip-delete-this-directory.txt
35+
# PyInstaller
36+
*.manifest
37+
*.spec
2638

2739
# Unit test / coverage reports
2840
htmlcov/
2941
.tox/
42+
.nox/
3043
.coverage
44+
.coverage.*
3145
.cache
3246
nosetests.xml
3347
coverage.xml
48+
*.cover
49+
*.py,cover
50+
.hypothesis/
51+
.pytest_cache/
52+
cover/
53+
54+
# Environments
55+
.env
56+
.venv
57+
ENV/
58+
env/
59+
venv/
60+
61+
# IDE
62+
.vscode/
63+
.idea/
64+
*.swp
65+
*.swo
66+
*~
67+
68+
# macOS
69+
.DS_Store
70+
71+
# Docs
72+
docs/_build/
73+
site/
74+
75+
76+
# Installer logs
77+
pip-log.txt
78+
pip-delete-this-directory.txt
3479

3580
# Translations
3681
*.mo

pyproject.toml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
[build-system]
2+
requires = ["setuptools>=69.0.3", "wheel"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "nylas"
7+
dynamic = ["version"]
8+
description = "Python bindings for the Nylas API platform."
9+
readme = "README.md"
10+
license = {text = "MIT"}
11+
authors = [
12+
{name = "Nylas Team", email = "support@nylas.com"}
13+
]
14+
keywords = ["inbox", "app", "appserver", "email", "nylas", "contacts", "calendar"]
15+
requires-python = ">=3.8"
16+
dependencies = [
17+
"requests[security]>=2.31.0",
18+
"requests-toolbelt>=1.0.0",
19+
"dataclasses-json>=0.5.9",
20+
"typing_extensions>=4.7.1",
21+
]
22+
23+
[project.optional-dependencies]
24+
test = [
25+
"pytest>=7.4.0",
26+
"pytest-cov>=4.1.0",
27+
"setuptools>=69.0.3",
28+
]
29+
docs = [
30+
"mkdocs>=1.5.2",
31+
"mkdocstrings[python]>=0.22.0",
32+
"mkdocs-material>=9.2.6",
33+
"mkdocs-gen-files>=0.5.0",
34+
"mkdocs-literate-nav>=0.6.0",
35+
]
36+
release = [
37+
"bumpversion>=0.6.0",
38+
"twine>=4.0.2",
39+
]
40+
41+
[project.urls]
42+
Homepage = "https://github.com/nylas/nylas-python"
43+
Repository = "https://github.com/nylas/nylas-python"
44+
45+
[tool.setuptools.dynamic]
46+
version = {attr = "nylas._client_sdk_version.__VERSION__"}
47+
48+
[tool.setuptools.packages.find]
49+
where = ["."]
50+
include = ["nylas*"]

0 commit comments

Comments
 (0)