Skip to content

Commit

Permalink
Migrate from setup.py to pyproject.toml.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kami committed Aug 2, 2023
1 parent e26f012 commit 9d15c48
Show file tree
Hide file tree
Showing 4 changed files with 95 additions and 289 deletions.
23 changes: 7 additions & 16 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
global-exclude *.py[cod]
global-exclude .pytest_cache
include LICENSE
include NOTICE
include example_*.py
Expand All @@ -8,21 +10,10 @@ include pyproject.toml
include requirements-tests.txt
include requirements-lint.txt
include libcloud/data/pricing.json
prune libcloud/test/secrets.py
prune requirements-rtd.txt
include demos/*
include scripts/check_file_names.sh
include libcloud/test/*.py
include libcloud/test/pricing_test.json
include libcloud/test/secrets.py-dist
include libcloud/test/common/*.py
include libcloud/test/compute/*.py
include libcloud/test/storage/*.py
include libcloud/test/loadbalancer/*.py
include libcloud/test/dns/*.py
include libcloud/test/common/fixtures/*/*
include libcloud/test/compute/fixtures/*/*
include libcloud/test/compute/fixtures/*/*/*
include libcloud/test/storage/fixtures/*/*
include libcloud/test/loadbalancer/fixtures/*/*
include libcloud/test/dns/fixtures/*/*
recursive-exclude libcloud/test secrets.py
prune libcloud/test/secrets.py
prune requirements-rtd.txt
prune dist
prune build
87 changes: 85 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,93 @@
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

[build-system]
requires = ["setuptools~=66.1", "wheel~=0.37.1"]
requires = [
"setuptools~=66.1",
"wheel~=0.37.1"
]
build-backend = "setuptools.build_meta"

[project]
name = "apache-libcloud"
description = "A standard Python library that abstracts away differences among multiple cloud provider APIs. For more information and documentation, please see https://libcloud.apache.org"
authors = [
{name = "Apache Software Foundation", email = "[email protected]"},
]
keywords = [
"cloud",
"libcloud",
"apache",
"aws",
"ec2",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Software Development :: Libraries :: Python Modules",
]
requires-python = ">=3.7"
dependencies = [
"requests>=2.26.0",
]
license = {text = "Apache License (2.0)"}
dynamic = ["version", "readme"]

[project.urls]
homepage = "https://libcloud.apache.org"
documentation = "https://libcloud.readthedocs.io"
source = "https://github.com/apache/libcloud"
issues = "https://github.com/apache/libcloud/issues"
changelog = "https://github.com/apache/libcloud/blob/trunk/CHANGES.rst"


[project.optional-dependencies]
test = [
"pytest",
"requests_mock",
]

[tool.setuptools.packages.find]
where = ["./"]
include = ["libcloud"]

[tool.setuptools]
exclude-package-data = { "*" = ["secrets.py"], "libcloud.test" = ["secrets.py"] }

[tool.setuptools.dynamic]
version = {attr = "libcloud.__version__"}
readme = {file = ["README.rst"]}


[tool.black]
line_length = 100
target_version = ['py37', 'py38', 'py39', 'py310']
target_version = ['py37', 'py38', 'py39', 'py310', 'py311']
include = '\.pyi?$'
extended_exclude = '''
(
Expand Down
Loading

0 comments on commit 9d15c48

Please sign in to comment.