Skip to content

Commit

Permalink
chore: migrate build from setup.cfg to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
lengau committed Nov 21, 2023
1 parent 7812b5e commit 14e171d
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 83 deletions.
22 changes: 20 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
[project]
name = "craft-store"
description="Store bindings for Snaps and Charms"
dynamic = ["version", "readme"]
author = "Canonical Ltd."
author_email = "snapcraft@lists.snapcraft.io"
license = "GNU Lesser General Public License v3 (LGPLv3)"
license-files = ["LICENSE"]
dependencies = [
"keyring>=23.0",
"overrides>=7.0.0",
"requests>=2.26.0",
"requests>=2.27.0",
"requests-toolbelt>=1.0.0",
"macaroonbakery>=1.3.0",
"pydantic>=1.10,<2.0",
]
classifiers = [
"Development Status :: 1 - Planning",
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)",
"Operating System :: MacOS :: MacOS X",
Expand All @@ -22,6 +27,12 @@ classifiers = [
"Programming Language :: Python :: 3.11",
]
requires-python = ">=3.8"
include-package-data = true

[project.urls]
"Documentation" = "https://craft-store.readthedocs.io/en/latest/"
"Source" = "https://github.com/canonical/craft-store"
"Issues" = "https://github.com/canonical/craft-store/issues"

[project.optional-dependencies]
dev = [
Expand Down Expand Up @@ -68,6 +79,10 @@ docs = [
"sphinx-rtd-theme",
"sphinx-tabs==3.4.1",
]
release = [
"twine",
"wheel",
]

[build-system]
requires = [
Expand All @@ -76,6 +91,9 @@ requires = [
]
build-backend = "setuptools.build_meta"

[tool.setuptools]
package-data = {"craft_store" = ["py.typed"]}

[tool.setuptools.dynamic]
readme = {file = "README.rst"}

Expand Down
81 changes: 0 additions & 81 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,84 +1,3 @@
[metadata]
name = craft-store
version = attr: craft_store.__version__
description="Store bindings for Snaps and Charms"
long_description = file: README.md
url = https://github.com/canonical/craft-store
project_urls =
Documentation = https://craft-store.readthedocs.io/en/latest/
Source = https://github.com/canonical/craft-store.git
Issues = https://github.com/canonical/craft-store/issues
author = Canonical Ltd.
author_email = snapcraft@lists.snapcraft.io
license = GNU Lesser General Public License v3 (LGPLv3)
license_files = LICENSE
classifiers =
Development Status :: 2 - Pre-Alpha
Intended Audience :: Developers
License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)
Operating System :: MacOS :: MacOS X
Operating System :: POSIX :: Linux
Programming Language :: Python :: 3
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10

[options]
python_requires = >= 3.8
include_package_data = True
packages = find:
zip_safe = False
install_requires =
pydantic>=1.10,<2.0
keyring>=23.0
macaroonbakery
overrides
requests>=2.27
requests_toolbelt

[options.package_data]
craft_store = py.typed

[options.extras_require]
doc =
sphinx
sphinx-autodoc-typehints
sphinx-pydantic
sphinx-rtd-theme
release =
twine
wheel
test =
coverage
black
codespell
flake8
isort
mypy
pydocstyle
pylint
pylint-fixme-info
pylint-pytest
pytest
pytest-check
pytest-mock
pytest-subprocess
pytest-timeout>=2.0
tox
types-requests
types-setuptools
types-pyyaml
PyYAML
dev =
autoflake
%(release)s
%(test)s

[options.packages.find]
exclude =
tests
tests.*

[bdist_wheel]
universal = 1

Expand Down

0 comments on commit 14e171d

Please sign in to comment.