Skip to content

Commit

Permalink
multiple corrections and cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
raftmsohani committed Jun 21, 2024
1 parent d6d387a commit 421de65
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 92 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
## v1.0.0 (2024-06-21)

* fix: corrected dockerized application for testing
* fix: fixed test files
* addition: added task file for development commands
* addition: added cypress test
* chore: cleaned unused files
* chore: bump version

## v0.2.2 (2024-05-07)

* fix: filter-list was concatenated incorrectly. Changed ? with & on tailing filters
Expand Down
28 changes: 5 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,32 +56,14 @@ python3 -m twine upload --repository testpypi dist/*
```


```
python3 -m venv env
source env/bin/activate
pip install -r requirements.txt
python makemigrations.py
```

### In da508
- clear the dist dir
- increment version
- build
- twine upload

### In TDRS
- backend: `dc up`
- ` docker compose run web python -m pipenv install django-admin-508==0.0.8`
## local development
In local development, the package has a parallel django508 application that can be started using Task file. The application has the admin_interface as one of the listed apps, so when started, the admin_interface project is automatically added.


## local development
- create empty django project
- create venv
- `build` package in another directory
- pip install -e /path/to/508
- migrate
To list the available commands, run ```task help```. A django server can be started using ```task up``` command.


### Running pytest
Pytest test files can be ran using: ```task pytest```. If you need to add pytest command line option, you may do so using ```PYTEST_ARGS``` variable. E.g: ```task pytest PYTEST_ARGS="./tests/test_models.py -s -vv"```

## License
Released under [MIT License](LICENSE.txt).
Expand Down
5 changes: 5 additions & 0 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,8 @@ tasks:
- rm -rf __pycache__/
- rm -rf django_admin_508.egg-info/
- rm -rf django508/db.sqlite3

help:
desc: Show help
cmds:
- task --list
2 changes: 1 addition & 1 deletion admin_interface/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# -*- coding: utf-8 -*-

__version__ = '0.2.2'
__version__ = '1.0.0'
29 changes: 0 additions & 29 deletions boot_django.py

This file was deleted.

10 changes: 0 additions & 10 deletions ecosystem.config.js

This file was deleted.

8 changes: 0 additions & 8 deletions makemigrations.py

This file was deleted.

21 changes: 0 additions & 21 deletions runtests.py

This file was deleted.

0 comments on commit 421de65

Please sign in to comment.