Skip to content

Commit

Permalink
Add setup for continuous deployment (#11)
Browse files Browse the repository at this point in the history
* Add setup for continuous deployment
  • Loading branch information
vineetjai authored Mar 13, 2020
1 parent a202572 commit ef7f637
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 2 deletions.
17 changes: 17 additions & 0 deletions PyPi_Deployment_setps.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Upload your package to PyPi

1. First, open the command prompt and navigate into your the folder where you have all your files and your package located:
cd "C://PATH//TO//YOUR//FOLDER"

2. Now, you have to create a source distribution with the following command:
`python setup.py sdist`

3. Now, you will need twine for the upload process, so first install twine via pip:
`pip3 install twine`

4. Then, run the following command:
`twine upload --repository-url https://test.pypi.org/legacy/ dist/*`

5. You will be asked to provide your username and password. Provide the credentials you used to register to PyPi earlier.

6. Congratulations, your package is now uploaded! Visit https://pypi.org/project/PyZKP/ to see your package online!
3 changes: 3 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Inside of setup.cfg
[metadata]
description-file = README.md
7 changes: 5 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import os
from setuptools import find_packages
from setuptools import setup

#reads a file
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
Expand Down Expand Up @@ -29,7 +28,11 @@ def get_requirements(req_file):
name='pyzpk',
long_description=long_description,
packages=find_packages(),
version = '0.1',
author='',
url='https://github.com/Benardi/PyZPK',
download_url='https://github.com/Benardi/PyZPK/archive/master.zip',
install_requires=core_reqs,
dependency_links=core_dependency_links,
setup_requires=["pbr"]
)
)

0 comments on commit ef7f637

Please sign in to comment.