Skip to content

Commit

Permalink
Added instructions on how to upload to PyPi
Browse files Browse the repository at this point in the history
* Added a docs/upload-to-pypi.md file
* Added the setup.cfg file
* Updated setup.py: Added version, license and url meta information
  • Loading branch information
BoldBhavek committed Mar 1, 2021
1 parent fb85dd6 commit 4392aff
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
24 changes: 24 additions & 0 deletions docs/upload-to-pypi.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Table of contents

* [Table of contents](#table-of-contents)
* [Pre-req](#pre-req)
* [Upload process](#upload-process)

## Pre-req

* Register an account with (pypy.org)[https://pypi.org]
* Install twine with `pip install twine`

## Upload process

* Build your release candidate with:

```bash
python setup.py sdist
```

* Upload the package with

```bash
twine upload dist/*
```
4 changes: 4 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Inside of setup.cfg
[metadata]
description-file = README.md

3 changes: 3 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
setup(
name='Composer Version Manager',
packages=find_packages(),
version='1.0.6',
license='MIT',
url = 'https://github.com/composer-version-manager/cvm',
entry_points={
'console_scripts': [
'cvm=cvm.cli:main',
Expand Down

0 comments on commit 4392aff

Please sign in to comment.