agileetc-0.0.9
توضیحات
Future Agile CICD tooling template
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | agileetc-0.0.9 |
| نام | agileetc |
| نسخه کتابخانه | 0.0.9 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | agileturret |
| ایمیل نویسنده | Paul.Gilligan@agilesolutions.co.uk |
| آدرس صفحه اصلی | https://github.com/Agile-Solutions-GB-Ltd/automatic-eureka/tree/main/python/agileetc |
| آدرس اینترنتی | https://pypi.org/project/agileetc/ |
| مجوز | Apache-2.0 |
# agileetc
Example python 3.9+ project where we can develop best practices and provide teams with a useful template with the following features:
* Poetry packaged python project with example CLI entry point.
* Linux and Windows compatible project.
* Example read/write YML files.
* Example Unit Tests.
* Example flake8 linter configuration.
* Example line operation via click API allowing project to be run from command line of from CICD pipelines.
* Example use of Fabric API to execute external commands.
* Example use of Texttable for pretty table output.
* Example GoCD pipeline.
* Example GitHub actions.
* Python package publishing to PiPy.
* Docker image publishing to docker hub.
* Example usage of python package.
* Example usage of docker image.
## Prerequisites
This project uses poetry is a tool for dependency management and packaging in Python. It allows you to declare the
libraries your project depends on, it will manage (install/update) them for you.
Use the installer rather than pip [installing-with-the-official-installer](https://python-poetry.org/docs/master/#installing-with-the-official-installer).
```sh
poetry self add poetry-bumpversion
```
```sh
poetry -V
Poetry (version 1.2.0)
```
## Getting Started
```sh
poetry update
```
```sh
poetry install
```
## Run
```sh
poetry run agileetc
```
## Lint
```sh
poetry run flake8
```
## Test
```sh
poetry run pytest
```
## Publish
* By default we are using [PYPI packages](https://packaging.python.org/en/latest/tutorials/installing-packages/).
* Create yourself an access token for PYPI and then follow the instructions.
```sh
export PYPI_USERNAME=__token__
export PYPI_PASSWORD=<Your API Token>
poetry publish --build --username $PYPI_USERNAME --password $PYPI_PASSWORD
```
## Versioning
We use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/Agile-Solutions-GB-Ltd/agileup/tags).
## Releasing
We are using [poetry-bumpversion](https://github.com/monim67/poetry-bumpversion) to manage release versions.
```sh
poetry version patch
```
## Dependency
Once the release has been created it is now available for you to use in other python projects via:
```sh
pip install agileetc
```
And also for poetry projects via:
```sh
poetry add aigleetc
```
## Continuous Integration
The objects of each of the example CI pipelines here are to:
* Lint the python code.
* Run Unit Tests
* Build package.
* Release package, bumping the version.
* Publishing in new package version.
### GitHub Actions
The example GitHub actions CI for this project is located in file .github/workflows/python-ci.yml and is available from
the GitHub dashboard. This CI is setup to [run via a local runner](https://github.com/Agile-Solutions-GB-Ltd/automatic-eureka/settings/actions/runners) which should be configured.
### Jenkins
### GoCD
## Contributing
Please read [CONTRIBUTING.md](CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us.
## License
This project is licensed under the Apache License, Version 2.0 - see the [LICENSE](LICENSE) file for details
نیازمندی
| مقدار | نام |
|---|---|
| >=8.1,<9.0 | click |
| >=5.4.1,<6.0.0 | PyYAML |
| >=7.1.3,<8.0.0 | pytest |
| >=3.3.0,<4.0.0 | prettytable |
| >=1.14.post1,<2.0 | Fabric3 |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.9,<4.0 | Python |
نحوه نصب
نصب پکیج whl agileetc-0.0.9:
pip install agileetc-0.0.9.whl
نصب پکیج tar.gz agileetc-0.0.9:
pip install agileetc-0.0.9.tar.gz