Skip to content

Commit

Permalink
Merge pull request #13 from a-reich/pkging
Browse files Browse the repository at this point in the history
moving build config to just pyproject
  • Loading branch information
a-reich authored Jun 7, 2022
2 parents 046e9bf + 8fee77f commit fcfe0f5
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 38 deletions.
24 changes: 23 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,31 @@
[build-system]
# These are the assumed default build requirements from pip:
# https://pip.pypa.io/en/stable/reference/pip/#pep-517-and-518-support
requires = ["setuptools>=42", "wheel", "setuptools_scm[toml]>=3.4"]
requires = ["setuptools>=61", "wheel", "setuptools_scm[toml]>=3.4"]
build-backend = "setuptools.build_meta"

[project]
name = "versioned-pickle"
description = "A small utility package for adding environment metadata to pickles and warning on mismatch when loaded"
readme = "README.md"
authors = [{name="Asaf Reich", email="[email protected]"}]
dependencies = [
'importlib-metadata>=4.4;python_version<"3.10"',
"typing-extensions>=3.10"
]

urls = {homepage="https://github.com/a-reich/versioned_pickle"}
license = {text = "MIT License"}
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
requires-python = ">=3.8"
dynamic = ["version"]
[project.optional-dependencies]
dev = ["pytest", "pytest-mock", "pytest-cov", "requests"]

[tool.setuptools_scm]
local_scheme = "dirty-tag"

Expand Down
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# just an empty setuptools config to get editable installs working until setuptools supports PEP 660
# see https://stackoverflow.com/questions/69711606/how-to-install-a-package-using-pip-in-editable-mode-with-pyproject-toml/71946741#71946741
37 changes: 0 additions & 37 deletions setup.py

This file was deleted.

0 comments on commit fcfe0f5

Please sign in to comment.