Skip to content

Commit

Permalink
Use the build tool. #17
Browse files Browse the repository at this point in the history
  • Loading branch information
showa-yojyo committed Oct 18, 2024
1 parent 081d77a commit 1d8cdb6
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 7 deletions.
1 change: 1 addition & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ verify_ssl = true
name = "pypi"

[packages]
build = "*"

[dev-packages]

Expand Down
30 changes: 28 additions & 2 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,31 @@ For example:

OK (skipped=1)

### Build the Package

To build the package, install the required packages and run the build command
with Pipenv. The generated files will be in the `dist` directory. For example:

$ cd $REPOSITORY_ROOT
$ pipenv sync
To activate this project's virtualenv, run pipenv shell.
Alternatively, run a command inside the virtualenv with pipenv run.
Installing dependencies from Pipfile.lock (xxxxxx)...
All dependencies are now up-to-date!
$ pipenv run python -m build
* Creating isolated environment: venv+pip...
* Installing packages in isolated environment:
- hatchling
* Getting build dependencies for sdist...
* Building sdist...
* Building wheel from sdist
* Creating isolated environment: venv+pip...
* Installing packages in isolated environment:
- hatchling
* Getting build dependencies for wheel...
* Building wheel...
Successfully built dqutils-x.y.z.tar.gz and dqutils-x.y.z-py3-none-any.whl

## Usage

### View Texts
Expand Down
10 changes: 5 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,10 @@ Source = "https://github.com/showa-yojyo/dqutils/"

# Choosing a build backend:
# https://packaging.python.org/en/latest/tutorials/packaging-projects/#choosing-a-build-backend
# [build-system]
#
[build-system]

# A list of packages that are needed to build your package:
# requires = ["hatchling"]
#
requires = ["hatchling"]

# The name of the Python object that frontends will use to perform the build:
# build-backend = "hatchling.build"
build-backend = "hatchling.build"

0 comments on commit 1d8cdb6

Please sign in to comment.