Split code for code generation.
Project description
Template README.md
This file is from the template repository.
Rewrite it for your own package.
Python Package Setup
Setup Base
To install required pip modules for generate_toml.py
, run
source scripts/setup_base.sh
User Setup
- go to
generate_toml.py
file, and complete the setup in theUser Setup
session.
options = Options(
# Will you use the discussion session in your repo?
discussion=False
)
# Define the general information of your package
kwargs = Kwargs(
name_space="None",
module_name="None",
description="None",
)
If you wrote all the information, run
python generate_toml.py
Template
If you want to understand the generation process, check the template
variable in generate_toml.py
.
Setup Env
Prerequisite
Finish User Setup first. Of course, conda command must be available.
Setup Env
Run
source scripts/setup_env.sh
steps
- create an conda environment named as your $MODULE_NAME
- activate the environment.
- install requirements.txt
Generate Private Env
Generate a private repository in this repo. I recommend you to write all the unstructured codes in this repo.
source scripts/generate_dev_repo.sh
It will ask you the name of your repo, and then, generate a repo named f'{your_repo_name}-dev'.
Usage Tip
If you wrote your codes in a wrong branch,
- backup the files to the dev repo
- remove changes in your main(not main branch) repo
- move to your correct branch
- place back the backup codes
Workflows
I currently setup test and release workflows.
Test
If you make a PR with the patterns [ main, develop, 'release/', 'feature/' ],
It will perform your unittest in ["3.9", "3.10", "3.11"]
Release
required secret : PYPI_API_TOKEN
I usually make PRs only when I start release branches. release workflow is not conducted automatically. If you think your branch is ready to be published,
- go to https://github.com/{github_id}/{repo_name}/actions/workflows/release.yaml
- find the button, 'Run workflow'
- select the branch to publish. In my case, release/x.x.x
Project details
Release history Release notifications | RSS feed
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
Hashes for crimson_code_splitter-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 297e735d95a0222e648b998dfbd4041db15d7e37af89ee8f08dda3794b3ab727 |
|
MD5 | 1e2c764c4a9656752a01f62c3cb0cb2a |
|
BLAKE2b-256 | a93ae97da9b33f74c518cf794c2bc070fe7df55ea0adbc93c47350f46ad463c1 |
Hashes for crimson_code_splitter-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7c3c38c78d185df5c292c97ee58b39b8057191c2fe428b35bd60ce1a264ecb5 |
|
MD5 | 9eac4383b9c11a12b221832c0cdd2f36 |
|
BLAKE2b-256 | 8fdc99d78839e146b3fdd7bc7819e3e061198503df189f6fba64096549936d37 |