Skip to main content

No project description provided

Project description

init project

$project_name="poetry_template"
$package_name=$($project_name -replace "-","_")
poetry new --src $project_name

echo "__version__ = '0.1.0'" > src/$package_name/__init__.py

poetry config virtualenvs.in-project true --local
poetry config virtualenvs.create true --local
# python -m venv .venv
poetry shell

poetry source add --priority=default tsinghua https://pypi.tuna.tsinghua.edu.cn/simple/
poetry source add --priority=primary aliyun https://mirrors.aliyun.com/pypi/simple/


poetry add python-dotenv
poetry add pytest pytest-mock pytest-cov --group test
poetry add flake8 mypy --group lint
poetry add black isort yapf --group format
poetry add mkdocs --group docs


poetry show --tree
poetry show --tree --only main
poetry show --tree --with test,docs


$testpypi_token="pypi-AgENdGVzdC5weXBpLm9yZwIkYmFlY2E1MTktYmVmZi00MDBiLWEyYzEtMjUwZjczNTU5OWYxAAIqWzMsIjFkZWM0NGY4LTA0YjEtNGI1Yi1iOTVjLTA5ZGE5MjNlZGY3NSJdAAAGIJjjVg8Gkxv7sZyRTo7LxflWIfcGABowByjbbpBzAyG2"
poetry config pypi-token.testpypi "$testpypi_token" --local
poetry config repositories.testpypi https://test.pypi.org/legacy/
poetry config http-basic.testpypi __token__ pypi-AgENdGVzdC5weXBpLm9yZwIkYmFlY2E1MTktYmVmZi00MDBiLWEyYzEtMjUwZjczNTU5OWYxAAIqWzMsIjFkZWM0NGY4LTA0YjEtNGI1Yi1iOTVjLTA5ZGE5MjNlZGY3NSJdAAAGIJjjVg8Gkxv7sZyRTo7LxflWIfcGABowByjbbpBzAyG2
poetry build
poetry publish -r testpypi
poetry publish

use this template

poetry config virtualenvs.in-project true --local
# python -m venv .venv
poetry shell
poetry install

# pyenv local 3.9.0 && poetry config virtualenvs.in-project true --local && poetry [new | init | install]

# poetry install --with test,docs --without docs
# poetry install --only main
# poetry remove mkdocs --group docs

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

poetry_template1-0.1.0.tar.gz (1.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

poetry_template1-0.1.0-py3-none-any.whl (1.9 kB view details)

Uploaded Python 3

File details

Details for the file poetry_template1-0.1.0.tar.gz.

File metadata

  • Download URL: poetry_template1-0.1.0.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.5 Windows/10

File hashes

Hashes for poetry_template1-0.1.0.tar.gz
Algorithm Hash digest
SHA256 65518efadc66474cb16f8fd4b5412651e5e6e33d38a5ecdf1f21f0c6d7af913a
MD5 f5e06cc36c116e6054c50f53ea0d81a4
BLAKE2b-256 09a47f9428adb65fc6ee2925d75841e35407119860eb074cb6f1651e1b4fa645

See more details on using hashes here.

File details

Details for the file poetry_template1-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: poetry_template1-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 1.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.5 Windows/10

File hashes

Hashes for poetry_template1-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c049a4055735b7bc02a33a26ccf5287455c43c0ae82343fb4175232006e18901
MD5 e650d927eef84a577145c65e6fa8bc42
BLAKE2b-256 63299d80bf0da4658b3a45d066053021703339fc47f735783966c9529badab4e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page