Calculate an integer value for months and dates from a base date.
Project description
General |
|
CI |
|
PyPI |
|
Github |
Installation
Since this is intended for experimental purposes, it is recommended to create a virtual environment to experiment for installation.
Set the following environment variables in the virtual environment. Set these in your IDE as well.
Start Docker. The docker-rebuild.bat script will git docker up and running.
The setup and installation is for Windows. Feel free to add contribute to get it running on Linux as well.
python -m venv ./FastAPIexample_venv
pip install FastAPIexample
pre-commit install
SET MYSQL_HOST=localhost
SET MYSQL_ROOT_PWD=N0tS0S3curePassw0rd
SET MYSQL_TCP_PORT_EXAMPLES=50002
SET SQLALCHEMY_SILENCE_UBER_WARNING=1
docker-rebuild.bat
Tests
This project uses pytest to run tests.
There are various settings combinations in the [tool.pytest.ini_options] section of the pyproject.toml file that can used by commenting it out.
This project uses black to format code and flake8 for linting. We also support pre-commit to ensure these have been run. To configure your local environment please install these development dependencies and set up the commit hooks.
pytest
Contributing
Naming Conventions
- File names
Not knowing what’s to come and what will be added, it is difficult to determine a naming convention for source, test and other file names. The owner will therefore be a “benevolent dictator” to rename and change names.
Link the file name of the source code and the test so that it is easily linked.
- Branch names
“enhancement” | “bug” | “hotfix”/< ticket_nr>_<description>
- where
enhancement - Planned improvement or addition to functionality; non-urgent.
bug - An error or defect causing incorrect or unexpected behavior; typically fixed in regular development cycles.
hotfix - An urgent, critical fix applied directly to the live environment, often bypassing regular development cycles.
ticket_nr: Ticket number assigned to the issue in GitHub. Once an issue is registered, the owner will assign a ticket.
description: GitHub issue title or combination of titles is more than one issue is addressed.
Releasing
For the purpose of push and release of code two script files are included. Use there two files to files to make life a bit easier. The scripts make use of the gitit module to simplify tasks.
push.bat - Use this script to push branches to GitHub repository. In principle it does the following:
usage: push message
e.g. push “Changed the Infinite Improbability Drive”
.rst syntax check
git add -A
git commit -m message (with pre-commit including black and flake8)
git push –all
release.bat - Use this script to push a new tag and release to the GitHub repository. Remember to change the version number in the setup.cfg else the workflow will fail.
usage: release version The version will match the release and the tag. Only issue a release once a push.bat was successful. In principle it does the following:
e.g. release 1.2.3
Commit the changes
Create and push the release tag with the correct naming conventions.
Checkout master since it assumes that the branch is now merged with master and will be deleted.
display a list of all the current branches as a reminder to delete the branch on completion.
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 DateId-1.4.3.tar.gz
.
File metadata
- Download URL: DateId-1.4.3.tar.gz
- Upload date:
- Size: 14.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 064685189bb0a0777b6ce0618086a858d183afe8ceff54e517fe29d2683e14b1 |
|
MD5 | d19290b42996a45b43a47e1af302f36a |
|
BLAKE2b-256 | bc07ffb4eaf0bbbc67320bfbaff745fa5753b4dbda4bbbbe379e8df97dcf130e |
File details
Details for the file DateId-1.4.3-py3-none-any.whl
.
File metadata
- Download URL: DateId-1.4.3-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 05b63ad19b711ef7dc8b295a0923f57070a037bed7790ec88c5e51383d6f779e |
|
MD5 | a5437c803490dbd23bc1812c7c75df6a |
|
BLAKE2b-256 | b9df183b881b9e0db0bb125db1d3ca3d77638b5103d43ac62f48b1a778f3e0da |