Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,9 @@ tmp/
.idea/
test/resources/lrs_properties.py

# release
dist
tincan.egg-info/

# wild
todo.md
45 changes: 45 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,48 @@ The docs will be output to `docs/build/html/`.
If you would like to change the names of each section, you can do so by modifying `docs/source/tincan.rst`.

## Releasing
To release to PyPI, first make sure that you have a PyPI account set up at https://pypi.python.org/pypi (and at
https://testpypi.python.org/pypi if you plan on using the test index). You will also need a .pyirc file in your
home directory with the following contents.

[distutils]

index-servers =
pypi
pypitest

[pypi] # authentication details for live PyPI
repository: https://pypi.python.org/pypi
username: <username>
password: <password>

[pypitest] # authentication details for test PyPI
repository: https://testpypi.python.org/pypi
username: <username>
password: <password>

The pypitest contents of the .pyirc file are optional and are used for hosting to the test PyPI index.

Update setup.py to contain the correct release version and any other new information.

To test the register/upload, run the following commands in the repo directory:

python setup.py register -r pypitest
python setup.py sdist upload -r pypitest

You should get no errors and should be able to find this tincan version at https://testpypi.python.org/pypi.

To register/upload to the live PyPI server, run the following commands in the repo directory:

python setup.py register -r pypi
python setup.py sdist upload -r pypi

The new module should be now be installable with pip or easy_install.

easy_install tincan

or

pip install tincan

Use sudo as necessary.
10 changes: 5 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
'SCORM',
'AICC',
],
requires=[
'aniso8601',
'pytz',
]
)
install_requires=[
'aniso8601',
'pytz',
],
)