allink-core
allink-core is a heavily opinionated collection of django apps, django-cms plugins and other utilities. allink-core was implemented to create a standardized ecosystem for django-cms projects developed at allink AG.
allink-core is ment to be used with our boilerplate project which is hosted on the divio cloud. (feel free to send us a message if you would like to have a look.) The steps we describe here are mostly closely coupled to our setup and environment. So the described steps might not make sense to you, when you don't know our setup. Also we skip steps which we already included in the boilerplate.
Documentation
Working on documentation
make docs will serve you a preview of the local docs on "http://127.0.0.1:8000". More Information on mkdocs.org or mkdocs rtd.
Workflow when making updates to allink-core repo while working on a project.
The idea is that we want to be able to make changes to the allink-core repo with real life data. This can be achieved, when we are able to switch out the installed allink-core form the requirements.in with a local allink-core repo. This way we can also maintain a proper git history.
Prepare allink-core repository
To work on the allink-core repo you first need to pull the allink-core repo. The setup expects it to be at "~/projects/allink-core". If it isn't in this location, just create a symlink which points to your allink-core repo.
- make sure you are up to date with the current version branch e.g "v2.0.x" and you working on your own branch.
- create a virtualenv
virtualenv env - install requirements
pip install -r requiremnts_dev.txt
For the next steps, we assume you are working on the boilerplate-2.0 project, but this should work with every project which follows the same principles and have allink-core installed.
Prepare boilerplate-2.0 repository
- To override the already installed allink-core requirements, we have to mount the local allink-core directory as a volume into the docker container. Add
- "~/projects/allink-core/allink_core:/app/allink_core:rw"to the docker-compose.yml file. - To work directly on allink-core in the same directory as the boilerplate-project, we create a symlink.
ln -s ~/projects/allink-core/allink_core allink_core
Make sure you do not commit these changes, as your teammates probably do not care about having a local allink-core mapped in their project.
You are all set. When you now run docker-compose up your application will run with your local allink-core repo. However if you run docker-compose build you will still be installing the allink-core repo from the requirements file.
create a new release of allink-core
- create a new pull request (make sure you include your changes to CHANGELOG.md)
- merge back to version branch e.g v2.0.x
make patchormake minordepending on what version you want to create. (this will create a new commit and push the new tags to github) If you need an other version do it withbumpversion.- create a new release on PyPi
make publish(make sure you have the correct credentials for allink in your ~/.pypirc also for test-pypi)
Release files for allink-core 2.2.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 | |
|---|---|---|---|
| allink-core-2.2.1.tar.gz | 259.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| allink_core-2.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 841.4 kB
Release files / allink-core-2.2.1.tar.gz
| Download URL | allink-core-2.2.1.tar.gz |
|---|---|
| Size | 259.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
90b394da9b2340b90b85be1b035935de4a96c35e5c60093beb860ec2445262f5
|
|
BLAKE2b-256 checksum How to use checksums |
42b6ebae7caf47cbb124bfe579338c9e14b6c794b41affcb13048f53a3a0a5ce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.0
|
Release files / allink_core-2.2.1-py3-none-any.whl
| Download URL | allink_core-2.2.1-py3-none-any.whl |
|---|---|
| Size | 581.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c68fec97f0aaaae4d73404f3a987ac8e0985d9384bddc98db5b55656b218ab1c
|
|
BLAKE2b-256 checksum How to use checksums |
75b6e2b669f1001d1012578a830acc9be052a7d71f6f9e588b5dcb3241a10a89
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.0
|