#3175 Use setup tools to install python files
Closed: migrated 3 years ago by dmoluguw. Opened 3 years ago by dmoluguw.

Currently, we copy python files to required directories with following Cmake script:

# install Python libraries
install(
    DIRECTORY
        python/pki/server
    DESTINATION
        ${PYTHON3_SITE_PACKAGES}/pki
    FILES_MATCHING PATTERN
        *.py
)

pki.server
pki

This makes it difficult to ship the python-based PKI tool on py-pi repo and is impossible to run pytests. Following are the different setup.py files available in upstream:

$ find . -name 'setup.py'
./tests/dogtag/pytest-ansible/setup.py
./tests/dogtag/shared/python/setup.py
./setup.py
./base/common/python/setup.py
./base/server/healthcheck/setup.py

To make the maintenance easier and to ship uniform version on both Fedora and PyPi, Cmake scripts should be configured to use Python setup tools.

Advantages:

  • Ship python-based PKI tools on PyPi
  • Enables Pytest execution (using tox) + linters
  • Avoids having multiple setup.py to ship different packages

Metadata Update from @dmoluguw:
- Issue assigned to dmoluguw

3 years ago

Dogtag PKI is moving from Pagure issues to GitHub issues. This means that existing or new
issues will be reported and tracked through Dogtag PKI's GitHub Issue tracker.

This issue has been cloned to GitHub and is available here:
https://github.com/dogtagpki/pki/issues/3292

If you want to receive further updates on the issue, please navigate to the
GitHub issue and click on Subscribe button.

Thank you for understanding, and we apologize for any inconvenience.

Metadata Update from @dmoluguw:
- Issue close_status updated to: migrated
- Issue status updated to: Closed (was: Open)

3 years ago

Login to comment on this ticket.

Metadata