-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
78 lines (56 loc) · 1.62 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
from os import path
from setuptools import setup, find_packages
with open(path.join(path.dirname(__file__), "README.md")) as readme:
README = readme.read()
setup(
name="starkbank-iso8583",
packages=find_packages(),
include_package_data=True,
description="Python library for conversion between ISO 8583 message standard and JSON",
long_description=README,
license="MIT License",
url="https://github.com/starkbank/iso8583-python",
author="Stark Bank",
author_email="[email protected]",
keywords=["iso8583", "credit card", "debit card", "mastercard", "visa"],
version="0.5.0"
)
"""
Deployment instructions
-----------------------
Global
~~~~~~
Before deployment, change the project *version* on ``setup.py`` file and
set the correct *download*\ url\_. Then make sure you have the file
``~/.pypirc`` with the content below and the correct credentials instead
of the provided placeholders:
::
[distutils]
index-servers =
pypi
pypitest
[pypi]
repository:https://upload.pypi.org/legacy/
username:myusername
password:mypassword
[pypitest]
repository:https://test.pypi.org/legacy/
username:myusername
password:mypassword
### Create a source distribution:
Run ```python setup.py sdist``` inside the project directory.
### Install twine:
```pip install twine```
### Upload package to pypi:
```twine upload dist/*```
Live environment
~~~~~~~~~~~~~~~~
For unit test:
```
python -m unittest discover -s febraban/cnab240/tests -p '*Test.py'
```
To release a new version:
```
python setup.py sdist upload -r pypi`` inside the project
```
"""