Skip to content

Commit 1506f48

Browse files
committed
fix: use build package for build process
1 parent e916406 commit 1506f48

File tree

6 files changed

+27
-35
lines changed

6 files changed

+27
-35
lines changed

.gitignore

+16-23
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,25 @@
1-
.env
1+
._*
2+
.AppleDouble
23
.cache
4+
.coverage
35
.DS_Store
4-
.AppleDouble
6+
.env
7+
.env-override
8+
.idea
59
.LSOverride
6-
Icon
7-
._*
810
.Spotlight-V100
9-
.Trashes
10-
11-
# virtual environment
12-
venv
13-
14-
/build
15-
/dist
16-
/MANIFEST
17-
/easypost.egg-info
18-
*.pyc
19-
*.egg
2011
.tox
12+
.Trashes
13+
.virtualenv
2114
*.class
22-
15+
*.egg
16+
*.egg-info
17+
*.pyc
2318
*.sublime-*
24-
19+
/MANIFEST
20+
dist
21+
docs/build/
22+
Icon
2523
test
24+
venv
2625
virtualenv
27-
.virtualenv
28-
.idea
29-
.coverage
30-
.env-override
31-
/venv*
32-
docs/build/

.isort.cfg

-9
This file was deleted.

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ black-check:
1818

1919
## build - Builds the project in preparation for release
2020
build:
21-
$(VIRTUAL_BIN)/python setup.py sdist bdist_wheel
21+
$(VIRTUAL_BIN)/python -m build
2222

2323
## clean - Remove the virtual environment and clear out .pyc files
2424
clean:

pyproject.toml

+8
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,11 @@ line-length = 120
33

44
[tool.isort]
55
profile = "black"
6+
line_length = 120
7+
indent = 4
8+
force_grid_wrap = 2
9+
multi_line_output = 3
10+
sections = "FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER"
11+
lines_after_imports = 2
12+
include_trailing_comma = true
13+
use_parentheses = true

setup.cfg

-2
This file was deleted.

setup.py

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
DEV_REQUIREMENTS = [
1313
"bandit==1.7.1", # Bandit 1.7.2 drops support for Python 3.6
1414
"black==22.*",
15+
"build==0.8.*",
1516
"coveralls == 3.*",
1617
"flake8==5.*",
1718
"isort==5.*",
@@ -39,6 +40,7 @@
3940
url="https://easypost.com/",
4041
packages=find_packages(
4142
exclude=[
43+
"docs",
4244
"examples",
4345
"tests",
4446
]

0 commit comments

Comments
 (0)