Skip to content

Commit 4392aff

Browse files
committed
Added instructions on how to upload to PyPi
* Added a docs/upload-to-pypi.md file * Added the setup.cfg file * Updated setup.py: Added version, license and url meta information
1 parent fb85dd6 commit 4392aff

File tree

3 files changed

+31
-0
lines changed

3 files changed

+31
-0
lines changed

docs/upload-to-pypi.md

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Table of contents
2+
3+
* [Table of contents](#table-of-contents)
4+
* [Pre-req](#pre-req)
5+
* [Upload process](#upload-process)
6+
7+
## Pre-req
8+
9+
* Register an account with (pypy.org)[https://pypi.org]
10+
* Install twine with `pip install twine`
11+
12+
## Upload process
13+
14+
* Build your release candidate with:
15+
16+
```bash
17+
python setup.py sdist
18+
```
19+
20+
* Upload the package with
21+
22+
```bash
23+
twine upload dist/*
24+
```

setup.cfg

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Inside of setup.cfg
2+
[metadata]
3+
description-file = README.md
4+

setup.py

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
setup(
44
name='Composer Version Manager',
55
packages=find_packages(),
6+
version='1.0.6',
7+
license='MIT',
8+
url = 'https://github.com/composer-version-manager/cvm',
69
entry_points={
710
'console_scripts': [
811
'cvm=cvm.cli:main',

0 commit comments

Comments
 (0)