-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: switch to Poetry for env+dep management (#127)
I've been using Poetry because it takes the hassle out of virtualenv management and has sane defaults that just work for building artifacts and uploading to PyPI. Because I had to redo how tests were run, I went ahead and removed the Tox testing requirement too and so I had to redo the Github Actions for testing too. One thing I didn't anticipate is that Github Actions caching doesn't work for Poetry, only with `requirements.txt` and Pipenv https://github.blog/changelog/2021-11-23-github-actions-setup-python-now-supports-dependency-caching/ ## Verifying the change I compared `python setup.py build` vs `poetry build` and the only difference was some top level meta differences and Poetry added the `tests` directory which is fine. Both have the `.html` templates which is the important thing.
- Loading branch information
Showing
12 changed files
with
284 additions
and
185 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -193,7 +193,7 @@ Limitations | |
Python and Django compatibility | ||
------------------------------- | ||
|
||
See [`tox.ini`](./tox.ini) for which Python and Django versions this supports. | ||
See [`ci.yml`](./github/workflows/ci.yml) for which Python and Django versions this supports. | ||
|
||
|
||
Demo Admin & Docker images | ||
|
@@ -209,29 +209,24 @@ tutorial. `admin.py` demos what you can do with this app. | |
Development | ||
----------- | ||
|
||
Getting started *(with virtualenvwrapper)*: | ||
Getting started: | ||
|
||
```shell | ||
# get a copy of the code | ||
git clone [email protected]:crccheck/django-object-actions.git | ||
cd django-object-actions | ||
# set up your virtualenv (with virtualenvwrapper) | ||
mkvirtualenv django-object-actions | ||
# Install requirements | ||
make install | ||
# Hack your path so that we can reference packages starting from the root | ||
add2virtualenv . | ||
make test # run test suite | ||
make quickstart # runs 'make resetdb' and some extra steps | ||
``` | ||
|
||
This will install whatever the latest stable version of Django is. You | ||
can also install a specific version of Django and | ||
`pip install -r requirements.txt`. | ||
|
||
Various helpers are available as make commands. Type `make help` and | ||
view the `Makefile` to see what other things you can do. | ||
|
||
Some commands assume you are in the virtualenv. If you see | ||
"ModuleNotFoundError"s, try running `poetry shell` first. | ||
|
||
|
||
Similar Packages | ||
---------------- | ||
|
Oops, something went wrong.