Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pyproject.toml #6355

Merged
merged 6 commits into from
Mar 1, 2022
Merged

Conversation

hexagonrecursion
Copy link
Contributor

@hexagonrecursion hexagonrecursion marked this pull request as draft February 25, 2022 03:50
When using pyproject.toml the parent of setup.py
is not on sys.path by default.

See <pypa/setuptools#3134>
setup_crypto.crypto_ext_kwargs needs pkgconfig to find OpenSSL
@codecov-commenter
Copy link

codecov-commenter commented Feb 25, 2022

Codecov Report

Merging #6355 (aba16ba) into master (49de070) will increase coverage by 0.07%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #6355      +/-   ##
==========================================
+ Coverage   83.11%   83.19%   +0.07%     
==========================================
  Files          38       38              
  Lines       10426    10426              
  Branches     2042     2042              
==========================================
+ Hits         8666     8674       +8     
+ Misses       1254     1246       -8     
  Partials      506      506              
Impacted Files Coverage Δ
src/borg/repository.py 84.07% <0.00%> (-0.19%) ⬇️
src/borg/helpers/parseformat.py 89.70% <0.00%> (-0.17%) ⬇️
src/borg/archive.py 81.86% <0.00%> (+0.25%) ⬆️
src/borg/archiver.py 80.72% <0.00%> (+0.33%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 49de070...aba16ba. Read the comment docs.

@hexagonrecursion
Copy link
Contributor Author

Permission denied: '/usr/local/lib/python3.9

I am working on this.

@hexagonrecursion
Copy link
Contributor Author

pypa/setuptools#3019

@ThomasWaldmann
Copy link
Member

btw, for now please no bigger / fundamental changes to setup.py / setup.cfg.

@ThomasWaldmann
Copy link
Member

from the codeql workflow:

       sudo apt-get update
       sudo apt-get install libacl1-dev
       pip3 install -r requirements.d/development.txt
       pip3 install -e .

Guess adding these lines before pip3 should fix it, can you try?:

    python3 -m venv ../borg-env
    source ../borg-env/bin/active

A bug in pip or possibly setuptools broke editable
installs into the per-user directory
for packages that have pyproject.toml

See pypa/setuptools#3019
@hexagonrecursion
Copy link
Contributor Author

Another workaround would be to pip install . instead of pip install -e .

@hexagonrecursion hexagonrecursion marked this pull request as ready for review March 1, 2022 06:24
Copy link
Member

@ThomasWaldmann ThomasWaldmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks!

@ThomasWaldmann ThomasWaldmann merged commit e37a55c into borgbackup:master Mar 1, 2022
@hexagonrecursion hexagonrecursion deleted the pyproject branch March 1, 2022 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants