Skip to content
This repository was archived by the owner on May 7, 2024. It is now read-only.

Commit 06692fc

Browse files
committed
Setup pyproject, python version file, and deps lockfiles
1 parent 34bcb1b commit 06692fc

File tree

5 files changed

+117
-1
lines changed

5 files changed

+117
-1
lines changed

.python-version

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.9.18

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ test: all
4242
@if pip show pytest-cov > /dev/null; \
4343
then \
4444
if [ ! -s .coverage ] ; then touch -t 202001011200 .coverage ; fi ; \
45-
if [ `find CloudFlare CloudFlare/tests cli4 examples setup.py setup.cfg -type f -depth 1 -name '*.py' -newer .coverage | wc -l` != 0 ]; \
45+
if [ `find CloudFlare CloudFlare/tests cli4 examples pyproject.toml -type f -depth 1 -name '*.py' -newer .coverage | wc -l` != 0 ]; \
4646
then \
4747
echo $(PYTEST) --cov=CloudFlare ; \
4848
$(PYTEST) --cov=CloudFlare ; \

pyproject.toml

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
[project]
2+
name = "cloudflare-cli4"
3+
version = "2.19.4"
4+
readme = "README.md"
5+
description = "Python wrapper for the Cloudflare v4 API"
6+
authors = [
7+
{ name = "Martin J. Levy", email = "[email protected]" },
8+
{ name = "Stainless Inc.", email = "[email protected]" },
9+
]
10+
classifiers = [
11+
"Development Status :: 5 - Production/Stable",
12+
"Intended Audience :: Developers",
13+
"Topic :: Software Development :: Libraries :: Python Modules",
14+
"License :: OSI Approved :: MIT License",
15+
"Programming Language :: Python :: 3",
16+
"Programming Language :: Python :: 3.6",
17+
"Programming Language :: Python :: 3.7",
18+
"Programming Language :: Python :: 3.8",
19+
"Programming Language :: Python :: 3.9",
20+
"Programming Language :: Python :: 3.10",
21+
"Programming Language :: Python :: 3.11",
22+
"Programming Language :: Python :: 3 :: Only",
23+
]
24+
25+
requires-python = ">3.6.0"
26+
license = { text = "MIT" }
27+
28+
keywords = ["cloudflare", "API", "wrapper"]
29+
dependencies = ["requests", "pyyaml", "jsonlines"]
30+
31+
[project.urls]
32+
documentation = "https://python-cloudflare.readthedocs.io/"
33+
api-documentation = "https://developers.cloudflare.com/api/"
34+
source-code = "https://github.com/cloudflare/python-cloudflare"
35+
36+
[project.scripts]
37+
cli4 = "cli4.__main__:main"
38+
39+
[project.data-files]
40+
"share/man/man1" = ["cli4/cli4.1"]
41+
42+
[build-system]
43+
requires = ["hatchling"]
44+
build-backend = "hatchling.build"
45+
46+
[tool.rye]
47+
managed = true
48+
dev-dependencies = [
49+
"pip",
50+
"pytz",
51+
"setuptools",
52+
"pytest",
53+
"pytest-cov",
54+
"pylint",
55+
]
56+
57+
[tool.hatch.metadata]
58+
allow-direct-references = true
59+
60+
[tool.hatch.build.targets.wheel]
61+
packages = ["cli4", "CloudFlare"]

requirements-dev.lock

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# generated by rye
2+
# use `rye lock` or `rye sync` to update this lockfile
3+
#
4+
# last locked with the following flags:
5+
# pre: false
6+
# features: []
7+
# all-features: true
8+
9+
-e file:.
10+
astroid==3.1.0
11+
attrs==23.2.0
12+
certifi==2024.2.2
13+
charset-normalizer==3.3.2
14+
coverage==7.5.0
15+
dill==0.3.8
16+
exceptiongroup==1.2.1
17+
idna==3.7
18+
iniconfig==2.0.0
19+
isort==5.13.2
20+
jsonlines==4.0.0
21+
mccabe==0.7.0
22+
packaging==24.0
23+
platformdirs==4.2.1
24+
pluggy==1.5.0
25+
pylint==3.1.0
26+
pytest==8.2.0
27+
pytest-cov==5.0.0
28+
pytz==2024.1
29+
pyyaml==6.0.1
30+
requests==2.31.0
31+
tomli==2.0.1
32+
tomlkit==0.12.4
33+
typing-extensions==4.11.0
34+
urllib3==2.2.1
35+
# The following packages are considered to be unsafe in a requirements file:
36+
pip==24.0
37+
setuptools==69.5.1

requirements.lock

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# generated by rye
2+
# use `rye lock` or `rye sync` to update this lockfile
3+
#
4+
# last locked with the following flags:
5+
# pre: false
6+
# features: []
7+
# all-features: true
8+
9+
-e file:.
10+
attrs==23.2.0
11+
certifi==2024.2.2
12+
charset-normalizer==3.3.2
13+
idna==3.7
14+
jsonlines==4.0.0
15+
pyyaml==6.0.1
16+
requests==2.31.0
17+
urllib3==2.2.1

0 commit comments

Comments
 (0)