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

Remove setup.py once and for all #3176

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

lunkwill42
Copy link
Member

@lunkwill42 lunkwill42 commented Nov 8, 2024

With libsass out of the way, and setuptools_scm long since updated, we no longer rely on having a minimal setup.py present. It can be removed to complete the transition to pyproject.toml.

This PR removes the script and updates documentation and some scripts that referenced the old setup.py ways (which means this also fixes #3141)

@lunkwill42 lunkwill42 self-assigned this Nov 8, 2024
Copy link

github-actions bot commented Nov 8, 2024

🦙 MegaLinter status: ✅ SUCCESS

Descriptor Linter Files Fixed Errors Elapsed time
✅ PYTHON black 991 0 11.07s
✅ PYTHON ruff 987 0 0.1s

See detailed report in MegaLinter reports

MegaLinter is graciously provided by OX Security

Copy link

github-actions bot commented Nov 8, 2024

Test results

    9 files      9 suites   8m 18s ⏱️
2 137 tests 2 137 ✅ 0 💤 0 ❌
4 013 runs  4 013 ✅ 0 💤 0 ❌

Results for commit 14f0073.

♻️ This comment has been updated with latest results.

Copy link

codecov bot commented Nov 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 60.39%. Comparing base (3f0faab) to head (14f0073).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #3176   +/-   ##
=======================================
  Coverage   60.39%   60.39%           
=======================================
  Files         605      605           
  Lines       43704    43704           
  Branches       48       48           
=======================================
  Hits        26396    26396           
  Misses      17296    17296           
  Partials       12       12           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@lunkwill42 lunkwill42 marked this pull request as ready for review November 11, 2024 09:01
@lunkwill42 lunkwill42 marked this pull request as draft November 11, 2024 09:01
@podliashanyk podliashanyk force-pushed the build-sass-with-webpack branch 3 times, most recently from e1cebe3 to 19d7c58 Compare November 12, 2024 13:58
Base automatically changed from build-sass-with-webpack to master November 12, 2024 14:11
libsass is gone, and `setuptools_scm` no longer requires `setup.py`, so
our transition to using only `pyproject.toml` should be complete.
This removes mentions of the removed `setup.py` script, but also changes
the installation guide to recommend a virtualenv for installing NAV.

Using a virtualenv has become obligatory for Debian-based distros,
unless everything is packaged as a .deb package.
These install docs were obsolete, and even more so now that `setup.py`
is gone.

Fixes #3141
There is no longer a `setup.py` in the source root, but rather
`pyproject.toml`.  This ensures the Docker container's verification that
the source code seems to be mounted on `/source` is still up to snuff.
@lunkwill42 lunkwill42 marked this pull request as ready for review November 13, 2024 08:22
Copy link

sonarcloud bot commented Nov 13, 2024

@@ -90,13 +93,25 @@ the following command to build the CSS assets::
This will build the CSS assets and place them in the :file:`python/nav/web/static/css`
directory.

To build and install NAV and all its Python dependencies::
We recommend installing NAV into a Python virtual environment, to avoid
interfering with your system-wide Python libraries. Pick a suitable path for
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
interfering with your system-wide Python libraries. Pick a suitable path for
interfering with your system-wide Python libraries. Pick a suitable path for

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update potentially obsolete Sphinx docs build command referenced in documentation
2 participants