Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
pip install build twine
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ release-test: sdist
twine upload --repository-url https://test.pypi.org/legacy/ dist/*

sdist: clean
python setup.py sdist bdist_wheel
python -m build -d dist .
ls -l dist

test:
Expand Down
61 changes: 61 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
[build-system]
requires = ["setuptools >= 77.0"]
build-backend = "setuptools.build_meta"

[project]
name = "python-dotenv"
description = "Read key-value pairs from a .env file and set them as environment variables"
authors = [
{name = "Saurabh Kumar", email = "me+github@saurabh-kumar.com"},
]
license = "BSD-3-Clause"
keywords = [
"environment variables",
"deployments",
"settings",
"env",
"dotenv",
"configurations",
"python",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: PyPy",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"Operating System :: OS Independent",
"Topic :: System :: Systems Administration",
"Topic :: Utilities",
"Environment :: Web Environment",
]

requires-python = ">=3.9"

dynamic = ["version", "readme"]

[project.urls]
Source = "https://github.com/theskumar/python-dotenv"

[project.optional-dependencies]
cli = [
"click>=5.0",
]

[project.scripts]
dotenv = "dotenv.__main__:cli"

[tool.setuptools]
packages = ["dotenv"]
package-dir = {"" = "src"}
package-data = {dotenv = ["py.typed"]}

[tool.setuptools.dynamic]
version = {attr = "dotenv.version.__version__"}
readme = {file = ["README.md", "CHANGELOG.md"], content-type = "text/markdown"}
3 changes: 0 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ exclude = .tox,.git,docs,venv,.venv,build
check_untyped_defs = true
ignore_missing_imports = true

[metadata]
description_file = README.md

[tool:pytest]
testpaths = tests

Expand Down
71 changes: 0 additions & 71 deletions setup.py

This file was deleted.