https://github.com/apachecn-archive/poetry-gcp-pypi

https://github.com/apachecn-archive/poetry-gcp-pypi

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (8.4%) to scientific vocabulary
Last synced: 10 months ago · JSON representation

Repository

Basic Info
  • Host: GitHub
  • Owner: apachecn-archive
  • License: gpl-3.0
  • Default Branch: main
  • Size: 86.9 KB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created about 3 years ago · Last pushed about 3 years ago
Metadata Files
Readme License

README.md

poetry-gcp-pypi

poetry gcp pypi

gcloud auth login

pip install keyrings.google-artifactregistry-auth

pip install poetry==1.2.0a2

shell bharathdasaraju@MacBook-Pro poetry-gcp-pypi (main) $ gcloud auth login bharathdasaraju@MacBook-Pro poetry-gcp-pypi (main) $ pip install keyrings.google-artifactregistry-auth bharathdasaraju@MacBook-Pro poetry-gcp-pypi (main) $ pip install poetry==1.2.0a2 bharathdasaraju@MacBook-Pro poetry-gcp-pypi (main) $

```shell bharathdasaraju@MacBook-Pro poetry-gcp-pypi (main) $ poetry init

This command will guide you through creating your pyproject.toml config.

Package name [poetry-gcp-pypi]: my-sample-project Version [0.1.0]: Description []:
Author [bharath bhrth.dsra1@gmail.com, n to skip]:
License []:
Compatible Python versions [^3.9]:

Would you like to define your main dependencies interactively? (yes/no) [yes] no Would you like to define your development dependencies interactively? (yes/no) [yes] no Generated file

[tool.poetry] name = "my-sample-project" version = "0.1.0" description = "" authors = ["bharath bhrth.dsra1@gmail.com"] readme = "README.md" packages = [{include = "mysampleproject"}]

[tool.poetry.dependencies] python = "^3.9"

[build-system] requires = ["poetry-core"] build-backend = "poetry.core.masonry.api"

Do you confirm generation? (yes/no) [yes]
bharathdasaraju@MacBook-Pro poetry-gcp-pypi (main) $ poetry --version Poetry (version 1.2.0a2) bharathdasaraju@MacBook-Pro poetry-gcp-pypi (main)

```

```shell

bharathdasaraju@MacBook-Pro poetry-gcp-pypi (main) $ poetry config repositories.google https://asia-southeast1-python.pkg.dev/srianjaneyam/test-repo bharathdasaraju@MacBook-Pro poetry-gcp-pypi (main) $ mkdir mysampleproject bharathdasaraju@MacBook-Pro poetry-gcp-pypi (main) $

bharathdasaraju@MacBook-Pro poetry-gcp-pypi (main) $ touch mysampleproject/init.py bharathdasaraju@MacBook-Pro poetry-gcp-pypi (main) $ touch README.md bharathdasaraju@MacBook-Pro poetry-gcp-pypi (main) $ poetry publish --build -r google Creating virtualenv my-sample-project-xIvPYfgY-py3.9 in /Users/bharathdasaraju/Library/Caches/pypoetry/virtualenvs Building my-sample-project (0.1.0) - Building sdist - Built my-sample-project-0.1.0.tar.gz - Building wheel - Built mysampleproject-0.1.0-py3-none-any.whl

Publishing my-sample-project (0.1.0) to google - Uploading my-sample-project-0.1.0.tar.gz 100% - Uploading mysampleproject-0.1.0-py3-none-any.whl 100% bharathdasaraju@MacBook-Pro poetry-gcp-pypi (main) $

```

gcp_pypi_repo

use uploaded package in second_project

```shell bharathdasaraju@MacBook-Pro poetry-gcp-pypi (main) $ cd second_project/

bharathdasaraju@MacBook-Pro second_project (main) $ cat pyproject.toml [tool.poetry] name = "secondary-project" version = "0.1.0" description = "" authors = ["bharath bhrth.dsra1@gmail.com"] readme = "README.md"

[tool.poetry.dependencies] python = "^3.9" my-sample-project = "^0.1.0"

[build-system] requires = ["poetry-core"] build-backend = "poetry.core.masonry.api"

[[tool.poetry.source]] name = "google" url = "https://asia-southeast1-python.pkg.dev/srianjaneyam/test-repo/simple" bharathdasaraju@MacBook-Pro second_project (main) $

bharathdasaraju@MacBook-Pro second_project (main) $ poetry add my-sample-project Creating virtualenv secondary-project-uIi-1zLL-py3.9 in /Users/bharathdasaraju/Library/Caches/pypoetry/virtualenvs Using version ^0.1.0 for my-sample-project

Updating dependencies Resolving dependencies... (1.1s)

Writing lock file

Package operations: 1 install, 0 updates, 0 removals

• Installing my-sample-project (0.1.0) bharathdasaraju@MacBook-Pro second_project (main) $

```

Owner

  • Name: ApacheCN 归档
  • Login: apachecn-archive
  • Kind: organization
  • Email: wizard.z@qq.com

防止重要项目丢失而设立的归档

GitHub Events

Total
Last Year

Dependencies

pyproject.toml pypi
  • python ^3.9
second_project/poetry.lock pypi
  • my-sample-project 0.1.0
second_project/pyproject.toml pypi
  • my-sample-project ^0.1.0
  • python ^3.9