Skip to content

kei-mag/python-package

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python package "my-package"

Let's get started!

First, you should rename a directory in the src directory with the name to be used during import like 'my_package'.

Directory structure

src-layout

package_root
├── pyproject.toml
├── requirements.txt
├── ...
└── src/
    └── my_package/
        ├── __init__.py
        ├── ...
        ├── module.py
        └── subpkg1/
            ├── __init__.py
            ├── ...
            └── module1.py

To upload package to PyPI

If you would like to upload this package to pypi.org or test.pypi.org, you must set the API key for test.pypi.org as TEST_PYPI_API_TOKEN and the API key for pypi.org as PYPI_API_TOKEN in the GitHub Actions Secret.

If you wouldn't like to upload this package to PyPI, you need to remove .github/workflows/Publish-to-PyPI.yml or disable it.

About

Template repository for Python package that supports installation with pip, Poetry, Rye and uv.

Topics

Resources

License

Stars

Watchers

Forks

Languages