-
Notifications
You must be signed in to change notification settings - Fork 39
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
base: master
Are you sure you want to change the base?
Conversation
🦙 MegaLinter status: ✅ SUCCESS
See detailed report in MegaLinter reports |
Test results 9 files 9 suites 8m 18s ⏱️ Results for commit 14f0073. ♻️ This comment has been updated with latest results. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
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. |
e1cebe3
to
19d7c58
Compare
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.
65fcb83
to
14f0073
Compare
Quality Gate passedIssues Measures |
@@ -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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
interfering with your system-wide Python libraries. Pick a suitable path for | |
interfering with your system-wide Python libraries. Pick a suitable path for |
With
libsass
out of the way, andsetuptools_scm
long since updated, we no longer rely on having a minimalsetup.py
present. It can be removed to complete the transition topyproject.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)