Skip to content

Commit

Permalink
feat(project): migrate to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
syu-w committed Nov 29, 2023
1 parent f40dbbc commit 9f867e5
Show file tree
Hide file tree
Showing 11 changed files with 97 additions and 427 deletions.
3 changes: 2 additions & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ formats:
# and requirements required to build your docs
python:
install:
- requirements: requirements-doc.txt
- method: pip
path: .
extra_requirements:
- docs
94 changes: 92 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,17 +1,107 @@
[project]
name = "rockcraft"
description = "Create ROCKS"
dynamic = ["version", "readme"]

license = {file = "LICENSE"}
authors = [
{name = "Canonical Ltd.", email = "[email protected]"}
]

classifiers = [
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: MacOS :: MacOS X",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
]
requires-python = ">=3.10"
dependencies = [
"certifi==2023.7.22",
"charset-normalizer==3.3.1",
"craft-application==1.0.0",
"craft-archives==1.1.3",
"craft-cli==2.5.0",
"craft-parts==1.25.2",
"craft-providers==1.20.0",
"Deprecated==1.2.14",
"distro==1.8.0",
"httplib2==0.22.0",
"idna==3.4",
"importlib-metadata==6.8.0",
"launchpadlib==1.11.0",
"lazr.restfulclient==0.14.5",
"lazr.uri==1.0.6",
"oauthlib==3.2.2",
"overrides==7.4.0",
"packaging==23.2",
"platformdirs==3.11.0",
"pydantic==1.10.13",
"pydantic-yaml==0.11.2",
"pyparsing==3.1.1",
"pyxdg==0.28",
"PyYAML==6.0.1",
"requests==2.31.0",
"requests-unixsocket==0.3.0",
"six==1.16.0",
"spdx==2.5.1",
"spdx-lookup==0.3.3",
"tabulate==0.9.0",
"types-Deprecated==1.2.9.3",
"types-PyYAML==6.0.12.12",
"typing_extensions==4.8.0",
"urllib3==1.26.18",
"wadllib==1.3.6",
"wrapt==1.15.0",
"zipp==3.17.0",
]

[project.scripts]
rockcraft = "rockcraft.cli:run"

[project.urls]
documentation = "https://rockcraft.readthedocs.io/en/latest/"
source = "https://github.com/canonical/rockcraft.git"
issues = "https://github.com/canonical/rockcraft/issues"

[project.optional-dependencies]
dev = [
"build",
"coverage[toml]==7.3.2",
"pytest==7.4.3",
"pytest-check>=2.0",
"pytest-cov==4.1.0",
"pytest-mock==3.12.0",
"pytest-subprocess",
]
jammy-dev = [
"python-apt@https://launchpad.net/ubuntu/+archive/primary/+sourcefiles/python-apt/2.4.0ubuntu1/python-apt_2.4.0ubuntu1.tar.xz;sys_platform=='linux'"
]
lint = [
"black==23.11.0",
"codespell[toml]==2.2.6",
"ruff==0.1.6",
"yamllint==1.33.0"
]
types = [
"mypy[reports]==1.7.1",
"pyright==1.1.337",
"types-requests",
"types-setuptools",
"types-pyyaml",
"types-tabulate>=0.9.0.2",
]
docs = [
"furo==2023.9.10",
"sphinx>=7.1.2,<8",
"sphinx-autobuild==2021.3.14",
"sphinx-copybutton==0.5.2",
"sphinx-design==0.5.0",
"sphinx-pydantic==0.1.1",
"sphinx-toolbox==3.5.0",
"sphinx-lint==0.9.0",
]

[build-system]
requires = [
Expand Down
139 changes: 0 additions & 139 deletions requirements-dev.txt

This file was deleted.

78 changes: 0 additions & 78 deletions requirements-doc.txt

This file was deleted.

1 change: 0 additions & 1 deletion requirements-jammy.txt

This file was deleted.

37 changes: 0 additions & 37 deletions requirements.txt

This file was deleted.

Loading

0 comments on commit 9f867e5

Please sign in to comment.