birdfeeder
Helper library for CoinAlpha projects
Usage
The library is published to pypi as birdfeeder-coinalpha
Installing
pip install birdfeeder-coinalpha
poetry add 'birdfeeder-coinalpha@^1'
How to install old versions
In pyproject.toml:
birdfeeder-coinalpha = { git = "https://github.com/coinalpha/birdfeeder.git", branch = "master" }
birdfeeder-coinalpha = { git = "https://github.com/coinalpha/birdfeeder.git", rev = "29cdd7229d0d35a989322f5026382400d1332da4" }
birdfeeder-coinalpha = { git = "https://github.com/coinalpha/birdfeeder.git", tag = "0.1.0" }
pip:
git+https://github.com/coinalpha/birdfeeder.git@master#egg=birdfeeder
git+https://github.com/coinalpha/birdfeeder.git@29cdd7229d0d35a989322f5026382400d1332da4#egg=birdfeeder
git+https://github.com/coinalpha/birdfeeder.git@0.1.0#egg=birdfeeder
Development
To install library for development in conda environment, run
./install
Alternativelly (preferred), you can use poetry env:
poetry install
poetry shell
How to add a dependency
- If you're running in conda, you need to install required package first.
- Then, see installed version in
conda env export - Take this version and add into pyproject.toml, into
[tool.poetry.dependencies](or dev section, if the package is needed for development only). Specify version (or range) according to Dependency Specification
If using poetry:
- Run
poetry add <package>
Releasing a new version
Idea: we're keeping own version and dependencies info in pyproject.toml, and then generating setup.py so that the library could be installed via tools like pip. We're also generating environment.yml file because we're mostly using conda to manage development environments at CoinAlpha.
- Change version in
pyproject.tomlandbirdfeeder/__init__.py - Generate
setup.py:dephell deps convert - Generate
environment.yml:poetry2conda --dev pyproject.toml environment.yml - Commit updates
git add -u && git commit - Create git tag
x.y.z:git tag -s x.y.z - Run
git push && git push --tags - Publish to pypi:
poetry publish --build
Metadata
Release files for birdfeeder-coinalpha 1.4.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| birdfeeder_coinalpha-1.4.1.tar.gz | 23.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| birdfeeder_coinalpha-1.4.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 52.1 kB
Release files / birdfeeder_coinalpha-1.4.1.tar.gz
| Download URL | birdfeeder_coinalpha-1.4.1.tar.gz |
|---|---|
| Size | 23.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
316b0587b7222acbce2bccb82576b31cadd6e789e0dff88589a22345816f04fd
|
|
BLAKE2b-256 checksum How to use checksums |
857ccec30032e87bb238f3e42bd83f04e6507ef48b59cf898cd851b3bcf7320f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.4 CPython/3.12.8 Linux/6.2.0-39-generic
|
Release files / birdfeeder_coinalpha-1.4.1-py3-none-any.whl
| Download URL | birdfeeder_coinalpha-1.4.1-py3-none-any.whl |
|---|---|
| Size | 28.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
62d15352c3b4bd336af16e2b0a3ac61b163b30aee1e41b5ec3a3a8ce8d97511e
|
|
BLAKE2b-256 checksum How to use checksums |
e52cbf5f703abe619de09bcdb7e148d5bee9ab3d629bb5344e913a06baa88f48
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.4 CPython/3.12.8 Linux/6.2.0-39-generic
|