Skip to content

Commit 6fa122a

Browse files
committed
Merge pull request #69 from jakednoble/master
PyPI setup and readme update
2 parents 94bee57 + 9605cdb commit 6fa122a

File tree

3 files changed

+54
-5
lines changed

3 files changed

+54
-5
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,9 @@ tmp/
1616
.idea/
1717
test/resources/lrs_properties.py
1818

19+
# release
20+
dist
21+
tincan.egg-info/
22+
1923
# wild
2024
todo.md

README.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,48 @@ The docs will be output to `docs/build/html/`.
7575
If you would like to change the names of each section, you can do so by modifying `docs/source/tincan.rst`.
7676

7777
## Releasing
78+
To release to PyPI, first make sure that you have a PyPI account set up at https://pypi.python.org/pypi (and at
79+
https://testpypi.python.org/pypi if you plan on using the test index). You will also need a .pyirc file in your
80+
home directory with the following contents.
81+
82+
[distutils]
83+
84+
index-servers =
85+
pypi
86+
pypitest
87+
88+
[pypi] # authentication details for live PyPI
89+
repository: https://pypi.python.org/pypi
90+
username: <username>
91+
password: <password>
92+
93+
[pypitest] # authentication details for test PyPI
94+
repository: https://testpypi.python.org/pypi
95+
username: <username>
96+
password: <password>
97+
98+
The pypitest contents of the .pyirc file are optional and are used for hosting to the test PyPI index.
99+
100+
Update setup.py to contain the correct release version and any other new information.
101+
102+
To test the register/upload, run the following commands in the repo directory:
103+
104+
python setup.py register -r pypitest
105+
python setup.py sdist upload -r pypitest
106+
107+
You should get no errors and should be able to find this tincan version at https://testpypi.python.org/pypi.
108+
109+
To register/upload to the live PyPI server, run the following commands in the repo directory:
110+
111+
python setup.py register -r pypi
112+
python setup.py sdist upload -r pypi
113+
114+
The new module should be now be installable with pip or easy_install.
115+
116+
easy_install tincan
117+
118+
or
119+
120+
pip install tincan
121+
122+
Use sudo as necessary.

setup.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
'SCORM',
2222
'AICC',
2323
],
24-
requires=[
25-
'aniso8601',
26-
'pytz',
27-
]
28-
)
24+
install_requires=[
25+
'aniso8601',
26+
'pytz',
27+
],
28+
)

0 commit comments

Comments
 (0)