templatepy
Project description
templatepy
Template repo for python repositories & PyPi integration
Usage & file overview
setup.py
: to install the package withpip
, lists dependencies ininstall_requires
keyword.- Install development version for features below with
pip install -e package[dev]
to selectextras_require
packages as well
- Install development version for features below with
.pre-commit-config.yaml
: use pre-commit to run code formatting (e.g. with black andflake8
) and PEP compliance checks- Install pre-commit hook with
pre-commit install
(Note: only installs it in the current virtual environment)
- Install pre-commit hook with
.toml
: config for black code formatter (see above)setup.cfg
: config for bump2version andflake8
formatting (see pre-commit)MANIFEST.in
: description to select included files and directories for installation (see here for details)LICENSE
: legal info about sharing and using of this codeREADME.md
: markdown readme file.github
: folder that contains github automation workflows and issues templates- workflow for linting: install pre-commit hooks locally via
pre-commit install
in the repo dir - workflow for uploading package to pypi: (1) get pypi API key in your account, (2) add new github repo secret for actions at https://github.com/larsrollik/templatepy/settings/secrets/actions/new as
TWINE_API_KEY
, (3) create new release by tagging a commit withgit tag $TAG_NAME
or on github at https://github.com/larsrollik/templatepy/releases/new
- workflow for linting: install pre-commit hooks locally via
.gitignore
: ignored files/folders in git toolspackage
: placeholder folder for any python package that is configured for install viasetup.py
TODO for adapting template to new project
-
Change package name: (1)
package
folder, (2) README.md, (3)name
argument insetup.py
, (4).github/workflows
files, (5)setup.cfg
:[bumpversion:file:PACKAGEFOLDER/__init__.py]
-
Change details about project author, etc. in
setup.py
,README.md
, andpackage/__init__.py
-
Change license holder in
LICENSE
-
Verify inclusions/exclusions of installable files/folders in
MANIFEST.in
-
Check
.gitignore
contains relevant criteria -
Add all locations to
setup.cfg
that will contain the version string. Use same syntax as for[bumpversion:file:PACKAGEFOLDER/__init__.py]
line to describe how to find version on version increment -
Add repository secret to upload to pypi via github action on release/commit tag (see above)
-
Upload to Zenodo if is publication: (1) Connect Zenodo to Github account, (2) Flip switch on zenodo view of repo, (3) Create new release version of github repo (tag or manual), (4) Wait! Zenodo view with DOI assignment should update within about a minute, (5) Add DOI batch to repo
README
NOTE: Zenodo can only take public repos
License
This software is released under the BSD 3-Clause License
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
File details
Details for the file templatepy-0.0.1.dev1.tar.gz
.
File metadata
- Download URL: templatepy-0.0.1.dev1.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94851f9fd409bb0a49c41ed4a00088c408de1aac3a2243e252e20507a791cc22 |
|
MD5 | 0391341737a162e5f0a4f06a4a65fc06 |
|
BLAKE2b-256 | 2e0c0e8f6a6fd283db024f2a9f963930672f63274271b5279755832ac2284db0 |
File details
Details for the file templatepy-0.0.1.dev1-py3-none-any.whl
.
File metadata
- Download URL: templatepy-0.0.1.dev1-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 02d0bca0ba4e1edfd64547372d0d493cc4254e1996347d8e4224f117531782e6 |
|
MD5 | 5b7a8c5605359b45a9abd48181f240c6 |
|
BLAKE2b-256 | c920d636c069f3384509c4d049401c0b8f7997ce1268ab10f792a29aaea93223 |