Skip to content

Commit

Permalink
Use pyproject.toml for setuptools config (#55)
Browse files Browse the repository at this point in the history
Use `pyproject.toml` for setuptools config
  • Loading branch information
michael-the1 authored Jun 5, 2024
1 parent 1e877cd commit 2be9826
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 44 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ venv/
# Python packaging
build/
dist/
src/diepvries.egg-info/
*.egg-info/

# Python tools
.tox/
Expand Down
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,14 @@ source ../diepvries-venv/bin/activate
Once your virtual environment is active, run:

```shell
python3 setup.py develop
python3 -m pip install -e .
```

to install this library as a development package.

In this environment, you can now run any script using this framework.

The easiest way to run the test suite and the linters is to install **tox**:
The easiest way to run the test suite and the linters is to install **tox**:

```shell
pip install -U tox
Expand Down
2 changes: 1 addition & 1 deletion doc/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ not for regular use.
cd diepvries
python3 -m venv venv
source ./venv/bin/activate
python3 setup.py develop
python3 -m pip install -e .
28 changes: 27 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,33 @@
[build-system]
requires = ["setuptools>=42", "wheel", "setuptools_scm[toml]~=6.0"]
requires = ["setuptools>=64", "wheel", "setuptools_scm[toml]>=8"]
build-backend = "setuptools.build_meta"

[project]
name = "diepvries"
dynamic = ["version"]
description = "diepvries - Picnic Data Vault framework"
readme = {file = "README.md", content-type = "text/markdown"}
keywords = ["data vault"]
license = {file = "LICENSE"}
authors = [{name = "Picnic Technologies"}]
classifiers = [
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
]
dependencies = ["snowflake-connector-python[secure-local-storage]~=3.0"]
requires-python = ">= 3.8"

[project.optional-dependencies]
test = ["pytest~=6.2"]
dev = ["pytest~=6.2", "tox", "pre-commit"]

[project.urls]
Documentation = "https://diepvries.picnic.tech/"
"Source Code" = "https://github.com/PicnicSupermarket/diepvries"
"Issue Tracker" = "https://github.com/PicnicSupermarket/diepvries/issues"

[tool.setuptools_scm]
tag_regex = "^diepvries/(?P<version>[0-9\\.]+)$" # backslash needs to be escaped in TOML
local_scheme = "no-local-version"
30 changes: 0 additions & 30 deletions setup.cfg

This file was deleted.

9 changes: 0 additions & 9 deletions setup.py

This file was deleted.

0 comments on commit 2be9826

Please sign in to comment.