cython-packages-0.1.4
توضیحات
Example project for demonstrating proprietary PyPI packages
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | cython-packages-0.1.4 |
| نام | cython-packages |
| نسخه کتابخانه | 0.1.4 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Aotu |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/cython-packages/ |
| مجوز | Proprietary |
# Python Package Starter
 [](https://codecov.io/gh/vikpe/python-package-starter) [](https://github.com/psf/black)
## Features
* Multi python version support ([pyenv](https://github.com/pyenv/pyenv), [tox](https://github.com/tox-dev/tox/))
* Single config using the new standardized `pyproject.toml` ([PEP518](https://www.python.org/dev/peps/pep-0518/))
* Simple build/publish/dependency management using [poetry](https://github.com/sdispater/poetry)
* Continous integration ([GitHub Actions](https://help.github.com/en/actions))
* Code coverage reporting ([Codecov](https://codecov.io/))
* Code formatting ([black](https://github.com/psf/black))
## Prerequisites
* [pyenv](https://github.com/pyenv/pyenv) (for automatic installation use [pyenv-installer](https://github.com/pyenv/pyenv-installer))
* [poetry](https://github.com/sdispater/poetry)
## Installation
1. Install [pyenv](https://github.com/pyenv/pyenv).
2. Install the Python versions you want to support using `pyenv`.
```sh
pyenv install 3.6.9
pyenv install 3.8.0
```
3. Clone repo: `git clone git@github.com:vikpe/python-package-starter.git [PACKAGE_NAME]`
4. `cd [PACKAGE NAME]`
5. Create a virtual env: `pyenv virtualenv 3.8.0 foo38`
6. Activate virtual env: `pyenv activate foo38`
7. Install poetry: `pip install poetry`
8. Install dependencies: `poetry install`
9. Edit `pyproject.toml`, update project name, description and author and any other settings you like.
## Usage
Command | Description
--- | ---
`poetry add [package]` | Add package to dependencies.
`poetry add -D [package]` | Add package to dev dependencies.
`poetry run pytest` | Run tests in local Python version.
`poetry run ptw tests foo --clear` | Watch for file changes and run tests in local Python version.
`poetry run tox` | Run tests in all Python versions defined in `tox.ini`.
`poetry run black .` | Run black code formatter.
`poetry build --format wheel` | Build sdist and wheel to `/dist`.
`poetry publish` | Publish package to PyPi.
## Continous integration
### GitHub Actions
Tests are run whenever there is a commit, see `.github/workflows/test.yml` for details.
### Code coverage
Enable code coverage reporting to [Codecov](https://codecov.io/) by creating a secret with name `CODECOV_TOKEN` in your repository settings (Settings -> Secrets -> New sectret) and value set to the token created by Codecov.
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6,<4.0 | Python |
نحوه نصب
نصب پکیج whl cython-packages-0.1.4:
pip install cython-packages-0.1.4.whl
نصب پکیج tar.gz cython-packages-0.1.4:
pip install cython-packages-0.1.4.tar.gz