Skip to content
Snippets Groups Projects
Commit 6d5fe97f authored by Moul's avatar Moul Committed by matograine
Browse files

[mod] #276: Remove now useless bin/silkaj and its references

- Kept for pyinstaller because unmaintained and lazy to search
parent 16b25cd4
No related branches found
No related tags found
2 merge requests!146Merge dev into master branch to complete v0.8.0 development cycle,!120#276: Poetry: Fix missing reference to Silkaj entry point
Pipeline #7914 passed
......@@ -13,7 +13,6 @@ image: $DOCKER_IMAGE/$PYTHON_VERSION:latest
.code_changes:
only:
changes:
- bin/silkaj
- silkaj/*.py
- tests/*.py
......@@ -36,7 +35,7 @@ format:
stage: checks
image: $DOCKER_IMAGE/3.8:latest
script:
- black --check bin silkaj tests
- black --check silkaj tests
.tests:
extends: .changes
......
#!/usr/bin/env python3
"""
Copyright 2016-2020 Maël Azimi <m.a@moul.re>
Silkaj is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Silkaj is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with Silkaj. If not, see <https://www.gnu.org/licenses/>.
"""
from silkaj.cli import cli
if __name__ == "__main__":
cli(obj={})
......@@ -25,10 +25,9 @@ poetry install
```
### Run Silkaj
Within `silkaj` repository, enter the development environement and run Silkaj:
Within `silkaj` repository run Silkaj:
```bash
poetry shell
./bin/silkaj
poetry run silkaj
```
You might need to enter Poetry shell to access development tools such as `pytest` or `black`.
......
from subprocess import check_output
silkaj = ["poetry", "run", "bin/silkaj"]
silkaj = ["poetry", "run", "silkaj"]
def test_info():
......
......@@ -4,4 +4,4 @@
set NEW_YEAR (date +"%Y")
set OLD_YEAR (math $NEW_YEAR - 1)
sed -i "s/Copyright 2016-$OLD_YEAR M/Copyright 2016-$NEW_YEAR M/g" bin/silkaj silkaj/*.py tests/*.py
sed -i "s/Copyright 2016-$OLD_YEAR M/Copyright 2016-$NEW_YEAR M/g" silkaj/*.py tests/*.py
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment