commit | 3001fc5017b965e72c34a65bdc4b635183697509 | [log] [tgz] |
---|---|---|
author | Greg Stein <gstein@gmail.com> | Wed May 21 08:22:07 2025 -0500 |
committer | GitHub <noreply@github.com> | Wed May 21 08:22:07 2025 -0500 |
tree | 000e3c831f234b4d0dc04f9229cdf6fcd0657153 | |
parent | 545a6053690a48218ea1978411c66027651e0a40 [diff] | |
parent | 440f97f68b81f3fc459b0b17757499fcf5137764 [diff] |
Merge pull request #29 from apache/wells/replace_crypt Replace `crypt` library with `passlib`. Salt the password creation.
This Python library contains features commonly used at the Apache Software Foundation.
(For asfpy 0.37 and below, look at our old Subversion repository)
Prerequisites:
poetry
: install e.g. with pipx pipx install poetry
Building the package:
$ poetry build
Running the tests:
$ poetry run pytest
Create and activate a virtual environment and then install asfpy
using pip:
$ pip install "asfpy"
Note: Adding [ldap]
or [aioldap]
extras will install optional dependencies for LDAP support that will require additional system dependencies:
$ pip install "asfpy[aioldap]"
Create an account on https://pypi.org/, then add a token with an “all projects” scope.
Configure your credentials for the pypi
repository:
$ poetry config pypi-token.pypi <your-token>
Finally publish to pypi.org
:
$ make publish
See this guide for more details on working with PyPi.
Please also create a tag for the release.
Create an account on https://test.pypi.org/, then add a token with an “all projects” scope.
Add a testpypi
repository to your poetry config:
$ poetry config repositories.testpypi https://test.pypi.org/legacy/
Configure your credentials for the testpypi
repository:
$ poetry config pypi-token.testpypi <your-token>
Finally publish to test.pypi.org
:
$ make publish-test
The package should upload to the test.pypi.org service.