Helper library for CoinAlpha projects
Project description
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.toml
andbirdfeeder/__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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file birdfeeder_coinalpha-1.3.0.tar.gz
.
File metadata
- Download URL: birdfeeder_coinalpha-1.3.0.tar.gz
- Upload date:
- Size: 23.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.2 CPython/3.8.10 Linux/5.15.0-53-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90c09f387ad8ab4192dabf62ff5e4eac4cf97cf84831164130c1b96eb85531d3 |
|
MD5 | f781a84d9a7e40d89392d83166f4439f |
|
BLAKE2b-256 | 24ae9119c948e94fcc6860d2888303b268f43d537b1f24f3a1fdf0336f23ff97 |
File details
Details for the file birdfeeder_coinalpha-1.3.0-py3-none-any.whl
.
File metadata
- Download URL: birdfeeder_coinalpha-1.3.0-py3-none-any.whl
- Upload date:
- Size: 28.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.2 CPython/3.8.10 Linux/5.15.0-53-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 28346471f50c967a10041d74986113745547f8818d48adad90c1206e269cae01 |
|
MD5 | 0b4d9d35cb91cfcfab51a2feb2e4fa9f |
|
BLAKE2b-256 | 3c723a74593f13021506e00f06728e4d25b41345ec21b82e1dad064ed0ad72eb |