[](https://travis-ci.org/wuhaifengdhu/python-module-starter)
[](https://codecov.io/gh/wuhaifengdhu/python-module-starter)
This is a template repository that you can use to quickly create a python application that can be built, tested, and released as an internal python module.
## Setting up a new repository from this template
**Create a directory and pull all the files in this template into it**
```bash
mkdir new_repo_name
cd new_repo_name
git init
git pull https://github.com/wuhaifengdhu/python-module-starter.git
```
## Build
*Linux*
```bash
virtualenv env
. env/bin/activate
pip install -e .
```
*Windows*
```bash
virtualenv env
env\Scripts\activate
pip install -e .
```
## Tox Tests and Build the Wheels
```
pip install -r requirements-build.txt
# run the python tests
tox -r
```
## upload to pypi
* Register your account in 
* Create file .pypirc in your home folder with 600.
```[distutils]
index-servers =
pypi
pypitest
[pypi]
repository=https://upload.pypi.org/legacy/
username=your_username
password=your_password
[pypitest]
repository=https://test.pypi.org/legacy/
username=your_username
password=your_password
```
* Upload your repository
```
python setup.py bdist_wheel --universal
twine upload dist/*
```
Metadata
Release files for python-module-starter 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| python_module_starter-1.0.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Release files / python_module_starter-1.0.0-py2.py3-none-any.whl
| Download URL | python_module_starter-1.0.0-py2.py3-none-any.whl |
|---|---|
| Size | 6.2 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
f2a2a20c4fcb5bbb5243b9072b58b7f8969d6a5bd332951ca765b22d57a4cc4f
|
|
BLAKE2b-256 checksum How to use checksums |
67ef2384a187a467713c2841edd5d3bf322647911d20c0be040cd5214f71cfdc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for python-module-starter 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.